gina 0.1.1-alpha.165 → 0.1.1-alpha.167
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/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.167/VERSION +1 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.js +1639 -1569
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.js +397 -396
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.min.js.map +5 -5
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/gina.onload.min.js.map +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/readme.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/config.js +7 -7
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.v2.js +4 -4
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.v3.js +51 -51
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/connector.v4.js +4 -4
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.v3.js +12 -12
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/connectors/couchbase/lib/session-store.v4.js +3 -4
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/controller/controller.js +37 -25
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/dev/lib/class.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/dev/lib/factory.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/gna.js +4 -4
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/model/entity.js +6 -6
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/model/index.js +8 -9
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/model/template/index.js +14 -13
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/intl/src/main.js +5 -5
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/storage/src/main.js +4 -4
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/validator/src/form-validator.js +8 -8
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/plugins/lib/validator/src/main.js +1276 -1255
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/router.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/server.isaac.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/server.js +85 -19
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/controllers/controller.content.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/controllers/setup.js +15 -15
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/index.js +13 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/command/gina.tpl +3 -3
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/console.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/context.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/dateFormat.js +5 -5
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/index.js +3 -3
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/json/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/json/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/path.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/plugins/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/helpers/text.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/archiver/src/dep/jszip.min.js +3 -3
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/archiver/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/start.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/init.js +8 -8
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/link.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/start.js +9 -9
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/tail.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/index.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/collection/src/main.js +241 -241
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/config.js +29 -29
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/cron/src/main.js +3 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/dist/public_suffix_list.dat +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/exemples/backend.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/exemples/frontend.html +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/domain/src/main.js +5 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/generator/index.js +3 -3
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/index.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/README.md +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/package.json +2 -3
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/inherits/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/logger/src/main.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/math/index.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/merge/README.md +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/model.js +1 -1
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/proc.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/routing/src/main.js +12 -6
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/lib/validator.js +2 -2
- package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/package.json +1 -1
- package/package.json +2 -2
- package/services/src/proxy/controllers/setup.js +14 -14
- package/framework/v0.1.1-alpha.165/VERSION +0 -1
|
File without changes
|
|
File without changes
|
|
@@ -34,7 +34,7 @@ var refreshCore = function() {
|
|
|
34
34
|
//update lib & helpers
|
|
35
35
|
delete require.cache[require.resolve(_(libPath +'/index.js', true))];
|
|
36
36
|
require.cache[_(libPath +'/index.js', true)] = require( _(libPath +'/index.js', true) );
|
|
37
|
-
require.cache[_(corePath + '/gna.js', true)].exports.
|
|
37
|
+
require.cache[_(corePath + '/gna.js', true)].exports.lib = require.cache[_(libPath +'/index.js', true)];
|
|
38
38
|
|
|
39
39
|
//update plugins
|
|
40
40
|
delete require.cache[require.resolve(_(corePath +'/plugins/index.js', true))];
|
|
@@ -15,7 +15,7 @@ const swig = require( _(GINA_FRAMEWORK_DIR +'/node_modules/swig', true)
|
|
|
15
15
|
var Config = require('./config');
|
|
16
16
|
var Router = require('./router');
|
|
17
17
|
var lib = require('./../lib');
|
|
18
|
-
var
|
|
18
|
+
var routingLib = lib.routing;
|
|
19
19
|
var inherits = lib.inherits;
|
|
20
20
|
var merge = lib.merge;
|
|
21
21
|
var Proc = lib.Proc;
|
|
@@ -1171,7 +1171,12 @@ function Server(options) {
|
|
|
1171
1171
|
|
|
1172
1172
|
var headerValue = null;
|
|
1173
1173
|
for (var h in resHeaders) {
|
|
1174
|
-
if (
|
|
1174
|
+
if (
|
|
1175
|
+
// typeof(response.finished) != 'undefined' && !response.finished
|
|
1176
|
+
// || typeof(response.writableEnded) != 'undefined' && !response.writableEnded
|
|
1177
|
+
// ||
|
|
1178
|
+
!response.headersSent
|
|
1179
|
+
) {
|
|
1175
1180
|
// handles multiple origins
|
|
1176
1181
|
if ( /access\-control\-allow\-origin/i.test(h) ) { // re.test(resHeaders[h]
|
|
1177
1182
|
if (sameOrigin) {
|
|
@@ -1194,13 +1199,26 @@ function Server(options) {
|
|
|
1194
1199
|
origin = sameOrigin;
|
|
1195
1200
|
|
|
1196
1201
|
|
|
1197
|
-
|
|
1202
|
+
// if (
|
|
1203
|
+
// typeof(response.finished) != 'undefined' && !response.finished
|
|
1204
|
+
// || typeof(response.writableEnded) != 'undefined' && !response.writableEnded
|
|
1205
|
+
// || !response.headersSent
|
|
1206
|
+
// ) {
|
|
1207
|
+
response.setHeader(h, origin);
|
|
1208
|
+
// }
|
|
1209
|
+
|
|
1198
1210
|
}
|
|
1199
1211
|
sameOrigin = false;
|
|
1200
1212
|
} else {
|
|
1201
1213
|
headerValue = resHeaders[h];
|
|
1202
1214
|
try {
|
|
1203
|
-
|
|
1215
|
+
// if (
|
|
1216
|
+
// typeof(response.finished) != 'undefined' && !response.finished
|
|
1217
|
+
// || typeof(response.writableEnded) != 'undefined' && !response.writableEnded
|
|
1218
|
+
// || !response.headersSent
|
|
1219
|
+
// ) {
|
|
1220
|
+
response.setHeader(h, headerValue)
|
|
1221
|
+
// }
|
|
1204
1222
|
} catch (headerError) {
|
|
1205
1223
|
console.error(headerError)
|
|
1206
1224
|
}
|
|
@@ -1230,6 +1248,7 @@ function Server(options) {
|
|
|
1230
1248
|
, cacheless = conf.cacheless
|
|
1231
1249
|
;
|
|
1232
1250
|
|
|
1251
|
+
|
|
1233
1252
|
if (
|
|
1234
1253
|
headers[':path'] == '/'
|
|
1235
1254
|
|| headers[':path'] == this._options.conf.server.webroot
|
|
@@ -1247,6 +1266,10 @@ function Server(options) {
|
|
|
1247
1266
|
|
|
1248
1267
|
var url = (isWebroot) ? this._referrer : headers[':path'];
|
|
1249
1268
|
|
|
1269
|
+
var hanlersPath = conf.handlersPath
|
|
1270
|
+
, isHandler = ( new RegExp('^'+ hanlersPath).test(assets[ url ].filename) ) ? true: false
|
|
1271
|
+
;
|
|
1272
|
+
|
|
1250
1273
|
if (!stream.pushAllowed) {
|
|
1251
1274
|
asset = {
|
|
1252
1275
|
url : url,
|
|
@@ -1255,13 +1278,39 @@ function Server(options) {
|
|
|
1255
1278
|
isAvailable : assets[ url ].isAvailable,
|
|
1256
1279
|
mime : assets[ url ].mime,
|
|
1257
1280
|
encoding : conf.encoding,
|
|
1258
|
-
|
|
1281
|
+
isBinary : assets[ url ].isBinary,
|
|
1282
|
+
isHandler : assets[ url ].isHandler
|
|
1259
1283
|
};
|
|
1260
1284
|
header = merge({ ':status': 200 }, response.getHeaders());
|
|
1261
1285
|
header['content-type'] = ( !/charset/.test(asset.mime ) ) ? asset.mime + '; charset='+ asset.encoding : asset.mime;
|
|
1262
1286
|
header = completeHeaders(header, local.request, response);
|
|
1263
|
-
if (
|
|
1264
|
-
|
|
1287
|
+
if (asset.isBinary || asset.isHandler ) {
|
|
1288
|
+
|
|
1289
|
+
|
|
1290
|
+
if (asset.isHandler) {
|
|
1291
|
+
// adding handler `gina.ready(...)` wrapper
|
|
1292
|
+
var file = null;
|
|
1293
|
+
if ( !fs.existsSync(asset.filename) ) {
|
|
1294
|
+
throwError({stream: stream}, 404, 'Page not found: \n' + headers[':path']);
|
|
1295
|
+
return;
|
|
1296
|
+
}
|
|
1297
|
+
|
|
1298
|
+
if (!assets[ url ].file) {
|
|
1299
|
+
file = fs.readFileSync(asset.filename, asset.encoding).toString();
|
|
1300
|
+
file = '(gina.ready(function onGinaReady($){\n'+ file + '\n},window["originalContext"]));';
|
|
1301
|
+
this._options.template.assets[ headers[':path'] ].file = file;
|
|
1302
|
+
} else {
|
|
1303
|
+
file = assets[ url ].file;
|
|
1304
|
+
}
|
|
1305
|
+
|
|
1306
|
+
// header['content-length'] = fs.statSync(file).size;
|
|
1307
|
+
stream.respond(header);
|
|
1308
|
+
stream.end(file);
|
|
1309
|
+
|
|
1310
|
+
return;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
header['content-length'] = fs.statSync(asset.filename).size;
|
|
1265
1314
|
stream.respondWithFile(
|
|
1266
1315
|
asset.filename
|
|
1267
1316
|
, header
|
|
@@ -1336,7 +1385,7 @@ function Server(options) {
|
|
|
1336
1385
|
isAvailable : assets[ url ].isAvailable,
|
|
1337
1386
|
mime : assets[ url ].mime,
|
|
1338
1387
|
encoding : conf.encoding,
|
|
1339
|
-
isHandler :
|
|
1388
|
+
isHandler : isHandler
|
|
1340
1389
|
};
|
|
1341
1390
|
|
|
1342
1391
|
console.debug('h2 pushing: '+ headers[':path'] + ' -> '+ asset.filename);
|
|
@@ -1349,7 +1398,7 @@ function Server(options) {
|
|
|
1349
1398
|
return;
|
|
1350
1399
|
}
|
|
1351
1400
|
|
|
1352
|
-
asset.isHandler = true;
|
|
1401
|
+
asset.isHandler = this._options.template.assets[ headers[':path'] ].isHandler = true;
|
|
1353
1402
|
asset.file = fs.readFileSync(asset.filename, asset.encoding).toString();
|
|
1354
1403
|
asset.file = '(gina.ready(function onGinaReady($){\n'+ asset.file + '\n},window["originalContext"]));';
|
|
1355
1404
|
|
|
@@ -1473,6 +1522,7 @@ function Server(options) {
|
|
|
1473
1522
|
var isFilenameDir = null
|
|
1474
1523
|
, dirname = null
|
|
1475
1524
|
, isBinary = null
|
|
1525
|
+
, isHandler = null
|
|
1476
1526
|
, hanlersPath = null
|
|
1477
1527
|
;
|
|
1478
1528
|
|
|
@@ -1565,7 +1615,8 @@ function Server(options) {
|
|
|
1565
1615
|
|
|
1566
1616
|
if (!response.headersSent) {
|
|
1567
1617
|
|
|
1568
|
-
isBinary
|
|
1618
|
+
isBinary = true;
|
|
1619
|
+
isHandler = false;
|
|
1569
1620
|
|
|
1570
1621
|
try {
|
|
1571
1622
|
contentType = getHead(response, filename);
|
|
@@ -1585,7 +1636,8 @@ function Server(options) {
|
|
|
1585
1636
|
hanlersPath = bundleConf.handlersPath;
|
|
1586
1637
|
|
|
1587
1638
|
if ( new RegExp('^'+ hanlersPath).test(filename) ) {
|
|
1588
|
-
isBinary
|
|
1639
|
+
isBinary = false;
|
|
1640
|
+
isHandler = true;
|
|
1589
1641
|
file = '(gina.ready(function onGinaReady($){\n'+ file + '\n},window["originalContext"]));'
|
|
1590
1642
|
}
|
|
1591
1643
|
}
|
|
@@ -1611,7 +1663,8 @@ function Server(options) {
|
|
|
1611
1663
|
mime: contentType,
|
|
1612
1664
|
url: request.url,
|
|
1613
1665
|
filename: filename,
|
|
1614
|
-
isBinary: isBinary
|
|
1666
|
+
isBinary: isBinary,
|
|
1667
|
+
isHandler: isHandler
|
|
1615
1668
|
}
|
|
1616
1669
|
}
|
|
1617
1670
|
|
|
@@ -1691,12 +1744,14 @@ function Server(options) {
|
|
|
1691
1744
|
mime: contentType,
|
|
1692
1745
|
url: request.url,
|
|
1693
1746
|
filename: filename,
|
|
1694
|
-
isBinary: isBinary
|
|
1747
|
+
isBinary: isBinary,
|
|
1748
|
+
isHandler: isHandler
|
|
1695
1749
|
}
|
|
1696
1750
|
}
|
|
1697
1751
|
|
|
1698
1752
|
if (!fs.existsSync(filename)) return;
|
|
1699
|
-
isBinary
|
|
1753
|
+
isBinary = ( /text\/html/i.test(contentType) ) ? false : true;
|
|
1754
|
+
isHandler = ( new RegExp('^'+ bundleConf.handlersPath).test(filename) ) ? true : false;
|
|
1700
1755
|
if ( isBinary ) {
|
|
1701
1756
|
// override
|
|
1702
1757
|
self._options.template.assets[request.url] = {
|
|
@@ -1705,7 +1760,18 @@ function Server(options) {
|
|
|
1705
1760
|
mime: contentType,
|
|
1706
1761
|
url: request.url,
|
|
1707
1762
|
filename: filename,
|
|
1708
|
-
isBinary: isBinary
|
|
1763
|
+
isBinary: isBinary,
|
|
1764
|
+
isHandler: isHandler
|
|
1765
|
+
}
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
if ( isHandler ) {
|
|
1769
|
+
// adding handler `gina.ready(...)` wrapper
|
|
1770
|
+
var file = null;
|
|
1771
|
+
if (!self._options.template.assets[request.url].file) {
|
|
1772
|
+
file = fs.readFileSync(filename, bundleConf.encoding).toString();
|
|
1773
|
+
file = '(gina.ready(function onGinaReady($){\n'+ file + '\n},window["originalContext"]));';
|
|
1774
|
+
self._options.template.assets[request.url].file = file;
|
|
1709
1775
|
}
|
|
1710
1776
|
}
|
|
1711
1777
|
self.onHttp2Stream(stream, headers, response);
|
|
@@ -2732,7 +2798,7 @@ function Server(options) {
|
|
|
2732
2798
|
, wroot = null
|
|
2733
2799
|
;
|
|
2734
2800
|
|
|
2735
|
-
//matched =
|
|
2801
|
+
//matched = routingLib.getRouteByUrl(req.url, bundle, (req.method||req[':method']), req);
|
|
2736
2802
|
|
|
2737
2803
|
req = checkPreflightRequest(req);
|
|
2738
2804
|
var params = {}
|
|
@@ -2798,7 +2864,7 @@ function Server(options) {
|
|
|
2798
2864
|
|
|
2799
2865
|
//Parsing for the right url.
|
|
2800
2866
|
try {
|
|
2801
|
-
isRoute = await
|
|
2867
|
+
isRoute = await routingLib.compareUrls(params, routing[name].url, req, res, next);
|
|
2802
2868
|
} catch (err) {
|
|
2803
2869
|
var msg = 'Internal server error.\nRule [ '+name+' ] needs your attention.\n';
|
|
2804
2870
|
// TODO - Refactor `ApiError`to handle the following param
|
|
@@ -2918,7 +2984,7 @@ function Server(options) {
|
|
|
2918
2984
|
}
|
|
2919
2985
|
|
|
2920
2986
|
if (!res.headersSent) {
|
|
2921
|
-
res.headersSent = true;
|
|
2987
|
+
// res.headersSent = true;
|
|
2922
2988
|
local.request = checkPreflightRequest(local.request);
|
|
2923
2989
|
// updated filter on controller.js : 2020/09/25
|
|
2924
2990
|
//if (isXMLRequest || !withViews || !isUsingTemplate ) {
|
|
@@ -3037,7 +3103,7 @@ function Server(options) {
|
|
|
3037
3103
|
}
|
|
3038
3104
|
|
|
3039
3105
|
var eRule = 'custom-error-page@'+ self.appName;
|
|
3040
|
-
var routeObj =
|
|
3106
|
+
var routeObj = routingLib.getRoute(eRule);
|
|
3041
3107
|
routeObj.rule = eRule;
|
|
3042
3108
|
routeObj.url = url;
|
|
3043
3109
|
routeObj.param.title = ( typeof(eData.title) != 'undefined' ) ? eData.title : 'Error ' + eData.status;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
//Imports goes here.
|
|
2
|
-
// var md
|
|
3
|
-
// var
|
|
4
|
-
// var merge
|
|
2
|
+
// var md = require('marked'); // visit: https://github.com/jmcmanus/pagedown-extra
|
|
3
|
+
// var lib = require('gina').lib;
|
|
4
|
+
// var merge = lib.merge;
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* Setup Class
|
|
@@ -21,14 +21,14 @@ function SetupClass(req, res, next){
|
|
|
21
21
|
|
|
22
22
|
// defining filters
|
|
23
23
|
var swig = this.engine;
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
/**
|
|
26
26
|
* Inherited filters from Gina are:
|
|
27
27
|
* [ getWebroot ]
|
|
28
28
|
* Will get the current webroot
|
|
29
29
|
* e.g.:
|
|
30
30
|
* {{ '' | getWebroot() }}
|
|
31
|
-
*
|
|
31
|
+
*
|
|
32
32
|
* [ getUrl ]
|
|
33
33
|
* Will tranlate a route name to an url
|
|
34
34
|
* e.g.:
|
|
@@ -38,25 +38,25 @@ function SetupClass(req, res, next){
|
|
|
38
38
|
* <a href="{{ 'users-get-empty' | getUrl({ id: '' }) }}">Get empty</a>
|
|
39
39
|
* <a href="{{ 'users-list' | getUrl(null, 'http://domain.com') }}">Display all users</a>
|
|
40
40
|
* <a href="{{ '/dashboard' | getUrl(null, 'admin') }}">Go to admin bundle's dashboard page</a>
|
|
41
|
-
* <a href="{{ 'home@admin' | getUrl() }}">Go to admin bundle's dashboard page</a>
|
|
42
|
-
*
|
|
41
|
+
* <a href="{{ 'home@admin' | getUrl() }}">Go to admin bundle's dashboard page</a>
|
|
42
|
+
*
|
|
43
43
|
* [ length ]
|
|
44
44
|
* Extends default Swig `length` filter
|
|
45
|
-
*
|
|
45
|
+
*
|
|
46
46
|
* [ nl2br ]
|
|
47
47
|
* Will replace all `\n` by `<br/>`
|
|
48
48
|
* e.g.:
|
|
49
49
|
* {{ contact.address | nl2br }}
|
|
50
50
|
*/
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
|
|
52
|
+
|
|
53
53
|
/**
|
|
54
54
|
* Sample of a swig filter to render markdown content
|
|
55
55
|
* To activate this code, you will need :
|
|
56
56
|
* 1) to install `marked` dependency : npm install marked --save
|
|
57
57
|
* 2) uncomment imports on the top of this script
|
|
58
58
|
* 3) uncomment the following filter definition
|
|
59
|
-
*/
|
|
59
|
+
*/
|
|
60
60
|
// // default markdown options
|
|
61
61
|
// var markdownOpt = { // visit: https://github.com/jmcmanus/pagedown-extra
|
|
62
62
|
// //renderer : mdRenderer,
|
|
@@ -71,11 +71,11 @@ function SetupClass(req, res, next){
|
|
|
71
71
|
// };
|
|
72
72
|
|
|
73
73
|
// md.setOptions(markdownOpt);
|
|
74
|
-
|
|
74
|
+
|
|
75
75
|
// var setupSwigFilters = function(swig) {
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
// if ( typeof(swig) == 'undefined' ) return;
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
// /*
|
|
80
80
|
// * markdown filter
|
|
81
81
|
// * Usage:
|
|
@@ -101,7 +101,7 @@ function SetupClass(req, res, next){
|
|
|
101
101
|
// return text
|
|
102
102
|
// });
|
|
103
103
|
// }
|
|
104
|
-
|
|
104
|
+
|
|
105
105
|
if (swig && typeof(setupSwigFilters) != 'undefined') { // not always available: redirect, xhr requests
|
|
106
106
|
setupSwigFilters(swig)
|
|
107
107
|
}
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/boilerplate/bundle/index.js
RENAMED
|
@@ -6,10 +6,22 @@
|
|
|
6
6
|
//var session = require('express-session');
|
|
7
7
|
var {bundle} = require('gina');
|
|
8
8
|
|
|
9
|
+
// gina lib samples
|
|
10
|
+
// var lib = {bundle}.lib;
|
|
11
|
+
// var routing = lib.routing;
|
|
12
|
+
// var console = lib.logger;
|
|
13
|
+
// var operate = lib.math.operate;
|
|
14
|
+
// var Collection = lib.Collection;
|
|
15
|
+
// var SessionStore = lib.SessionStore(session);
|
|
16
|
+
// var Domain = lib.Domain;
|
|
17
|
+
|
|
18
|
+
|
|
9
19
|
// do whatever things you need to do before server starts
|
|
10
20
|
//{bundle}.onInitialize( function(event, app, express){//
|
|
11
21
|
// var self = {bundle};
|
|
12
|
-
//
|
|
22
|
+
// // getting config/app.json would be: self.getConfig('app')
|
|
23
|
+
// // or self.getConfig().app
|
|
24
|
+
// var conf = self.getConfig();
|
|
13
25
|
// // you can use express middleware components
|
|
14
26
|
// // eg.: app.use( session({secret: '1234567890QWERTY'}) );
|
|
15
27
|
//
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -17,10 +17,10 @@ var fs = require('fs');
|
|
|
17
17
|
|
|
18
18
|
try {
|
|
19
19
|
require('./node_modules/gina/node_modules/colors');
|
|
20
|
-
var
|
|
21
|
-
var console =
|
|
20
|
+
var lib = require("./node_modules/gina/core/lib");
|
|
21
|
+
var console = lib.logger;
|
|
22
22
|
console.log('Gina I/O Command Line Tool \r\n'.rainbow);
|
|
23
|
-
|
|
23
|
+
lib.cmd.load(__dirname, "/node_modules/gina/package.json")
|
|
24
24
|
} catch (err) {
|
|
25
25
|
process.stdout.write(err.stack + '\r\n')
|
|
26
26
|
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/client/json/401.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/client/json/403.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/client/json/404.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/server/html/50x.html
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/server/json/500.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/error/server/json/503.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.165 → v0.1.1-alpha.167}/core/template/extensions/logger/config.json
RENAMED
|
File without changes
|
|
@@ -14,7 +14,7 @@ const {execSync} = require('child_process');
|
|
|
14
14
|
/**
|
|
15
15
|
* ContextHelper
|
|
16
16
|
*
|
|
17
|
-
* @package Gina.
|
|
17
|
+
* @package Gina.Lib.Helpers
|
|
18
18
|
* @author Rhinostone <contact@gina.io>
|
|
19
19
|
* @api public
|
|
20
20
|
* */
|
|
@@ -258,7 +258,7 @@ function ContextHelper(contexts) {
|
|
|
258
258
|
|
|
259
259
|
setContext('envs', projects[projectName].envs);
|
|
260
260
|
setContext('bundles', bundles);
|
|
261
|
-
// setContext('gina.
|
|
261
|
+
// setContext('gina.lib', lib);
|
|
262
262
|
// setContext('gina.Config', Config);
|
|
263
263
|
// setContext('gina.locales', locales);
|
|
264
264
|
// setContext('gina.plugins', plugins);
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
function DateFormatHelper() {
|
|
31
31
|
|
|
32
32
|
var isGFFCtx = ( ( typeof(module) !== 'undefined' ) && module.exports ) ? false : true;
|
|
33
|
-
var merge = (isGFFCtx) ? require('
|
|
33
|
+
var merge = (isGFFCtx) ? require('lib/merge') : require('./../lib/merge');
|
|
34
34
|
|
|
35
35
|
|
|
36
36
|
// if ( typeof(define) === 'function' && define.amd ) {
|
|
@@ -126,7 +126,7 @@ function DateFormatHelper() {
|
|
|
126
126
|
var format = function(date, mask, utc) {
|
|
127
127
|
|
|
128
128
|
// if ( typeof(merge) == 'undefined' || !merge ) {
|
|
129
|
-
// merge = (isGFFCtx) ? require('
|
|
129
|
+
// merge = (isGFFCtx) ? require('lib/merge') : require('./../lib/merge');
|
|
130
130
|
|
|
131
131
|
// }
|
|
132
132
|
|
|
@@ -141,7 +141,7 @@ function DateFormatHelper() {
|
|
|
141
141
|
} catch( mergeErr) {
|
|
142
142
|
// called from logger - redefinition needed for none-dev env: cache issue
|
|
143
143
|
isGFFCtx = ( ( typeof(module) !== 'undefined' ) && module.exports ) ? false : true;
|
|
144
|
-
merge = (isGFFCtx) ? require('
|
|
144
|
+
merge = (isGFFCtx) ? require('lib/merge') : require('./../lib/merge');
|
|
145
145
|
masksList = merge(i18n.masks, dF.masks);
|
|
146
146
|
}
|
|
147
147
|
|
|
@@ -280,8 +280,8 @@ function DateFormatHelper() {
|
|
|
280
280
|
/**
|
|
281
281
|
* Will give an array of dates between the current date to a targeted date
|
|
282
282
|
*
|
|
283
|
-
* TODO - add a closure to `ignoreWeekend()` based on
|
|
284
|
-
* TODO - add a closure to `ignoreFromList(array)` based on
|
|
283
|
+
* TODO - add a closure to `ignoreWeekend()` based on Lib::Validator
|
|
284
|
+
* TODO - add a closure to `ignoreFromList(array)` based on Lib::Validator
|
|
285
285
|
*
|
|
286
286
|
* @param {object} dateTo
|
|
287
287
|
* @param {string} [ mask ]
|
|
@@ -10,10 +10,10 @@ var fs = require('fs');
|
|
|
10
10
|
/**
|
|
11
11
|
* @module Helpers
|
|
12
12
|
*
|
|
13
|
-
* Gina
|
|
13
|
+
* Gina Lib Helpers
|
|
14
14
|
*
|
|
15
|
-
* @package Gina.
|
|
16
|
-
* @namespace Gina.
|
|
15
|
+
* @package Gina.Lib
|
|
16
|
+
* @namespace Gina.Lib.Helpers
|
|
17
17
|
* @author Rhinostone <contact@gina.io>
|
|
18
18
|
*/
|
|
19
19
|
var _require = function(path) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -11,14 +11,14 @@
|
|
|
11
11
|
/**
|
|
12
12
|
* JSONHelper
|
|
13
13
|
*
|
|
14
|
-
* @package Gina.
|
|
14
|
+
* @package Gina.Lib.Helpers
|
|
15
15
|
* @author Rhinostone <contact@gina.io>
|
|
16
16
|
* @api public
|
|
17
17
|
* */
|
|
18
18
|
|
|
19
19
|
module.exports = function(){
|
|
20
20
|
|
|
21
|
-
// `JSON.clone()` is a prototype defined in `GINA_DIR//
|
|
21
|
+
// `JSON.clone()` is a prototype defined in `GINA_DIR//lib/prototypes.json_clone`
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Load a json file and removing comments if found
|
|
@@ -23,7 +23,7 @@ e.setMaxListeners(100);
|
|
|
23
23
|
/**
|
|
24
24
|
* PathHelper
|
|
25
25
|
*
|
|
26
|
-
* @package Gina.
|
|
26
|
+
* @package Gina.Lib.Helpers
|
|
27
27
|
* @author Rhinzostone <contact@gina.io>
|
|
28
28
|
* @api public
|
|
29
29
|
*
|
|
@@ -866,7 +866,7 @@ function PathHelper() {
|
|
|
866
866
|
// if (err) {
|
|
867
867
|
// logger.error(
|
|
868
868
|
// 'gina',
|
|
869
|
-
// '
|
|
869
|
+
// 'LIB:HELPERS:PATH:ERROR:7',
|
|
870
870
|
// err,
|
|
871
871
|
// __stack
|
|
872
872
|
// );
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|