gina 0.1.1-alpha.176 → 0.1.1-alpha.178
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.176 → v0.1.1-alpha.178}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.178/VERSION +1 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +1 -1
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/js/gina.js +1 -1
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +1 -1
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.map +3 -3
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.map +2 -2
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/config.js +2 -1
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/connector.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/connector.v2.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/connector.v4.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/n1ql.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/controller/controller.js +64 -13
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/dev/lib/factory.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/gna.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/model/entity.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/model/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/model/template/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/plugins/lib/validator/src/main.js +1 -1
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/router.js +6 -16
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/server.isaac.js +95 -99
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/server.js +14 -9
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/command/gina.tpl +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/conf/statics.json +1 -1
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/console.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/context.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/dateFormat.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/json/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/json/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/path.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/plugins/src/api-error.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/plugins/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/helpers/text.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/archiver/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/start.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/init.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/link.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/start.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/status.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/tail.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/helper.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/config.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/dist/public_suffix_list.dat +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/exemples/backend.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/exemples/frontend.html +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/domain/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/generator/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/inherits/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/logger/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/math/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/model.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/proc.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/routing/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/validator.js +0 -0
- package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/package.json +0 -0
- package/package.json +2 -2
- package/framework/v0.1.1-alpha.176/VERSION +0 -1
|
@@ -12,8 +12,9 @@ const inherits = lib.inherits;
|
|
|
12
12
|
const merge = lib.merge;
|
|
13
13
|
const console = lib.logger;
|
|
14
14
|
|
|
15
|
-
const env
|
|
16
|
-
, isDev
|
|
15
|
+
const env = process.env.NODE_ENV
|
|
16
|
+
, isDev = (/^true$/i.test(process.env.NODE_ENV_IS_DEV)) ? true : false
|
|
17
|
+
;
|
|
17
18
|
|
|
18
19
|
var refreshCore = function() {
|
|
19
20
|
|
|
@@ -31,12 +32,12 @@ var refreshCore = function() {
|
|
|
31
32
|
}
|
|
32
33
|
}
|
|
33
34
|
|
|
34
|
-
//
|
|
35
|
+
// Update lib & helpers
|
|
35
36
|
delete require.cache[require.resolve(_(libPath +'/index.js', true))];
|
|
36
37
|
require.cache[_(libPath +'/index.js', true)] = require( _(libPath +'/index.js', true) );
|
|
37
38
|
require.cache[_(corePath + '/gna.js', true)].exports.lib = require.cache[_(libPath +'/index.js', true)];
|
|
38
39
|
|
|
39
|
-
//
|
|
40
|
+
// Update plugins
|
|
40
41
|
delete require.cache[require.resolve(_(corePath +'/plugins/index.js', true))];
|
|
41
42
|
require.cache[_(corePath +'/plugins/index.js', true)] = require( _(corePath +'/plugins/index.js', true) );
|
|
42
43
|
require.cache[_(corePath + '/gna.js', true)].exports.plugins = require.cache[_(corePath +'/plugins/index.js', true)];
|
|
@@ -142,90 +143,6 @@ function ServerEngineClass(options) {
|
|
|
142
143
|
// }
|
|
143
144
|
}
|
|
144
145
|
|
|
145
|
-
if ( typeof(options.ioServer) != 'undefined' && typeof(options.ioServer.integrationMode) != 'undefined' && /^attach$/.test(options.ioServer.integrationMode) ) {
|
|
146
|
-
console.info('[IO SERVER ] `eio` found using `'+ options.ioServer.integrationMode +'` integration mode');
|
|
147
|
-
delete options.ioServer.integrationMode;
|
|
148
|
-
// test done in case we would like to switch to socket.io-server
|
|
149
|
-
ioServer = ( typeof(Eio.attach) != 'undefined' ) ? new Eio.attach(server, options.ioServer) : new Eio(server, options.ioServer);
|
|
150
|
-
|
|
151
|
-
ioServer.getClientsBySessionId = function(sessionId) {
|
|
152
|
-
|
|
153
|
-
if (this.clients.count() == 0)
|
|
154
|
-
return null;
|
|
155
|
-
|
|
156
|
-
var clients = null;
|
|
157
|
-
|
|
158
|
-
for (var id in this.clients) {
|
|
159
|
-
|
|
160
|
-
if ( typeof(this.clients[id].sessionId) == 'undefined' )
|
|
161
|
-
continue;
|
|
162
|
-
|
|
163
|
-
if (!clients) clients = {};
|
|
164
|
-
|
|
165
|
-
clients[id] = this.clients[id];
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
if (clients) {
|
|
169
|
-
// allowing to send for each client found sharing the same request session
|
|
170
|
-
clients.send = function(payload, option, callback) {
|
|
171
|
-
for ( var id in this) {
|
|
172
|
-
if ( typeof(this[id].sessionId) == 'undefined')
|
|
173
|
-
continue;
|
|
174
|
-
|
|
175
|
-
this[id].send(payload, option, callback)
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
return clients;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
server.eio = ioServer;
|
|
185
|
-
|
|
186
|
-
ioServer.on('connection', function (socket) {
|
|
187
|
-
|
|
188
|
-
socket.send(JSON.stringify({
|
|
189
|
-
id: this.id,//socket.id,
|
|
190
|
-
handshake: 'Welcomed to `'+ options.bundle +'` main socket !',
|
|
191
|
-
// how many ms before sending a new ping packet
|
|
192
|
-
pingTimeout: options.ioServer.pingTimeout || options.ioServer.timeout,
|
|
193
|
-
// how many ms without a pong packet to consider the connection closed
|
|
194
|
-
pingInterval: options.ioServer.pingInterval || options.ioServer.interval
|
|
195
|
-
}));
|
|
196
|
-
|
|
197
|
-
socket.on('message', function(payload){
|
|
198
|
-
|
|
199
|
-
try {
|
|
200
|
-
console.debug('[IO SERVER ] receiving '+ payload);
|
|
201
|
-
payload = JSON.parse(payload);
|
|
202
|
-
// bind to session ID
|
|
203
|
-
if ( typeof(payload.session) != 'undefined' ) {
|
|
204
|
-
this.sessionId = payload.session.id;
|
|
205
|
-
}
|
|
206
|
-
} catch(err) {
|
|
207
|
-
console.error(err.stack||err.message|| err)
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
socket.on('close', function(){
|
|
213
|
-
console.debug('[IO SERVER ] closed socket #'+ this.id);
|
|
214
|
-
});
|
|
215
|
-
});
|
|
216
|
-
|
|
217
|
-
server.on('upgrade', function(req, socket, head){
|
|
218
|
-
console.debug('[IO SERVER ] upgrading socket #'+ this.id);
|
|
219
|
-
ioServer.handleUpgrade(req, socket, head);
|
|
220
|
-
});
|
|
221
|
-
// httpServer.on('request', function(req, res){
|
|
222
|
-
// ioServer.handleRequest(req, res);
|
|
223
|
-
// });
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
}
|
|
227
|
-
|
|
228
|
-
|
|
229
146
|
|
|
230
147
|
const onPath = function(path, cb, allowAll) {
|
|
231
148
|
|
|
@@ -300,7 +217,7 @@ function ServerEngineClass(options) {
|
|
|
300
217
|
a[0] = decodeURIComponent(a[0])
|
|
301
218
|
}
|
|
302
219
|
|
|
303
|
-
request.query = JSON.parse(a[0]);
|
|
220
|
+
request.query = a[0] ? JSON.parse(a[0]) : {};
|
|
304
221
|
} catch(err) {
|
|
305
222
|
console.error(err.stack)
|
|
306
223
|
}
|
|
@@ -369,20 +286,99 @@ function ServerEngineClass(options) {
|
|
|
369
286
|
}
|
|
370
287
|
|
|
371
288
|
|
|
372
|
-
|
|
373
|
-
|
|
374
289
|
server.on('error', (err) => {
|
|
375
290
|
console.error(err)
|
|
376
291
|
});
|
|
377
292
|
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
//
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
293
|
+
|
|
294
|
+
//------------------------------------
|
|
295
|
+
// Engine IO server
|
|
296
|
+
//------------------------------------
|
|
297
|
+
if (
|
|
298
|
+
typeof(options.ioServer) != 'undefined'
|
|
299
|
+
&& typeof(options.ioServer.integrationMode) != 'undefined'
|
|
300
|
+
&& /^attach$/.test(options.ioServer.integrationMode)
|
|
301
|
+
) {
|
|
302
|
+
console.info('[IO SERVER ] `eio` found using `'+ options.ioServer.integrationMode +'` integration mode');
|
|
303
|
+
delete options.ioServer.integrationMode;
|
|
304
|
+
// test done in case we would like to switch to socket.io-server
|
|
305
|
+
ioServer = ( typeof(Eio.attach) != 'undefined' ) ? new Eio.attach(server, options.ioServer) : new Eio(server, options.ioServer);
|
|
306
|
+
|
|
307
|
+
ioServer.getClientsBySessionId = function(sessionId) {
|
|
308
|
+
|
|
309
|
+
if (this.clients.count() == 0)
|
|
310
|
+
return null;
|
|
311
|
+
|
|
312
|
+
var clients = null;
|
|
313
|
+
|
|
314
|
+
for (var id in this.clients) {
|
|
315
|
+
|
|
316
|
+
if ( typeof(this.clients[id].sessionId) == 'undefined' )
|
|
317
|
+
continue;
|
|
318
|
+
|
|
319
|
+
if (!clients) clients = {};
|
|
320
|
+
|
|
321
|
+
clients[id] = this.clients[id];
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
if (clients) {
|
|
325
|
+
// allowing to send for each client found sharing the same request session
|
|
326
|
+
clients.send = function(payload, option, callback) {
|
|
327
|
+
for ( var id in this) {
|
|
328
|
+
if ( typeof(this[id].sessionId) == 'undefined')
|
|
329
|
+
continue;
|
|
330
|
+
|
|
331
|
+
this[id].send(payload, option, callback)
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
return clients;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
server.eio = ioServer;
|
|
341
|
+
|
|
342
|
+
ioServer.on('connection', function (socket) {
|
|
343
|
+
|
|
344
|
+
socket.send(JSON.stringify({
|
|
345
|
+
id: this.id,//socket.id,
|
|
346
|
+
handshake: 'Welcomed to `'+ options.bundle +'` main socket !',
|
|
347
|
+
// how many ms before sending a new ping packet
|
|
348
|
+
pingTimeout: options.ioServer.pingTimeout || options.ioServer.timeout,
|
|
349
|
+
// how many ms without a pong packet to consider the connection closed
|
|
350
|
+
pingInterval: options.ioServer.pingInterval || options.ioServer.interval
|
|
351
|
+
}));
|
|
352
|
+
|
|
353
|
+
socket.on('message', function(payload){
|
|
354
|
+
|
|
355
|
+
try {
|
|
356
|
+
console.debug('[IO SERVER ] receiving '+ payload);
|
|
357
|
+
payload = JSON.parse(payload);
|
|
358
|
+
// bind to session ID
|
|
359
|
+
if ( typeof(payload.session) != 'undefined' ) {
|
|
360
|
+
this.sessionId = payload.session.id;
|
|
361
|
+
}
|
|
362
|
+
} catch(err) {
|
|
363
|
+
console.error(err.stack||err.message|| err)
|
|
364
|
+
}
|
|
365
|
+
});
|
|
366
|
+
|
|
367
|
+
socket.on('close', function(){
|
|
368
|
+
console.debug('[IO SERVER ] closed socket #'+ this.id);
|
|
369
|
+
});
|
|
370
|
+
});
|
|
371
|
+
|
|
372
|
+
server.on('upgrade', function(req, socket, head){
|
|
373
|
+
console.debug('[IO SERVER ] upgrading socket #'+ this.id);
|
|
374
|
+
ioServer.handleUpgrade(req, socket, head);
|
|
375
|
+
});
|
|
376
|
+
// httpServer.on('request', function(req, res){
|
|
377
|
+
// ioServer.handleRequest(req, res);
|
|
378
|
+
// });
|
|
379
|
+
|
|
380
|
+
|
|
381
|
+
}
|
|
386
382
|
|
|
387
383
|
|
|
388
384
|
|
|
@@ -1267,7 +1267,11 @@ function Server(options) {
|
|
|
1267
1267
|
var url = (isWebroot) ? this._referrer : headers[':path'];
|
|
1268
1268
|
|
|
1269
1269
|
var hanlersPath = conf.handlersPath
|
|
1270
|
-
, isHandler = (
|
|
1270
|
+
, isHandler = (
|
|
1271
|
+
typeof(assets[ url ]) != 'undefined'
|
|
1272
|
+
&& typeof(assets[ url ].filename) != 'undefined'
|
|
1273
|
+
&& new RegExp('^'+ hanlersPath).test(assets[ url ].filename)
|
|
1274
|
+
) ? true: false
|
|
1271
1275
|
;
|
|
1272
1276
|
|
|
1273
1277
|
if (!stream.pushAllowed) {
|
|
@@ -1445,8 +1449,9 @@ function Server(options) {
|
|
|
1445
1449
|
header = merge(header, responseHeaders);
|
|
1446
1450
|
}
|
|
1447
1451
|
header = completeHeaders(header, local.request, response);
|
|
1452
|
+
var pushedFile = (/index.html$/.test(headers[':path']) && /\/$/.test(asset.filename) ) ? asset.filename +'index.html': asset.filename;
|
|
1448
1453
|
pushStream.respondWithFile(
|
|
1449
|
-
|
|
1454
|
+
pushedFile
|
|
1450
1455
|
, header
|
|
1451
1456
|
//, { onError }
|
|
1452
1457
|
);
|
|
@@ -1619,7 +1624,7 @@ function Server(options) {
|
|
|
1619
1624
|
isHandler = false;
|
|
1620
1625
|
|
|
1621
1626
|
try {
|
|
1622
|
-
contentType =
|
|
1627
|
+
contentType = getContentTypeByFilename(filename);
|
|
1623
1628
|
|
|
1624
1629
|
// adding gina loader
|
|
1625
1630
|
if ( /text\/html/i.test(contentType) && self.isCacheless() ) {
|
|
@@ -1728,7 +1733,7 @@ function Server(options) {
|
|
|
1728
1733
|
}
|
|
1729
1734
|
}
|
|
1730
1735
|
|
|
1731
|
-
contentType =
|
|
1736
|
+
contentType = getContentTypeByFilename(filename);
|
|
1732
1737
|
contentType = contentType +'; charset='+ bundleConf.encoding;
|
|
1733
1738
|
ext = request.url.match(/\.([A-Za-z0-9]+)$/);
|
|
1734
1739
|
request.url = ( ext != null && typeof(ext[0]) != 'undefined' ) ? request.url : request.url + 'index.html';
|
|
@@ -2590,21 +2595,21 @@ function Server(options) {
|
|
|
2590
2595
|
})
|
|
2591
2596
|
}
|
|
2592
2597
|
|
|
2593
|
-
var
|
|
2598
|
+
var getContentTypeByFilename = function(filename) {
|
|
2594
2599
|
try {
|
|
2595
|
-
var s =
|
|
2600
|
+
var s = filename.split(/\./);
|
|
2596
2601
|
var ext = s[s.length-1];
|
|
2597
2602
|
var type = null;
|
|
2598
2603
|
var mime = self.conf[self.appName][self.env].server.coreConfiguration.mime;
|
|
2599
2604
|
|
|
2600
|
-
if( typeof(mime[ext]) != 'undefined' ) {
|
|
2605
|
+
if ( typeof(mime[ext]) != 'undefined' ) {
|
|
2601
2606
|
type = mime[ext];
|
|
2602
2607
|
} else {
|
|
2603
|
-
console.warn('[ '+
|
|
2608
|
+
console.warn('[ '+filename+' ] extension: `'+s[2]+'` not supported by gina: `core/mime.types`. Pathname must be a directory. Replacing with `plain/text` ')
|
|
2604
2609
|
}
|
|
2605
2610
|
return type || 'plain/text'
|
|
2606
2611
|
} catch (err) {
|
|
2607
|
-
console.error('Error while trying to
|
|
2612
|
+
console.error('Error while trying to getContentTypeByFilename('+ filename +') extention. Replacing with `plain/text` '+ err.stack);
|
|
2608
2613
|
return 'plain/text'
|
|
2609
2614
|
}
|
|
2610
2615
|
|
|
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
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/boilerplate/bundle/index.js
RENAMED
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"html": "{templatesPath}/html", // used for templating
|
|
5
5
|
"sass": "{templatesPath}/sass", // used for templating
|
|
6
6
|
"handlers": "{handlersPath}", // used for templating
|
|
7
|
-
|
|
7
|
+
// TODO - what if the user add "js/vendor" ? Do we override of merge ?
|
|
8
8
|
"css/vendor/gina": "{gina}/framework/v{version}/core/asset/plugin/dist/vendor/gina/css",
|
|
9
9
|
"js/vendor/gina": "{gina}/framework/v{version}/core/asset/plugin/dist/vendor/gina/js",
|
|
10
10
|
// for plain html or public access
|
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/client/json/401.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/client/json/403.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/client/json/404.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/server/html/50x.html
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/server/json/500.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/error/server/json/503.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/core/template/extensions/logger/config.json
RENAMED
|
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
|
|
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
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.176 → v0.1.1-alpha.178}/lib/cmd/framework/link-node-modules.js
RENAMED
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|