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
|
@@ -0,0 +1,348 @@
|
|
|
1
|
+
var fs = require('fs');
|
|
2
|
+
var readline = require('readline');
|
|
3
|
+
var CmdHelper = require('./../helper');
|
|
4
|
+
var console = lib.logger;
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @module gina/lib/cmd/port/set
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Sets or updates the port number for a bundle/environment/protocol/scheme combination.
|
|
11
|
+
*
|
|
12
|
+
* Usage (positional):
|
|
13
|
+
* gina port:set <bundle_name> @<project_name>
|
|
14
|
+
* gina port:set <protocol>:<port_number> <bundle_name> @<project_name>/<environment>
|
|
15
|
+
*
|
|
16
|
+
* Usage (flags):
|
|
17
|
+
* gina port:set <bundle_name> @<project_name> --protocol=http/1.1 --scheme=http --port=3200 --env=dev
|
|
18
|
+
*
|
|
19
|
+
* When a required value is omitted, the user is prompted interactively.
|
|
20
|
+
*
|
|
21
|
+
* @class Set
|
|
22
|
+
* @constructor
|
|
23
|
+
* @param {object} opt - Parsed command-line options
|
|
24
|
+
* @param {object} opt.client - Socket client for terminal output
|
|
25
|
+
* @param {string[]} opt.argv - Full argv array
|
|
26
|
+
* @param {number} [opt.debugPort] - Node.js inspector port
|
|
27
|
+
* @param {boolean} [opt.debugBrkEnabled] - True when --inspect-brk is active
|
|
28
|
+
* @param {object} cmd - The cmd dispatcher object (lib/cmd/index.js)
|
|
29
|
+
*/
|
|
30
|
+
function Set(opt, cmd) {
|
|
31
|
+
|
|
32
|
+
var self = {}, local = {};
|
|
33
|
+
var requestedProtocol = null
|
|
34
|
+
, requestedScheme = null
|
|
35
|
+
, requestedPort = null
|
|
36
|
+
, requestedEnv = null
|
|
37
|
+
;
|
|
38
|
+
|
|
39
|
+
// Pre-parse argv before CmdHelper to extract protocol:port and @project/env
|
|
40
|
+
// CmdHelper would misclassify the positional protocol:port as a bundle name
|
|
41
|
+
// and fail on @project/env because the project name would include the /env suffix.
|
|
42
|
+
(function preParseArgs() {
|
|
43
|
+
var cleaned = process.argv.slice(0, 3);
|
|
44
|
+
for (var i = 3; i < process.argv.length; i++) {
|
|
45
|
+
var arg = process.argv[i];
|
|
46
|
+
|
|
47
|
+
// Positional protocol:port (e.g. http/1.1:3200, http/2.0:8443)
|
|
48
|
+
var m = arg.match(/^([a-z]+\/[0-9.]+)\:(\d+)$/);
|
|
49
|
+
if (m) {
|
|
50
|
+
requestedProtocol = m[1];
|
|
51
|
+
requestedPort = ~~m[2];
|
|
52
|
+
continue;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// @project/env → extract env, pass clean @project to CmdHelper
|
|
56
|
+
if ( /^\@[a-z0-9_.]/.test(arg) && arg.indexOf('/') > 0 ) {
|
|
57
|
+
var slash = arg.indexOf('/');
|
|
58
|
+
requestedEnv = arg.substring(slash + 1);
|
|
59
|
+
cleaned.push( arg.substring(0, slash) );
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Flag-based overrides
|
|
64
|
+
if ( /^\-\-port\=/.test(arg) ) { requestedPort = ~~arg.split('=')[1]; continue; }
|
|
65
|
+
if ( /^\-\-protocol\=/.test(arg) ) { requestedProtocol = arg.split('=')[1]; continue; }
|
|
66
|
+
if ( /^\-\-scheme\=/.test(arg) ) { requestedScheme = arg.split('=')[1]; continue; }
|
|
67
|
+
if ( /^\-\-env\=/.test(arg) ) { requestedEnv = arg.split('=')[1]; continue; }
|
|
68
|
+
|
|
69
|
+
cleaned.push(arg);
|
|
70
|
+
}
|
|
71
|
+
process.argv = cleaned;
|
|
72
|
+
})();
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
var init = function() {
|
|
76
|
+
|
|
77
|
+
// import CMD helpers
|
|
78
|
+
new CmdHelper(self, opt.client, { port: opt.debugPort, brkEnabled: opt.debugBrkEnabled });
|
|
79
|
+
|
|
80
|
+
// check CMD configuration
|
|
81
|
+
if (!isCmdConfigured()) return false;
|
|
82
|
+
|
|
83
|
+
if (!self.name || !self.projectName) {
|
|
84
|
+
console.error('Usage: gina port:set <bundle_name> @<project_name>');
|
|
85
|
+
process.exit(1);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// Default scheme from protocol when not explicitly given
|
|
89
|
+
if (requestedProtocol && !requestedScheme) {
|
|
90
|
+
requestedScheme = /^http\/2/.test(requestedProtocol) ? 'https' : self.defaultScheme;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
// If all params are present, set directly; otherwise prompt for missing ones
|
|
94
|
+
if (requestedProtocol && requestedScheme && requestedPort && requestedEnv) {
|
|
95
|
+
setPort(requestedProtocol, requestedScheme, requestedPort, requestedEnv);
|
|
96
|
+
} else {
|
|
97
|
+
promptMissing();
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Interactively prompts for any missing parameter (protocol, scheme, env, port)
|
|
104
|
+
* using readline, then delegates to setPort().
|
|
105
|
+
*
|
|
106
|
+
* @inner
|
|
107
|
+
* @private
|
|
108
|
+
*/
|
|
109
|
+
var promptMissing = function() {
|
|
110
|
+
var rl = readline.createInterface({ input: process.stdin, output: process.stdout });
|
|
111
|
+
var steps = [];
|
|
112
|
+
|
|
113
|
+
// --- protocol ---
|
|
114
|
+
if (!requestedProtocol) {
|
|
115
|
+
steps.push(function(cb) {
|
|
116
|
+
var choices = self.protocolsAvailable;
|
|
117
|
+
var list = '';
|
|
118
|
+
for (var i = 0; i < choices.length; i++) {
|
|
119
|
+
var def = (choices[i] === self.defaultProtocol) ? ' - default' : '';
|
|
120
|
+
list += '\n (' + (i+1) + ') ' + choices[i] + def;
|
|
121
|
+
}
|
|
122
|
+
list += '\n\n (c) cancel';
|
|
123
|
+
rl.question('Choose a protocol:' + list + '\r\n> ', function(answer) {
|
|
124
|
+
answer = answer.trim().toLowerCase();
|
|
125
|
+
if ( /^(c|cancel)$/.test(answer) ) { rl.close(); process.exit(0); }
|
|
126
|
+
var idx = ~~answer - 1;
|
|
127
|
+
if (idx >= 0 && idx < choices.length) {
|
|
128
|
+
requestedProtocol = choices[idx];
|
|
129
|
+
} else if (choices.indexOf(answer) > -1) {
|
|
130
|
+
requestedProtocol = answer;
|
|
131
|
+
} else {
|
|
132
|
+
console.error('Invalid choice.');
|
|
133
|
+
rl.close(); process.exit(1);
|
|
134
|
+
}
|
|
135
|
+
cb();
|
|
136
|
+
});
|
|
137
|
+
});
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// --- scheme ---
|
|
141
|
+
if (!requestedScheme) {
|
|
142
|
+
steps.push(function(cb) {
|
|
143
|
+
// auto-derive when possible
|
|
144
|
+
if (requestedProtocol && /^http\/2/.test(requestedProtocol)) {
|
|
145
|
+
requestedScheme = 'https';
|
|
146
|
+
return cb();
|
|
147
|
+
}
|
|
148
|
+
var choices = self.schemesAvailable;
|
|
149
|
+
var list = '';
|
|
150
|
+
for (var i = 0; i < choices.length; i++) {
|
|
151
|
+
var def = (choices[i] === self.defaultScheme) ? ' - default' : '';
|
|
152
|
+
list += '\n (' + (i+1) + ') ' + choices[i] + def;
|
|
153
|
+
}
|
|
154
|
+
list += '\n\n (c) cancel';
|
|
155
|
+
rl.question('Choose a scheme:' + list + '\r\n> ', function(answer) {
|
|
156
|
+
answer = answer.trim().toLowerCase();
|
|
157
|
+
if ( /^(c|cancel)$/.test(answer) ) { rl.close(); process.exit(0); }
|
|
158
|
+
var idx = ~~answer - 1;
|
|
159
|
+
if (idx >= 0 && idx < choices.length) {
|
|
160
|
+
requestedScheme = choices[idx];
|
|
161
|
+
} else if (choices.indexOf(answer) > -1) {
|
|
162
|
+
requestedScheme = answer;
|
|
163
|
+
} else {
|
|
164
|
+
console.error('Invalid choice.');
|
|
165
|
+
rl.close(); process.exit(1);
|
|
166
|
+
}
|
|
167
|
+
cb();
|
|
168
|
+
});
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
// --- environment ---
|
|
173
|
+
if (!requestedEnv) {
|
|
174
|
+
steps.push(function(cb) {
|
|
175
|
+
var choices = self.envs;
|
|
176
|
+
var list = '';
|
|
177
|
+
for (var i = 0; i < choices.length; i++) {
|
|
178
|
+
var def = (choices[i] === self.defaultEnv) ? ' - default' : '';
|
|
179
|
+
list += '\n (' + (i+1) + ') ' + choices[i] + def;
|
|
180
|
+
}
|
|
181
|
+
list += '\n\n (c) cancel';
|
|
182
|
+
rl.question('Choose an environment:' + list + '\r\n> ', function(answer) {
|
|
183
|
+
answer = answer.trim().toLowerCase();
|
|
184
|
+
if ( /^(c|cancel)$/.test(answer) ) { rl.close(); process.exit(0); }
|
|
185
|
+
var idx = ~~answer - 1;
|
|
186
|
+
if (idx >= 0 && idx < choices.length) {
|
|
187
|
+
requestedEnv = choices[idx];
|
|
188
|
+
} else if (choices.indexOf(answer) > -1) {
|
|
189
|
+
requestedEnv = answer;
|
|
190
|
+
} else {
|
|
191
|
+
console.error('Invalid choice.');
|
|
192
|
+
rl.close(); process.exit(1);
|
|
193
|
+
}
|
|
194
|
+
cb();
|
|
195
|
+
});
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
// --- port number ---
|
|
200
|
+
if (!requestedPort) {
|
|
201
|
+
steps.push(function(cb) {
|
|
202
|
+
rl.question('Enter port number:\r\n> ', function(answer) {
|
|
203
|
+
answer = answer.trim();
|
|
204
|
+
if ( /^(c|cancel)$/.test(answer) ) { rl.close(); process.exit(0); }
|
|
205
|
+
requestedPort = ~~answer;
|
|
206
|
+
if (!requestedPort || requestedPort < 1 || requestedPort > 65535) {
|
|
207
|
+
console.error('Invalid port number. Must be between 1 and 65535.');
|
|
208
|
+
rl.close(); process.exit(1);
|
|
209
|
+
}
|
|
210
|
+
cb();
|
|
211
|
+
});
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Run prompt steps sequentially, then apply
|
|
216
|
+
var runSteps = function(i) {
|
|
217
|
+
if (i >= steps.length) {
|
|
218
|
+
rl.close();
|
|
219
|
+
setPort(requestedProtocol, requestedScheme, requestedPort, requestedEnv);
|
|
220
|
+
return;
|
|
221
|
+
}
|
|
222
|
+
steps[i](function() { runSteps(i + 1); });
|
|
223
|
+
};
|
|
224
|
+
runSteps(0);
|
|
225
|
+
};
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
/**
|
|
229
|
+
* Validates inputs and writes the port assignment to ports.json and
|
|
230
|
+
* ports.reverse.json. Removes any previous assignment for the same
|
|
231
|
+
* bundle/env/protocol/scheme before writing the new one.
|
|
232
|
+
*
|
|
233
|
+
* @inner
|
|
234
|
+
* @private
|
|
235
|
+
* @param {string} protocol - e.g. 'http/1.1', 'http/2.0'
|
|
236
|
+
* @param {string} scheme - e.g. 'http', 'https'
|
|
237
|
+
* @param {number} port - Port number to assign
|
|
238
|
+
* @param {string} env - Environment name (e.g. 'dev', 'staging')
|
|
239
|
+
*/
|
|
240
|
+
var setPort = function(protocol, scheme, port, env) {
|
|
241
|
+
|
|
242
|
+
// --- validation ---
|
|
243
|
+
if ( self.protocolsAvailable.indexOf(protocol) < 0 ) {
|
|
244
|
+
console.error('Protocol [ '+ protocol +' ] is not allowed. Available: '+ self.protocolsAvailable.join(', '));
|
|
245
|
+
process.exit(1);
|
|
246
|
+
}
|
|
247
|
+
if ( self.schemesAvailable.indexOf(scheme) < 0 ) {
|
|
248
|
+
console.error('Scheme [ '+ scheme +' ] is not allowed. Available: '+ self.schemesAvailable.join(', '));
|
|
249
|
+
process.exit(1);
|
|
250
|
+
}
|
|
251
|
+
if ( self.envs.indexOf(env) < 0 ) {
|
|
252
|
+
console.error('Environment [ '+ env +' ] is not defined. Available: '+ self.envs.join(', '));
|
|
253
|
+
process.exit(1);
|
|
254
|
+
}
|
|
255
|
+
if ( port < 1 || port > 65535 ) {
|
|
256
|
+
console.error('Port must be between 1 and 65535.');
|
|
257
|
+
process.exit(1);
|
|
258
|
+
}
|
|
259
|
+
// Reserved range (Gina infrastructure)
|
|
260
|
+
if ( port >= 4100 && port <= 4199 ) {
|
|
261
|
+
console.error('Ports 4100-4199 are reserved for Gina infrastructure.');
|
|
262
|
+
process.exit(1);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
loadAssets();
|
|
266
|
+
|
|
267
|
+
var ports = requireJSON(_(self.portsPath));
|
|
268
|
+
var portsReverse = requireJSON(_(self.portsReversePath));
|
|
269
|
+
|
|
270
|
+
var bundleKey = self.name +'@'+ self.projectName;
|
|
271
|
+
var portValue = bundleKey +'/'+ env;
|
|
272
|
+
var portStr = ''+ port;
|
|
273
|
+
|
|
274
|
+
// Check if port is already assigned to a different bundle/env
|
|
275
|
+
if (
|
|
276
|
+
typeof(ports[protocol]) != 'undefined'
|
|
277
|
+
&& typeof(ports[protocol][scheme]) != 'undefined'
|
|
278
|
+
&& typeof(ports[protocol][scheme][portStr]) != 'undefined'
|
|
279
|
+
&& ports[protocol][scheme][portStr] !== portValue
|
|
280
|
+
) {
|
|
281
|
+
console.error('Port '+ port +' is already assigned to '+ ports[protocol][scheme][portStr]);
|
|
282
|
+
process.exit(1);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
// Remove previous port for this bundle/env/protocol/scheme (if reassigning)
|
|
286
|
+
if ( typeof(ports[protocol]) != 'undefined' && typeof(ports[protocol][scheme]) != 'undefined' ) {
|
|
287
|
+
for (var p in ports[protocol][scheme]) {
|
|
288
|
+
if ( ports[protocol][scheme][p] === portValue ) {
|
|
289
|
+
delete ports[protocol][scheme][p];
|
|
290
|
+
break;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
// Ensure structure exists
|
|
296
|
+
if ( typeof(ports[protocol]) == 'undefined' ) ports[protocol] = {};
|
|
297
|
+
if ( typeof(ports[protocol][scheme]) == 'undefined' ) ports[protocol][scheme] = {};
|
|
298
|
+
|
|
299
|
+
// Write new assignment
|
|
300
|
+
ports[protocol][scheme][portStr] = portValue;
|
|
301
|
+
|
|
302
|
+
// Update reverse map
|
|
303
|
+
if ( typeof(portsReverse[bundleKey]) == 'undefined' ) portsReverse[bundleKey] = {};
|
|
304
|
+
if ( typeof(portsReverse[bundleKey][env]) == 'undefined' ) portsReverse[bundleKey][env] = {};
|
|
305
|
+
if ( typeof(portsReverse[bundleKey][env][protocol]) == 'undefined' ) portsReverse[bundleKey][env][protocol] = {};
|
|
306
|
+
portsReverse[bundleKey][env][protocol][scheme] = ~~port;
|
|
307
|
+
|
|
308
|
+
// Persist
|
|
309
|
+
lib.generator.createFileFromDataSync(ports, self.portsPath);
|
|
310
|
+
lib.generator.createFileFromDataSync(portsReverse, self.portsReversePath);
|
|
311
|
+
|
|
312
|
+
console.log('Port '+ port +' assigned to '+ portValue +' ('+ protocol +'/'+ scheme +')');
|
|
313
|
+
end('You may need to restart the bundle for the change to take effect.');
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
/**
|
|
318
|
+
* Prints optional output and exits the process.
|
|
319
|
+
*
|
|
320
|
+
* @inner
|
|
321
|
+
* @private
|
|
322
|
+
* @param {string|Error} [output] - Message or Error to display
|
|
323
|
+
* @param {string} [type] - console method to call (e.g. 'error', 'warn')
|
|
324
|
+
* @param {boolean} [messageOnly] - When true, print only the message, not the stack
|
|
325
|
+
*/
|
|
326
|
+
var end = function (output, type, messageOnly) {
|
|
327
|
+
var err = false;
|
|
328
|
+
if ( typeof(output) != 'undefined') {
|
|
329
|
+
if ( output instanceof Error ) {
|
|
330
|
+
err = output = ( typeof(messageOnly) != 'undefined' && /^true$/i.test(messageOnly) ) ? output.message : (output.stack||output.message);
|
|
331
|
+
}
|
|
332
|
+
if ( typeof(type) != 'undefined' ) {
|
|
333
|
+
console[type](output);
|
|
334
|
+
if ( messageOnly && type != 'log') {
|
|
335
|
+
console.log(output);
|
|
336
|
+
}
|
|
337
|
+
} else {
|
|
338
|
+
console.log(output);
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
process.exit( err ? 1:0 )
|
|
343
|
+
};
|
|
344
|
+
|
|
345
|
+
init();
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
module.exports = Set;
|
|
@@ -12,7 +12,7 @@ if ( typeof(module) !== 'undefined' && module.exports ) {
|
|
|
12
12
|
* `Collection.length` returns entry count — do not use `.count()` as it
|
|
13
13
|
* includes function properties in the count.
|
|
14
14
|
*
|
|
15
|
-
* Dependencies: `lib/merge`, `uuid`
|
|
15
|
+
* Dependencies: `lib/merge`, `lib/uuid`
|
|
16
16
|
*/
|
|
17
17
|
|
|
18
18
|
/**
|
|
@@ -53,7 +53,7 @@ if ( typeof(module) !== 'undefined' && module.exports ) {
|
|
|
53
53
|
function Collection(content, options) {
|
|
54
54
|
|
|
55
55
|
var isGFFCtx = ( ( typeof(module) !== 'undefined' ) && module.exports ) ? false : true;
|
|
56
|
-
var uuid =
|
|
56
|
+
var uuid = (isGFFCtx) ? require('lib/uuid') : require('../../../lib/uuid');
|
|
57
57
|
var merge = (isGFFCtx) ? require('lib/merge') : require('../../../lib/merge');
|
|
58
58
|
|
|
59
59
|
// defined search option rules
|
|
@@ -110,7 +110,7 @@ function Collection(content, options) {
|
|
|
110
110
|
if ( typeof(content[entry]._uuid) != 'undefined' ) {
|
|
111
111
|
content[entry]._hasItsOwnUuid = true;
|
|
112
112
|
} else {
|
|
113
|
-
content[entry]._uuid = uuid
|
|
113
|
+
content[entry]._uuid = uuid();
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
// To avoid duplicate entries
|
|
@@ -871,7 +871,7 @@ function Collection(content, options) {
|
|
|
871
871
|
var tmpContent = Array.isArray(this) ? this : content;
|
|
872
872
|
|
|
873
873
|
// Indexing;
|
|
874
|
-
set._uuid = uuid
|
|
874
|
+
set._uuid = uuid();
|
|
875
875
|
tmpContent.push(set);
|
|
876
876
|
|
|
877
877
|
result = tmpContent;
|
|
@@ -69,6 +69,7 @@ function Lib() {
|
|
|
69
69
|
SessionStore : _require('./session-store'),
|
|
70
70
|
SwigFilters : _require('./swig-filters'),
|
|
71
71
|
Cache : _require('./cache'),
|
|
72
|
+
uuid : _require('./uuid'),
|
|
72
73
|
// #R1 — WatcherService: fs.watch-based file-change registry. Class is hot-reloadable;
|
|
73
74
|
// instantiated once per bundle in gna.js:onStarted and stored as gna.watcher.
|
|
74
75
|
Watcher : _require('./watcher'),
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
const fs = require('fs');
|
|
4
4
|
// const util = require('util');
|
|
5
5
|
const net = require('net');
|
|
6
|
-
|
|
6
|
+
var uuid = require('../../../../uuid');
|
|
7
7
|
|
|
8
8
|
function MQListener(opt, cb) {
|
|
9
9
|
var self = {
|
|
@@ -154,7 +154,7 @@ function MQListener(opt, cb) {
|
|
|
154
154
|
var host = opt.hostV4;
|
|
155
155
|
var server = net.createServer( function(conn) {//'connection' listener
|
|
156
156
|
|
|
157
|
-
conn.sessionId =
|
|
157
|
+
conn.sessionId = uuid();
|
|
158
158
|
// conn.request = 'report'; // by default
|
|
159
159
|
sessions[conn.sessionId] = conn;
|
|
160
160
|
conn.write(JSON.stringify({ sessionId: conn.sessionId }) +'\r\n' );
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
/**
|
|
3
|
+
* @module lib/uuid
|
|
4
|
+
* @description Lightweight, cryptographically secure ID generator.
|
|
5
|
+
* Produces short random strings from a base-62 alphabet (0-9 A-Z a-z).
|
|
6
|
+
* Uses `crypto.getRandomValues` (available in Node.js >= 15 and all modern browsers).
|
|
7
|
+
* Bitmask technique avoids modulo bias — identical to the approach used by the
|
|
8
|
+
* `nanoid` npm package, but with zero external dependencies.
|
|
9
|
+
*
|
|
10
|
+
* Works in Node.js (CommonJS) and browser (AMD / GFF) contexts.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* var uuid = require('lib/uuid');
|
|
14
|
+
* uuid(); // 'aB3x' (4 chars, base-62 default)
|
|
15
|
+
* uuid(8); // 'kQ7mZp2R'
|
|
16
|
+
*
|
|
17
|
+
* // Custom alphabet
|
|
18
|
+
* var hex = uuid.customAlphabet('0123456789abcdef', 8);
|
|
19
|
+
* hex(); // 'f47ac10b' (8 chars, hex)
|
|
20
|
+
* hex(4); // 'a3f1' (override length)
|
|
21
|
+
*
|
|
22
|
+
* @param {number} [size=4] - Length of the generated ID
|
|
23
|
+
* @returns {string} Random string of `size` characters from the base-62 alphabet
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
var _alphabet = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
|
|
27
|
+
var _mask = 63; // smallest (2^n - 1) >= 62 — rejects 62,63 (~3% waste, no bias)
|
|
28
|
+
var _step = 7; // ceil(1.6 * 63 * 4 / 62) — enough random bytes per iteration
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Generate a cryptographically secure random ID.
|
|
32
|
+
*
|
|
33
|
+
* @param {number} [size=4] - Desired ID length
|
|
34
|
+
* @returns {string} Random base-62 string
|
|
35
|
+
*/
|
|
36
|
+
function uuid(size) {
|
|
37
|
+
size = size || 4;
|
|
38
|
+
var id = '';
|
|
39
|
+
while (true) {
|
|
40
|
+
var bytes = crypto.getRandomValues(new Uint8Array(_step));
|
|
41
|
+
for (var j = 0; j < _step; j++) {
|
|
42
|
+
var idx = bytes[j] & _mask;
|
|
43
|
+
if (idx < 62) {
|
|
44
|
+
id += _alphabet[idx];
|
|
45
|
+
if (id.length === size) return id;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
/**
|
|
52
|
+
* Create a generator function for a custom alphabet and default size.
|
|
53
|
+
*
|
|
54
|
+
* @param {string} alphabet - Characters to use (e.g. '0123456789abcdef')
|
|
55
|
+
* @param {number} [defaultSize=4] - Default length when the returned function is called without arguments
|
|
56
|
+
* @returns {function(number=): string} Generator function
|
|
57
|
+
*/
|
|
58
|
+
uuid.customAlphabet = function(alphabet, defaultSize) {
|
|
59
|
+
defaultSize = defaultSize || 4;
|
|
60
|
+
// Compute bitmask: smallest (2^n - 1) >= alphabet.length - 1
|
|
61
|
+
var mask = 1;
|
|
62
|
+
while (mask < alphabet.length - 1) mask = (mask << 1) | 1;
|
|
63
|
+
// Step: enough random bytes per iteration to fill `defaultSize` with ~60% overhead
|
|
64
|
+
var step = Math.ceil(1.6 * (mask + 1) * defaultSize / alphabet.length);
|
|
65
|
+
if (step < 5) step = 5;
|
|
66
|
+
|
|
67
|
+
return function(size) {
|
|
68
|
+
size = size || defaultSize;
|
|
69
|
+
var id = '';
|
|
70
|
+
while (true) {
|
|
71
|
+
var bytes = crypto.getRandomValues(new Uint8Array(step));
|
|
72
|
+
for (var j = 0; j < step; j++) {
|
|
73
|
+
var idx = bytes[j] & mask;
|
|
74
|
+
if (idx < alphabet.length) {
|
|
75
|
+
id += alphabet[idx];
|
|
76
|
+
if (id.length === size) return id;
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
if ( ( typeof(module) !== 'undefined' ) && module.exports ) {
|
|
85
|
+
// Server-side: ensure crypto.getRandomValues is available (Node < 19 polyfill)
|
|
86
|
+
if ( typeof(crypto) === 'undefined' || typeof(crypto.getRandomValues) !== 'function' ) {
|
|
87
|
+
var _webcrypto = require('crypto').webcrypto || require('crypto');
|
|
88
|
+
if (typeof(globalThis) !== 'undefined') {
|
|
89
|
+
globalThis.crypto = _webcrypto;
|
|
90
|
+
} else {
|
|
91
|
+
crypto = _webcrypto;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// Publish as node.js module
|
|
95
|
+
module.exports = uuid
|
|
96
|
+
} else if ( typeof(define) === 'function' && define.amd) {
|
|
97
|
+
// Publish as AMD module
|
|
98
|
+
define( function() { return uuid })
|
|
99
|
+
}
|
package/gna.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Gina — Explicit exports for global helpers
|
|
3
|
+
*
|
|
4
|
+
* Usage:
|
|
5
|
+
* const { getContext, _, onCompleteCall } = require('gina/gna');
|
|
6
|
+
*
|
|
7
|
+
* All symbols are also available as globals at runtime (no import required).
|
|
8
|
+
* This module provides explicit exports so IDEs can navigate to definitions
|
|
9
|
+
* and static analysis tools can verify usage.
|
|
10
|
+
*
|
|
11
|
+
* Getters are used so that symbols resolve at access time (after framework boot),
|
|
12
|
+
* not at require() time.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
'use strict';
|
|
16
|
+
|
|
17
|
+
// Framework core — the main gna module (lifecycle hooks, lib, etc.)
|
|
18
|
+
var _gna = require('./framework/v0.3.3-alpha.3/core/gna');
|
|
19
|
+
|
|
20
|
+
// SuperController and EntitySuper — loaded from their source modules
|
|
21
|
+
var SuperController = require('./framework/v0.3.3-alpha.3/core/controller');
|
|
22
|
+
var EntitySuper = require('./framework/v0.3.3-alpha.3/core/model/entity');
|
|
23
|
+
|
|
24
|
+
// uuid — from the lib registry
|
|
25
|
+
var uuid = require('./framework/v0.3.3-alpha.3/lib/uuid');
|
|
26
|
+
|
|
27
|
+
module.exports = {
|
|
28
|
+
|
|
29
|
+
// ── Context helpers ──────────────────────────────────────────────────
|
|
30
|
+
|
|
31
|
+
get setContext() { return global.setContext; },
|
|
32
|
+
get getContext() { return global.getContext; },
|
|
33
|
+
get resetContext() { return global.resetContext; },
|
|
34
|
+
get getConfig() { return global.getConfig; },
|
|
35
|
+
get getLib() { return global.getLib; },
|
|
36
|
+
get whisper() { return global.whisper; },
|
|
37
|
+
get define() { return global.define; },
|
|
38
|
+
get getDefined() { return global.getDefined; },
|
|
39
|
+
|
|
40
|
+
// ── Path helpers ─────────────────────────────────────────────────────
|
|
41
|
+
|
|
42
|
+
get _() { return global._; },
|
|
43
|
+
get setPath() { return global.setPath; },
|
|
44
|
+
get getPath() { return global.getPath; },
|
|
45
|
+
get setPaths() { return global.setPaths; },
|
|
46
|
+
get getPaths() { return global.getPaths; },
|
|
47
|
+
get onCompleteCall() { return global.onCompleteCall; },
|
|
48
|
+
|
|
49
|
+
// ── Model helpers ────────────────────────────────────────────────────
|
|
50
|
+
|
|
51
|
+
get getModel() { return global.getModel; },
|
|
52
|
+
get getModelEntity() { return global.getModelEntity; },
|
|
53
|
+
|
|
54
|
+
// ── JSON helper ──────────────────────────────────────────────────────
|
|
55
|
+
|
|
56
|
+
get requireJSON() { return global.requireJSON; },
|
|
57
|
+
|
|
58
|
+
// ── Task helper ──────────────────────────────────────────────────────
|
|
59
|
+
|
|
60
|
+
get run() { return global.run; },
|
|
61
|
+
|
|
62
|
+
// ── Env helpers ──────────────────────────────────────────────────────
|
|
63
|
+
|
|
64
|
+
get getUserHome() { return global.getUserHome; },
|
|
65
|
+
get getEnvVar() { return global.getEnvVar; },
|
|
66
|
+
get getEnvVars() { return global.getEnvVars; },
|
|
67
|
+
get setEnvVar() { return global.setEnvVar; },
|
|
68
|
+
get getLogDir() { return global.getLogDir; },
|
|
69
|
+
get getRunDir() { return global.getRunDir; },
|
|
70
|
+
get getTmpDir() { return global.getTmpDir; },
|
|
71
|
+
get parseTimeout() { return global.parseTimeout; },
|
|
72
|
+
get isWin32() { return global.isWin32; },
|
|
73
|
+
|
|
74
|
+
// ── Classes ──────────────────────────────────────────────────────────
|
|
75
|
+
|
|
76
|
+
SuperController: SuperController,
|
|
77
|
+
EntitySuper: EntitySuper,
|
|
78
|
+
|
|
79
|
+
// ── uuid ─────────────────────────────────────────────────────────────
|
|
80
|
+
|
|
81
|
+
uuid: uuid,
|
|
82
|
+
|
|
83
|
+
// ── ApiError ─────────────────────────────────────────────────────────
|
|
84
|
+
|
|
85
|
+
get ApiError() { return global.ApiError; }
|
|
86
|
+
};
|