gina 0.3.2 → 0.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +29 -0
- package/README.md +18 -8
- package/ROADMAP.md +10 -9
- package/framework/v0.3.3/VERSION +1 -0
- package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/README.md +7 -8
- package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +1 -1
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/html/toolbar.html.br +0 -0
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/html/toolbar.html.gz +0 -0
- package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +2 -0
- package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +103 -0
- package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/js/gina.js +293 -201
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js +21636 -0
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +286 -0
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- package/framework/v0.3.3/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- package/framework/{v0.3.2 → v0.3.3}/core/config.js +6 -1
- package/framework/{v0.3.2 → v0.3.3}/core/connectors/mysql/index.js +52 -0
- package/framework/{v0.3.2 → v0.3.3}/core/connectors/postgresql/index.js +45 -0
- package/framework/{v0.3.2 → v0.3.3}/core/connectors/sqlite/index.js +46 -0
- package/framework/{v0.3.2 → v0.3.3}/core/controller/controller.js +1 -1
- package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/lib/types/multipart.js +2 -1
- package/framework/v0.3.3/core/deps/streamsearch-1.1.0/LICENSE +19 -0
- package/framework/v0.3.3/core/deps/streamsearch-1.1.0/lib/sbmh.js +267 -0
- package/framework/v0.3.3/core/deps/streamsearch-1.1.0/package.json +34 -0
- package/framework/{v0.3.2 → v0.3.3}/core/gna.js +30 -30
- package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/storage/src/main.js +3 -3
- package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/validator/src/main.js +34 -29
- package/framework/{v0.3.2 → v0.3.3}/core/server.isaac.js +77 -13
- package/framework/{v0.3.2 → v0.3.3}/core/server.js +66 -18
- package/framework/{v0.3.2 → v0.3.3}/helpers/json/src/main.js +14 -1
- package/framework/{v0.3.2 → v0.3.3}/lib/cache/src/main.js +2 -2
- package/framework/{v0.3.2 → v0.3.3}/lib/cmd/aliases.json +3 -0
- package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/arguments.json +2 -1
- package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/help.txt +21 -1
- package/framework/v0.3.3/lib/cmd/bundle/oas.js +6 -0
- package/framework/v0.3.3/lib/cmd/bundle/openapi.js +519 -0
- package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/start.js +4 -1
- package/framework/v0.3.3/lib/cmd/framework/get.js +98 -0
- package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/help.txt +8 -3
- package/framework/{v0.3.2 → v0.3.3}/lib/cmd/port/help.txt +7 -2
- package/framework/v0.3.3/lib/cmd/port/set.js +348 -0
- package/framework/{v0.3.2 → v0.3.3}/lib/collection/src/main.js +4 -4
- package/framework/{v0.3.2 → v0.3.3}/lib/index.js +1 -0
- package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/mq/listener.js +2 -2
- package/framework/v0.3.3/lib/uuid/package.json +7 -0
- package/framework/v0.3.3/lib/uuid/src/main.js +99 -0
- package/framework/v0.3.3/package.json +8 -0
- package/gna.js +86 -0
- package/llms.txt +94 -4
- package/package.json +107 -101
- package/types/globals.d.ts +205 -0
- package/types/gna.d.ts +67 -0
- package/types/index.d.ts +566 -0
- package/framework/v0.3.2/VERSION +0 -1
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/html/toolbar.html.br +0 -0
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/html/toolbar.html.gz +0 -0
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -532
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -8
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
- package/framework/v0.3.2/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
- package/framework/v0.3.2/core/deps/swig-1.4.2/CONTRIBUTING.md +0 -107
- package/framework/v0.3.2/core/deps/swig-1.4.2/HISTORY.md +0 -498
- package/framework/v0.3.2/core/deps/swig-1.4.2/LICENSE +0 -7
- package/framework/v0.3.2/core/deps/swig-1.4.2/Makefile +0 -192
- package/framework/v0.3.2/core/deps/swig-1.4.2/README.md +0 -88
- package/framework/v0.3.2/core/deps/swig-1.4.2/bin/swig.js +0 -161
- package/framework/v0.3.2/core/deps/swig-1.4.2/browser/comments.js +0 -2
- package/framework/v0.3.2/core/deps/swig-1.4.2/browser/index.js +0 -9
- package/framework/v0.3.2/core/deps/swig-1.4.2/dist/swig.min.js +0 -7
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/api.html +0 -136
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/browser.html +0 -36
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/cli.html +0 -64
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/extending.html +0 -183
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/filters.html +0 -97
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/includes/TYPES.html +0 -0
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/includes/macros.html +0 -9
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/index.html +0 -212
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/layout.html +0 -43
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/loaders.html +0 -106
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/previous.html +0 -25
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs/tags.html +0 -72
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/docs.json +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/index.html +0 -98
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/index.json +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/js/lib/rainbow.min.js +0 -11
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/js/master.js +0 -106
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/layouts/html5.html +0 -25
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/layouts/master.html +0 -59
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/button.less +0 -22
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/fork.less +0 -23
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/header.less +0 -61
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/layout.less +0 -96
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/mixins.less +0 -268
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/rainbow.less +0 -58
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/reset.less +0 -250
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/sidenav.less +0 -16
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/swig.less +0 -124
- package/framework/v0.3.2/core/deps/swig-1.4.2/docs/less/variables.less +0 -42
- package/framework/v0.3.2/core/deps/swig-1.4.2/index.js +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/dateformatter.js +0 -198
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/filters.js +0 -630
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/lexer.js +0 -306
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/loaders/filesystem.js +0 -59
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/loaders/index.js +0 -53
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/loaders/memory.js +0 -63
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/parser.js +0 -744
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/swig.js +0 -740
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/autoescape.js +0 -37
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/block.js +0 -25
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/else.js +0 -25
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/elseif.js +0 -28
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/extends.js +0 -19
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/filter.js +0 -68
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/for.js +0 -130
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/if.js +0 -86
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/import.js +0 -91
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/include.js +0 -100
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/index.js +0 -16
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/macro.js +0 -79
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/parent.js +0 -51
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/raw.js +0 -23
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/set.js +0 -109
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/tags/spaceless.js +0 -42
- package/framework/v0.3.2/core/deps/swig-1.4.2/lib/utils.js +0 -184
- package/framework/v0.3.2/core/deps/swig-1.4.2/package.json +0 -41
- package/framework/v0.3.2/core/deps/swig-1.4.2/scripts/config-lint.js +0 -41
- package/framework/v0.3.2/core/deps/swig-1.4.2/scripts/githooks/post-merge +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/scripts/githooks/pre-commit +0 -59
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/basic.test.js +0 -296
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/bin.filters.js +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/bin.locals.js +0 -5
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/bin.locals.json +0 -7
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/bin.tags.js +0 -15
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/bin.test.js +0 -159
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/custom_filter.bin.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/custom_tag.bin.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/custom_tagControls.bin.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/custom_varControls.bin.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/bin/options.js +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_1.expectation.html +0 -6
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_1.test.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_2.expectation.html +0 -6
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_2.test.html +0 -5
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_base.html +0 -6
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_layouts/extends_4.base.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_layouts/extends_4.middle.html +0 -2
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_layouts/extends_bare.html +0 -2
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_layouts/extends_base.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_layouts/extends_include.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_layouts/extends_real_base.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_set.expectation.html +0 -6
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_set.test.html +0 -4
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_tests/extends_3.expectation.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_tests/extends_3.test.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_tests/extends_4.expectation.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/extends_tests/extends_4.test.html +0 -2
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/import.expectation.html +0 -24
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/import.test.html +0 -10
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/include.expectation.html +0 -24
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/include.test.html +0 -13
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/include_bar.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/include_extends.expectation.html +0 -4
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/include_extends.test.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/includes.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/macros.expectation.html +0 -8
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/macros.html +0 -23
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/macros.test.html +0 -11
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/nested_blocks.expectation.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/nested_blocks.test.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/nested_blocks_parent.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/parent-parent.expectation.html +0 -8
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/parent-parent.test.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/parent.expectation.html +0 -8
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/parent.test.html +0 -9
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/set.expectation.html +0 -3
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases/set.test.html +0 -8
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases-error/circular.test.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases-error/circular_parent.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases-error/extends-non-existent.test.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases-error/report-filename-partial.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/cases-error/report-filename.test.html +0 -1
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/comments.test.js +0 -12
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/filters.test.js +0 -316
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/loaders.test.js +0 -119
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/regressions.test.js +0 -41
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/autoescape.test.js +0 -45
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/else.test.js +0 -61
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/extend.test.js +0 -11
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/filter.test.js +0 -29
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/for.test.js +0 -63
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/if.test.js +0 -75
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/import.test.js +0 -15
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/include.test.js +0 -26
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/macro.test.js +0 -38
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/parent.test.js +0 -14
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/raw.test.js +0 -33
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/set.test.js +0 -56
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags/spaceless.test.js +0 -26
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/tags.test.js +0 -56
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/templates.test.js +0 -62
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/variables.test.js +0 -183
- package/framework/v0.3.2/core/deps/swig-1.4.2/tests/whitespace.test.js +0 -43
- package/framework/v0.3.2/lib/cmd/framework/get.js +0 -0
- package/framework/v0.3.2/lib/cmd/port/set.js +0 -0
- package/framework/v0.3.2/package.json +0 -5
- /package/framework/{v0.3.2 → v0.3.3}/AUTHORS +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/html/nolayout.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/html/static.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/img/android-chrome-192x192.png +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/img/android-chrome-512x512.png +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/img/apple-touch-icon.png +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/img/favicon-16x16.png +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/img/favicon-32x32.png +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/img/favicon.ico +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/ai/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/ai/lib/connector.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/connector.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/n1ql.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/session-store.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/mysql/lib/connector.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/postgresql/lib/connector.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/redis/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/redis/lib/session-store.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/sql-parser.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/sqlite/lib/connector.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/connectors/sqlite/lib/session-store.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/content.encoding +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/controller/controller.framework.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/controller/controller.render-json.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/controller/controller.render-stream.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/controller/controller.render-swig.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/controller/controller.render-v1.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/controller/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/lib/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/lib/types/urlencoded.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/lib/utils.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/busboy-1.6.0/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/optimist-0.6.1/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/optimist-0.6.1/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/optimist-0.6.1/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/optimist-0.6.1/readme.markdown +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/deps/swig-client/swig.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/dev/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/dev/lib/class.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/dev/lib/factory.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/dev/lib/tools.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/currency.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/dist/language/en.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/dist/language/fr.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/dist/region/en.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/dist/region/fr.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/locales/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/mime.types +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/model/entity.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/model/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/model/template/entityFactory.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/model/template/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/file/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/file/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/file/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/intl/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/intl/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/intl/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/intl/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/storage/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/storage/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/storage/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/validator/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/validator/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/validator/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/plugins/lib/validator/src/form-validator.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/router.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/server.express.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/status.codes +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/_gitignore +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/app.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/connectors.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/routing.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/settings.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/templates.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/config/watchers.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_public/css/home.css +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_public/readme.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/command/gina.bat.tpl +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/command/gina.tpl +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/conf/env.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/conf/manifest.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/conf/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/conf/settings.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/conf/statics.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/conf/templates.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/error/client/json/401.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/error/client/json/403.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/error/client/json/404.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/error/server/html/50x.html +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/error/server/json/500.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/error/server/json/503.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/core/template/extensions/logger/config.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/console.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/context.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/data/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/data/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/data/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/data/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/dateFormat.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/json/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/json/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/json/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/path.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/plugins/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/plugins/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/plugins/src/api-error.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/plugins/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/prototypes.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/task.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/helpers/text.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/archiver/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/archiver/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/archiver/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/archiver/src/dep/jszip.min.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/archiver/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/async/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/async/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cache/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cache/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cache/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/add.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/build.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/copy.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/cp.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/list.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/remove.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/rename.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/restart.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/rm.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/status.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/bundle/stop.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/cache/stats.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/add.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/get.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/help.txt +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/link-dev.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/list.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/remove.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/rm.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/set.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/unset.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/env/use.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/arguments.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/build.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/dot.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/init.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/link-node-modules.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/link.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/msg.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/open.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/restart.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/set.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/start.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/status.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/stop.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/tail.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/update.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/framework/version.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/gina-dev.1.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/gina-framework.1.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/gina.1.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/helper.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/inspector/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/inspector/help.txt +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/inspector/open.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/minion/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/minion/help.txt +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/msg.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/port/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/port/inc/scan.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/port/list.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/port/reset.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/add.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/arguments.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/build.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/help.txt +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/import.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/list.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/move.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/remove.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/rename.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/restart.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/rm.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/start.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/status.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/project/stop.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/protocol/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/protocol/help.txt +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/protocol/list.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/protocol/set.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/add.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/help.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/help.txt +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/link-local.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/link-production.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/list.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/remove.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/rm.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/scope/use.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cmd/view/add.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/collection/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/collection/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/collection/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/config.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cron/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cron/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/cron/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/dist/2025-03-14_13-41-20_UTC.dat +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/dist/public_suffix_list.dat +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/dist/public_suffix_list.dat.br +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/dist/public_suffix_list.dat.gz +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/domain/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/generator/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/inherits/LICENSE +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/inherits/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/inherits/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/inherits/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/default/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/file/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/mq/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/containers/mq/speaker.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/helper.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/logger/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/math/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/merge/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/merge/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/merge/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/model.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/proc.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/routing/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/routing/build.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/routing/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/routing/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/routing/src/radix.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/session-store.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/shell.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/state.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/swig-filters/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/swig-filters/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/swig-filters/src/main.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/url/README.md +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/url/index.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/url/routing.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/validator.js +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/watcher/package.json +0 -0
- /package/framework/{v0.3.2 → v0.3.3}/lib/watcher/src/main.js +0 -0
|
@@ -1,306 +0,0 @@
|
|
|
1
|
-
var utils = require('./utils');
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* A lexer token.
|
|
5
|
-
* @typedef {object} LexerToken
|
|
6
|
-
* @property {string} match The string that was matched.
|
|
7
|
-
* @property {number} type Lexer type enum.
|
|
8
|
-
* @property {number} length Length of the original string processed.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* Enum for token types.
|
|
13
|
-
* @readonly
|
|
14
|
-
* @enum {number}
|
|
15
|
-
*/
|
|
16
|
-
var TYPES = {
|
|
17
|
-
/** Whitespace */
|
|
18
|
-
WHITESPACE: 0,
|
|
19
|
-
/** Plain string */
|
|
20
|
-
STRING: 1,
|
|
21
|
-
/** Variable filter */
|
|
22
|
-
FILTER: 2,
|
|
23
|
-
/** Empty variable filter */
|
|
24
|
-
FILTEREMPTY: 3,
|
|
25
|
-
/** Function */
|
|
26
|
-
FUNCTION: 4,
|
|
27
|
-
/** Function with no arguments */
|
|
28
|
-
FUNCTIONEMPTY: 5,
|
|
29
|
-
/** Open parenthesis */
|
|
30
|
-
PARENOPEN: 6,
|
|
31
|
-
/** Close parenthesis */
|
|
32
|
-
PARENCLOSE: 7,
|
|
33
|
-
/** Comma */
|
|
34
|
-
COMMA: 8,
|
|
35
|
-
/** Variable */
|
|
36
|
-
VAR: 9,
|
|
37
|
-
/** Number */
|
|
38
|
-
NUMBER: 10,
|
|
39
|
-
/** Math operator */
|
|
40
|
-
OPERATOR: 11,
|
|
41
|
-
/** Open square bracket */
|
|
42
|
-
BRACKETOPEN: 12,
|
|
43
|
-
/** Close square bracket */
|
|
44
|
-
BRACKETCLOSE: 13,
|
|
45
|
-
/** Key on an object using dot-notation */
|
|
46
|
-
DOTKEY: 14,
|
|
47
|
-
/** Start of an array */
|
|
48
|
-
ARRAYOPEN: 15,
|
|
49
|
-
/** End of an array
|
|
50
|
-
* Currently unused
|
|
51
|
-
ARRAYCLOSE: 16, */
|
|
52
|
-
/** Open curly brace */
|
|
53
|
-
CURLYOPEN: 17,
|
|
54
|
-
/** Close curly brace */
|
|
55
|
-
CURLYCLOSE: 18,
|
|
56
|
-
/** Colon (:) */
|
|
57
|
-
COLON: 19,
|
|
58
|
-
/** JavaScript-valid comparator */
|
|
59
|
-
COMPARATOR: 20,
|
|
60
|
-
/** Boolean logic */
|
|
61
|
-
LOGIC: 21,
|
|
62
|
-
/** Boolean logic "not" */
|
|
63
|
-
NOT: 22,
|
|
64
|
-
/** true or false */
|
|
65
|
-
BOOL: 23,
|
|
66
|
-
/** Variable assignment */
|
|
67
|
-
ASSIGNMENT: 24,
|
|
68
|
-
/** Start of a method */
|
|
69
|
-
METHODOPEN: 25,
|
|
70
|
-
/** End of a method
|
|
71
|
-
* Currently unused
|
|
72
|
-
METHODEND: 26, */
|
|
73
|
-
/** Unknown type */
|
|
74
|
-
UNKNOWN: 100
|
|
75
|
-
},
|
|
76
|
-
rules = [
|
|
77
|
-
{
|
|
78
|
-
type: TYPES.WHITESPACE,
|
|
79
|
-
regex: [
|
|
80
|
-
/^\s+/
|
|
81
|
-
]
|
|
82
|
-
},
|
|
83
|
-
{
|
|
84
|
-
type: TYPES.STRING,
|
|
85
|
-
regex: [
|
|
86
|
-
/^""/,
|
|
87
|
-
/^".*?[^\\]"/,
|
|
88
|
-
/^''/,
|
|
89
|
-
/^'.*?[^\\]'/
|
|
90
|
-
]
|
|
91
|
-
},
|
|
92
|
-
{
|
|
93
|
-
type: TYPES.FILTER,
|
|
94
|
-
regex: [
|
|
95
|
-
/^\|\s*(\w+)\(/
|
|
96
|
-
],
|
|
97
|
-
idx: 1
|
|
98
|
-
},
|
|
99
|
-
{
|
|
100
|
-
type: TYPES.FILTEREMPTY,
|
|
101
|
-
regex: [
|
|
102
|
-
/^\|\s*(\w+)/
|
|
103
|
-
],
|
|
104
|
-
idx: 1
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
type: TYPES.FUNCTIONEMPTY,
|
|
108
|
-
regex: [
|
|
109
|
-
/^\s*(\w+)\(\)/
|
|
110
|
-
],
|
|
111
|
-
idx: 1
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
type: TYPES.FUNCTION,
|
|
115
|
-
regex: [
|
|
116
|
-
/^\s*(\w+)\(/
|
|
117
|
-
],
|
|
118
|
-
idx: 1
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
type: TYPES.PARENOPEN,
|
|
122
|
-
regex: [
|
|
123
|
-
/^\(/
|
|
124
|
-
]
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
type: TYPES.PARENCLOSE,
|
|
128
|
-
regex: [
|
|
129
|
-
/^\)/
|
|
130
|
-
]
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
type: TYPES.COMMA,
|
|
134
|
-
regex: [
|
|
135
|
-
/^,/
|
|
136
|
-
]
|
|
137
|
-
},
|
|
138
|
-
{
|
|
139
|
-
type: TYPES.LOGIC,
|
|
140
|
-
regex: [
|
|
141
|
-
/^(&&|\|\|)\s*/,
|
|
142
|
-
/^(and|or)\s+/
|
|
143
|
-
],
|
|
144
|
-
idx: 1,
|
|
145
|
-
replace: {
|
|
146
|
-
'and': '&&',
|
|
147
|
-
'or': '||'
|
|
148
|
-
}
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
type: TYPES.COMPARATOR,
|
|
152
|
-
regex: [
|
|
153
|
-
/^(===|==|\!==|\!=|<=|<|>=|>|in\s|gte\s|gt\s|lte\s|lt\s)\s*/
|
|
154
|
-
],
|
|
155
|
-
idx: 1,
|
|
156
|
-
replace: {
|
|
157
|
-
'gte': '>=',
|
|
158
|
-
'gt': '>',
|
|
159
|
-
'lte': '<=',
|
|
160
|
-
'lt': '<'
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
type: TYPES.ASSIGNMENT,
|
|
165
|
-
regex: [
|
|
166
|
-
/^(=|\+=|-=|\*=|\/=)/
|
|
167
|
-
]
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
type: TYPES.NOT,
|
|
171
|
-
regex: [
|
|
172
|
-
/^\!\s*/,
|
|
173
|
-
/^not\s+/
|
|
174
|
-
],
|
|
175
|
-
replace: {
|
|
176
|
-
'not': '!'
|
|
177
|
-
}
|
|
178
|
-
},
|
|
179
|
-
{
|
|
180
|
-
type: TYPES.BOOL,
|
|
181
|
-
regex: [
|
|
182
|
-
/^(true|false)\s+/,
|
|
183
|
-
/^(true|false)$/
|
|
184
|
-
],
|
|
185
|
-
idx: 1
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
type: TYPES.VAR,
|
|
189
|
-
regex: [
|
|
190
|
-
/^[a-zA-Z_$]\w*((\.\$?\w*)+)?/,
|
|
191
|
-
/^[a-zA-Z_$]\w*/
|
|
192
|
-
]
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
type: TYPES.BRACKETOPEN,
|
|
196
|
-
regex: [
|
|
197
|
-
/^\[/
|
|
198
|
-
]
|
|
199
|
-
},
|
|
200
|
-
{
|
|
201
|
-
type: TYPES.BRACKETCLOSE,
|
|
202
|
-
regex: [
|
|
203
|
-
/^\]/
|
|
204
|
-
]
|
|
205
|
-
},
|
|
206
|
-
{
|
|
207
|
-
type: TYPES.CURLYOPEN,
|
|
208
|
-
regex: [
|
|
209
|
-
/^\{/
|
|
210
|
-
]
|
|
211
|
-
},
|
|
212
|
-
{
|
|
213
|
-
type: TYPES.COLON,
|
|
214
|
-
regex: [
|
|
215
|
-
/^\:/
|
|
216
|
-
]
|
|
217
|
-
},
|
|
218
|
-
{
|
|
219
|
-
type: TYPES.CURLYCLOSE,
|
|
220
|
-
regex: [
|
|
221
|
-
/^\}/
|
|
222
|
-
]
|
|
223
|
-
},
|
|
224
|
-
{
|
|
225
|
-
type: TYPES.DOTKEY,
|
|
226
|
-
regex: [
|
|
227
|
-
/^\.(\w+)/
|
|
228
|
-
],
|
|
229
|
-
idx: 1
|
|
230
|
-
},
|
|
231
|
-
{
|
|
232
|
-
type: TYPES.NUMBER,
|
|
233
|
-
regex: [
|
|
234
|
-
/^[+\-]?\d+(\.\d+)?/
|
|
235
|
-
]
|
|
236
|
-
},
|
|
237
|
-
{
|
|
238
|
-
type: TYPES.OPERATOR,
|
|
239
|
-
regex: [
|
|
240
|
-
/^(\+|\-|\/|\*|%)/
|
|
241
|
-
]
|
|
242
|
-
}
|
|
243
|
-
];
|
|
244
|
-
|
|
245
|
-
exports.types = TYPES;
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Return the token type object for a single chunk of a string.
|
|
249
|
-
* @param {string} str String chunk.
|
|
250
|
-
* @return {LexerToken} Defined type, potentially stripped or replaced with more suitable content.
|
|
251
|
-
* @private
|
|
252
|
-
*/
|
|
253
|
-
function reader(str) {
|
|
254
|
-
var matched;
|
|
255
|
-
|
|
256
|
-
utils.some(rules, function (rule) {
|
|
257
|
-
return utils.some(rule.regex, function (regex) {
|
|
258
|
-
var match = str.match(regex),
|
|
259
|
-
normalized;
|
|
260
|
-
|
|
261
|
-
if (!match) {
|
|
262
|
-
return;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
normalized = match[rule.idx || 0].replace(/\s*$/, '');
|
|
266
|
-
normalized = (rule.hasOwnProperty('replace') && rule.replace.hasOwnProperty(normalized)) ? rule.replace[normalized] : normalized;
|
|
267
|
-
|
|
268
|
-
matched = {
|
|
269
|
-
match: normalized,
|
|
270
|
-
type: rule.type,
|
|
271
|
-
length: match[0].length
|
|
272
|
-
};
|
|
273
|
-
return true;
|
|
274
|
-
});
|
|
275
|
-
});
|
|
276
|
-
|
|
277
|
-
if (!matched) {
|
|
278
|
-
matched = {
|
|
279
|
-
match: str,
|
|
280
|
-
type: TYPES.UNKNOWN,
|
|
281
|
-
length: str.length
|
|
282
|
-
};
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
return matched;
|
|
286
|
-
}
|
|
287
|
-
|
|
288
|
-
/**
|
|
289
|
-
* Read a string and break it into separate token types.
|
|
290
|
-
* @param {string} str
|
|
291
|
-
* @return {Array.LexerToken} Array of defined types, potentially stripped or replaced with more suitable content.
|
|
292
|
-
* @private
|
|
293
|
-
*/
|
|
294
|
-
exports.read = function (str) {
|
|
295
|
-
var offset = 0,
|
|
296
|
-
tokens = [],
|
|
297
|
-
substr,
|
|
298
|
-
match;
|
|
299
|
-
while (offset < str.length) {
|
|
300
|
-
substr = str.substring(offset);
|
|
301
|
-
match = reader(substr);
|
|
302
|
-
offset += match.length;
|
|
303
|
-
tokens.push(match);
|
|
304
|
-
}
|
|
305
|
-
return tokens;
|
|
306
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
var fs = require('fs'),
|
|
2
|
-
path = require('path');
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Loads templates from the file system.
|
|
6
|
-
* @alias swig.loaders.fs
|
|
7
|
-
* @example
|
|
8
|
-
* swig.setDefaults({ loader: swig.loaders.fs() });
|
|
9
|
-
* @example
|
|
10
|
-
* // Load Templates from a specific directory (does not require using relative paths in your templates)
|
|
11
|
-
* swig.setDefaults({ loader: swig.loaders.fs(__dirname + '/templates' )});
|
|
12
|
-
* @param {string} [basepath=''] Path to the templates as string. Assigning this value allows you to use semi-absolute paths to templates instead of relative paths.
|
|
13
|
-
* @param {string} [encoding='utf8'] Template encoding
|
|
14
|
-
*/
|
|
15
|
-
module.exports = function (basepath, encoding) {
|
|
16
|
-
var ret = {};
|
|
17
|
-
|
|
18
|
-
encoding = encoding || 'utf8';
|
|
19
|
-
basepath = (basepath) ? path.normalize(basepath) : null;
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* Resolves <var>to</var> to an absolute path or unique identifier. This is used for building correct, normalized, and absolute paths to a given template.
|
|
23
|
-
* @alias resolve
|
|
24
|
-
* @param {string} to Non-absolute identifier or pathname to a file.
|
|
25
|
-
* @param {string} [from] If given, should attempt to find the <var>to</var> path in relation to this given, known path.
|
|
26
|
-
* @return {string}
|
|
27
|
-
*/
|
|
28
|
-
ret.resolve = function (to, from) {
|
|
29
|
-
if (basepath) {
|
|
30
|
-
from = basepath;
|
|
31
|
-
} else {
|
|
32
|
-
from = (from) ? path.dirname(from) : process.cwd();
|
|
33
|
-
}
|
|
34
|
-
return path.resolve(from, to);
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* Loads a single template. Given a unique <var>identifier</var> found by the <var>resolve</var> method this should return the given template.
|
|
39
|
-
* @alias load
|
|
40
|
-
* @param {string} identifier Unique identifier of a template (possibly an absolute path).
|
|
41
|
-
* @param {function} [cb] Asynchronous callback function. If not provided, this method should run synchronously.
|
|
42
|
-
* @return {string} Template source string.
|
|
43
|
-
*/
|
|
44
|
-
ret.load = function (identifier, cb) {
|
|
45
|
-
if (!fs || (cb && !fs.readFile) || !fs.readFileSync) {
|
|
46
|
-
throw new Error('Unable to find file ' + identifier + ' because there is no filesystem to read from.');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
identifier = ret.resolve(identifier);
|
|
50
|
-
|
|
51
|
-
if (cb) {
|
|
52
|
-
fs.readFile(identifier, encoding, cb);
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
55
|
-
return fs.readFileSync(identifier, encoding);
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
return ret;
|
|
59
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @namespace TemplateLoader
|
|
3
|
-
* @description Swig is able to accept custom template loaders written by you, so that your templates can come from your favorite storage medium without needing to be part of the core library.
|
|
4
|
-
* A template loader consists of two methods: <var>resolve</var> and <var>load</var>. Each method is used internally by Swig to find and load the source of the template before attempting to parse and compile it.
|
|
5
|
-
* @example
|
|
6
|
-
* // A theoretical memcached loader
|
|
7
|
-
* var path = require('path'),
|
|
8
|
-
* Memcached = require('memcached');
|
|
9
|
-
* function memcachedLoader(locations, options) {
|
|
10
|
-
* var memcached = new Memcached(locations, options);
|
|
11
|
-
* return {
|
|
12
|
-
* resolve: function (to, from) {
|
|
13
|
-
* return path.resolve(from, to);
|
|
14
|
-
* },
|
|
15
|
-
* load: function (identifier, cb) {
|
|
16
|
-
* memcached.get(identifier, function (err, data) {
|
|
17
|
-
* // if (!data) { load from filesystem; }
|
|
18
|
-
* cb(err, data);
|
|
19
|
-
* });
|
|
20
|
-
* }
|
|
21
|
-
* };
|
|
22
|
-
* };
|
|
23
|
-
* // Tell swig about the loader:
|
|
24
|
-
* swig.setDefaults({ loader: memcachedLoader(['192.168.0.2']) });
|
|
25
|
-
*/
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* @function
|
|
29
|
-
* @name resolve
|
|
30
|
-
* @memberof TemplateLoader
|
|
31
|
-
* @description
|
|
32
|
-
* Resolves <var>to</var> to an absolute path or unique identifier. This is used for building correct, normalized, and absolute paths to a given template.
|
|
33
|
-
* @param {string} to Non-absolute identifier or pathname to a file.
|
|
34
|
-
* @param {string} [from] If given, should attempt to find the <var>to</var> path in relation to this given, known path.
|
|
35
|
-
* @return {string}
|
|
36
|
-
*/
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @function
|
|
40
|
-
* @name load
|
|
41
|
-
* @memberof TemplateLoader
|
|
42
|
-
* @description
|
|
43
|
-
* Loads a single template. Given a unique <var>identifier</var> found by the <var>resolve</var> method this should return the given template.
|
|
44
|
-
* @param {string} identifier Unique identifier of a template (possibly an absolute path).
|
|
45
|
-
* @param {function} [cb] Asynchronous callback function. If not provided, this method should run synchronously.
|
|
46
|
-
* @return {string} Template source string.
|
|
47
|
-
*/
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* @private
|
|
51
|
-
*/
|
|
52
|
-
exports.fs = require('./filesystem');
|
|
53
|
-
exports.memory = require('./memory');
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
var path = require('path'),
|
|
2
|
-
utils = require('../utils');
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* Loads templates from a provided object mapping.
|
|
6
|
-
* @alias swig.loaders.memory
|
|
7
|
-
* @example
|
|
8
|
-
* var templates = {
|
|
9
|
-
* "layout": "{% block content %}{% endblock %}",
|
|
10
|
-
* "home.html": "{% extends 'layout.html' %}{% block content %}...{% endblock %}"
|
|
11
|
-
* };
|
|
12
|
-
* swig.setDefaults({ loader: swig.loaders.memory(templates) });
|
|
13
|
-
*
|
|
14
|
-
* @param {object} mapping Hash object with template paths as keys and template sources as values.
|
|
15
|
-
* @param {string} [basepath] Path to the templates as string. Assigning this value allows you to use semi-absolute paths to templates instead of relative paths.
|
|
16
|
-
*/
|
|
17
|
-
module.exports = function (mapping, basepath) {
|
|
18
|
-
var ret = {};
|
|
19
|
-
|
|
20
|
-
basepath = (basepath) ? path.normalize(basepath) : null;
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* Resolves <var>to</var> to an absolute path or unique identifier. This is used for building correct, normalized, and absolute paths to a given template.
|
|
24
|
-
* @alias resolve
|
|
25
|
-
* @param {string} to Non-absolute identifier or pathname to a file.
|
|
26
|
-
* @param {string} [from] If given, should attempt to find the <var>to</var> path in relation to this given, known path.
|
|
27
|
-
* @return {string}
|
|
28
|
-
*/
|
|
29
|
-
ret.resolve = function (to, from) {
|
|
30
|
-
if (basepath) {
|
|
31
|
-
from = basepath;
|
|
32
|
-
} else {
|
|
33
|
-
from = (from) ? path.dirname(from) : '/';
|
|
34
|
-
}
|
|
35
|
-
return path.resolve(from, to);
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* Loads a single template. Given a unique <var>identifier</var> found by the <var>resolve</var> method this should return the given template.
|
|
40
|
-
* @alias load
|
|
41
|
-
* @param {string} identifier Unique identifier of a template (possibly an absolute path).
|
|
42
|
-
* @param {function} [cb] Asynchronous callback function. If not provided, this method should run synchronously.
|
|
43
|
-
* @return {string} Template source string.
|
|
44
|
-
*/
|
|
45
|
-
ret.load = function (pathname, cb) {
|
|
46
|
-
var src, paths;
|
|
47
|
-
|
|
48
|
-
paths = [pathname, pathname.replace(/^(\/|\\)/, '')];
|
|
49
|
-
|
|
50
|
-
src = mapping[paths[0]] || mapping[paths[1]];
|
|
51
|
-
if (!src) {
|
|
52
|
-
utils.throwError('Unable to find template "' + pathname + '".');
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (cb) {
|
|
56
|
-
cb(null, src);
|
|
57
|
-
return;
|
|
58
|
-
}
|
|
59
|
-
return src;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
return ret;
|
|
63
|
-
};
|