gina 0.1.1-alpha.146 → 0.1.1-alpha.147
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/README.md +11 -0
- package/bin/cli +4 -1
- package/bin/gina +1 -1
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/AUTHORS +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/LICENSE +0 -0
- package/framework/v0.1.1-alpha.147/VERSION +1 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/html/nolayout.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/html/static.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/img/android-chrome-192x192.png +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/img/android-chrome-512x512.png +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/img/apple-touch-icon.png +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/img/favicon-16x16.png +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/img/favicon-32x32.png +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/img/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/gina.js +109 -106
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/gina.js.map +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/gina.min.css +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/gina.min.css.map +0 -0
- package/framework/v0.1.1-alpha.147/core/asset/plugin/dist/gina.min.js +739 -0
- package/framework/v0.1.1-alpha.147/core/asset/plugin/dist/gina.min.js.map +8 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/gina.onload.min.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/gina.onload.min.js.map +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/toolbar/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/readme.md +1 -1
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/asset/plugin/uuid.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/config.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/index.js +310 -215
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/connector.js +6 -4
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/connector.v2.js +47 -47
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/connector.v3.js +0 -0
- package/framework/v0.1.1-alpha.147/core/connectors/couchbase/lib/connector.v4.js +377 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/n1ql.js +3 -2
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/session-store.js +6 -5
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
- package/framework/v0.1.1-alpha.147/core/connectors/couchbase/lib/session-store.v4.js +362 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/controller/controller.framework.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/controller/controller.js +13 -5
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/controller/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/.travis.yml +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/deps/encoding/encoding.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/lib/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/lib/types/multipart.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/lib/types/urlencoded.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/lib/utils.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/busboy/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/dev/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/dev/lib/class.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/dev/lib/factory.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/dev/lib/tools.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/gna.js +2 -3
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/currency.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/dist/language/en.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/dist/language/fr.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/dist/region/en.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/dist/region/fr.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/src/make.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/src/resources/currency.csv +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/src/resources/region.csv +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/locales/src/resources/region.mapping.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/mime.types +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/model/entity.js +80 -60
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/model/index.js +4 -4
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/model/template/entityFactory.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/model/template/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/file/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/file/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/file/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/intl/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/intl/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/intl/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/intl/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/storage/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/storage/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/storage/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/storage/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/src/form-validator.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/router.js +91 -78
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/server.express.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/server.isaac.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/server.js +1 -1
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/status.codes +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/config/app.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/config/routing.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/config/settings.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/config/templates.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_public/css/default.css +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_public/readme.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/command/gina.bat.tpl +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/command/gina.tpl +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/conf/env.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/conf/manifest.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/conf/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/conf/settings.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/conf/statics.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/conf/templates.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/error/client/json/401.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/error/client/json/403.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/error/client/json/404.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/error/server/html/50x.html +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/error/server/json/500.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/error/server/json/503.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/template/extensions/logger/config.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/console.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/context.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/dateFormat.js +3 -1
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/json/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/json/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/json/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/path.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/plugins/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/plugins/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/plugins/src/api-error.js +23 -23
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/plugins/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/prototypes.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/task.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/helpers/text.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/archiver/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/archiver/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/archiver/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/archiver/src/dep/jszip.min.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/archiver/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/aliases.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/add.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/copy.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/cp.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/help.txt +2 -2
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/list.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/remove.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/rename.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/restart.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/rm.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/start.js +10 -6
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/status.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/bundle/stop.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/add.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/get.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/help.txt +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/link-dev.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/list.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/remove.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/rm.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/set.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/unset.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/env/use.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/build.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/dot.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/get.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/help.txt +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/init.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/link-node-modules.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/link.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/msg.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/open.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/restart.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/set.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/start.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/status.js +15 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/stop.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/tail.js +8 -1
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/update.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/framework/version.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/gina-dev.1.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/gina-framework.1.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/gina.1.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/helper.js +14 -14
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/msg.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/port/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/port/help.txt +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/port/inc/scan.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/port/list.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/port/reset.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/port/set.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/add.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/arguments.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/build.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/help.txt +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/import.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/list.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/move.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/remove.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/rename.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/restart.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/rm.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/start.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/status.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/project/stop.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/protocol/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/protocol/help.txt +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/protocol/list.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/protocol/set.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/help.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/help.txt +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/link-local.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/list.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/remove.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/rm.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/set.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/unset.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/scope/use.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cmd/view/add.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/collection/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/collection/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/collection/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/collection/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/config.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cron/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cron/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/cron/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/generator/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/LICENSE +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/example/inheriting_eventemitter.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/example/protected_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/example/simple_inheritance.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/inherits/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/default/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/file/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/mq/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/mq/listener.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/containers/mq/speaker.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/helper.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/logger/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/math/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/merge/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/merge/example/merge.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/merge/example/merge_2_literal objects.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/merge/example/merge_and_preserve_first.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/merge/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/merge/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/model.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/proc.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/routing/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/routing/build.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/routing/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/routing/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/session-store.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/shell.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/swig-filters/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/swig-filters/package.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/swig-filters/src/main.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/url/README.md +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/url/index.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/url/mocks.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/url/routing.json +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/url/test.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/lib/validator.js +0 -0
- package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/package.json +0 -0
- package/package.json +2 -2
- package/framework/v0.1.1-alpha.146/VERSION +0 -1
- package/framework/v0.1.1-alpha.146/core/asset/plugin/dist/gina.min.js +0 -736
- package/framework/v0.1.1-alpha.146/core/asset/plugin/dist/gina.min.js.map +0 -56
|
@@ -42,7 +42,7 @@ function EntitySuper(conn, caller) {
|
|
|
42
42
|
if (!EntitySuper[self.name]) {
|
|
43
43
|
EntitySuper[self.name] = {}
|
|
44
44
|
}
|
|
45
|
-
|
|
45
|
+
|
|
46
46
|
if ( !EntitySuper[self.name]._conn ) {
|
|
47
47
|
EntitySuper[self.name]._conn = conn;
|
|
48
48
|
}
|
|
@@ -53,7 +53,7 @@ function EntitySuper(conn, caller) {
|
|
|
53
53
|
return EntitySuper[self.name].instance
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* Set all main listenners at once
|
|
@@ -102,7 +102,7 @@ function EntitySuper(conn, caller) {
|
|
|
102
102
|
typeof(entity[methods[m]]) == 'function'
|
|
103
103
|
&& m != 'onComplete'
|
|
104
104
|
) {
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
if ( triggers.indexOf(shortName + '#' + methods[m]) < 0 ) {
|
|
107
107
|
events[i] = {
|
|
108
108
|
index: i,
|
|
@@ -111,13 +111,11 @@ function EntitySuper(conn, caller) {
|
|
|
111
111
|
entityName: entityName
|
|
112
112
|
};
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
triggers.push(shortName + '#' + methods[m]);
|
|
116
|
-
|
|
116
|
+
|
|
117
117
|
++i;
|
|
118
118
|
}
|
|
119
|
-
|
|
120
|
-
|
|
121
119
|
}
|
|
122
120
|
}
|
|
123
121
|
|
|
@@ -157,49 +155,49 @@ function EntitySuper(conn, caller) {
|
|
|
157
155
|
return function () {
|
|
158
156
|
|
|
159
157
|
// retrieving local arguments, & binding it to the event callback
|
|
160
|
-
|
|
158
|
+
|
|
161
159
|
/**
|
|
162
160
|
* handle promises with async/await
|
|
163
|
-
*
|
|
161
|
+
*
|
|
164
162
|
* NB.: Always use the prefix `db` inside an entity file
|
|
165
163
|
* instead of using `this.getRelation(entityName)`
|
|
166
|
-
*
|
|
167
|
-
* e.g.:
|
|
164
|
+
*
|
|
165
|
+
* e.g.:
|
|
168
166
|
* var recordJob = promisify(db.jobEntity.insert);
|
|
169
167
|
* await recordJob(jobObj)
|
|
170
|
-
* .then( function onJob(_jobObj) {
|
|
168
|
+
* .then( function onJob(_jobObj) {
|
|
171
169
|
* jobObj = _jobObj;
|
|
172
170
|
* })
|
|
173
171
|
* .catch( function onJobErr(_err) {
|
|
174
172
|
* jobErr = _err;
|
|
175
173
|
* });
|
|
176
|
-
*
|
|
174
|
+
*
|
|
177
175
|
*/
|
|
178
176
|
if ( typeof(this[m]) == 'undefined' && typeof(arguments[arguments.length-1]) == 'function' ) {
|
|
179
|
-
|
|
177
|
+
|
|
180
178
|
var promise = function() {
|
|
181
179
|
var cb = arguments[arguments.length-1];
|
|
182
|
-
|
|
180
|
+
|
|
183
181
|
if (entity._triggers.indexOf(events[i].shortName) > -1) {
|
|
184
|
-
console.debug('[ MODEL ][ ENTITY ] Setting listener for: [ ' + self.model + '/' + events[i].entityName + '::' + events[i].shortName + ' ]');
|
|
185
|
-
|
|
182
|
+
console.debug('[ MODEL ][ ENTITY ] Setting promise listener for: [ ' + self.model + '/' + events[i].entityName + '::' + events[i].shortName + ' ]');
|
|
183
|
+
|
|
186
184
|
if (typeof(entity._arguments) == 'undefined' || typeof(entity._arguments) != 'undefined' && typeof(entity._arguments[events[i].shortName]) == 'undefined') {
|
|
187
|
-
|
|
185
|
+
|
|
188
186
|
if (entity.listenerCount(events[i].shortName) > 0) {
|
|
189
187
|
entity.removeAllListeners([events[i].shortName])
|
|
190
188
|
}
|
|
191
|
-
|
|
189
|
+
|
|
192
190
|
entity.once(events[i].shortName, function () { // cannot be `entity.on` for prod/stage
|
|
193
|
-
// check if not already fired
|
|
191
|
+
// check if not already fired
|
|
194
192
|
if (entity._callbacks[events[i].shortName]) {
|
|
195
|
-
|
|
193
|
+
|
|
196
194
|
entity.removeAllListeners([events[i].shortName]);
|
|
197
|
-
console.log('\nFIRING #1 - promise ' + events[i].shortName +'('+ events[i].index +')');
|
|
195
|
+
console.log('\nFIRING #1 - promise ' + events[i].shortName +'('+ events[i].index +')');
|
|
198
196
|
cb.apply(this, arguments);
|
|
199
|
-
}
|
|
197
|
+
}
|
|
200
198
|
});
|
|
201
|
-
|
|
202
|
-
|
|
199
|
+
|
|
200
|
+
|
|
203
201
|
// backing up callback
|
|
204
202
|
entity._callbacks[events[i].shortName] = cb;
|
|
205
203
|
} else { // in case the event is not ready yet
|
|
@@ -208,38 +206,38 @@ function EntitySuper(conn, caller) {
|
|
|
208
206
|
}
|
|
209
207
|
}
|
|
210
208
|
}
|
|
211
|
-
|
|
212
|
-
promise.apply(null, arguments);
|
|
213
|
-
cached.apply(promise, arguments);
|
|
214
|
-
return promise;
|
|
209
|
+
|
|
210
|
+
promise.apply(null, arguments);
|
|
211
|
+
cached.apply(promise, arguments);
|
|
212
|
+
return promise;
|
|
215
213
|
} //else is normal case
|
|
216
|
-
|
|
217
|
-
cached.apply(this[m], arguments);
|
|
218
|
-
|
|
214
|
+
|
|
215
|
+
cached.apply(this[m], arguments);
|
|
216
|
+
|
|
219
217
|
this[m].onComplete = function (cb) {
|
|
220
218
|
|
|
221
|
-
//Setting local listener : normal case
|
|
219
|
+
//Setting local listener : normal case
|
|
222
220
|
if (entity._triggers.indexOf(events[i].shortName) > -1) {
|
|
223
221
|
console.debug('[ MODEL ][ ENTITY ] Setting listener for: [ ' + self.model + '/' + events[i].entityName + '::' + events[i].shortName + ' ]');
|
|
224
|
-
|
|
222
|
+
|
|
225
223
|
if (typeof(entity._arguments) == 'undefined' || typeof(entity._arguments) != 'undefined' && typeof(entity._arguments[events[i].shortName]) == 'undefined') {
|
|
226
|
-
|
|
224
|
+
|
|
227
225
|
if (entity.listenerCount(events[i].shortName) > 0) {
|
|
228
226
|
entity.removeAllListeners([events[i].shortName])
|
|
229
227
|
}
|
|
230
|
-
|
|
228
|
+
|
|
231
229
|
entity.once(events[i].shortName, function () { // cannot be `entity.on` for prod/stage
|
|
232
|
-
// check if not already fired
|
|
230
|
+
// check if not already fired
|
|
233
231
|
if (entity._callbacks[events[i].shortName]) {
|
|
234
|
-
|
|
232
|
+
|
|
235
233
|
entity.removeAllListeners([events[i].shortName]);
|
|
236
234
|
console.log('\nFIRING #1 ' + events[i].shortName +'('+ events[i].index +')');
|
|
237
235
|
cb.apply(this[m], arguments);
|
|
238
236
|
//cb.apply(this, arguments);
|
|
239
237
|
}
|
|
240
|
-
|
|
238
|
+
|
|
241
239
|
});
|
|
242
|
-
|
|
240
|
+
|
|
243
241
|
|
|
244
242
|
// backing up callback
|
|
245
243
|
entity._callbacks[events[i].shortName] = cb;
|
|
@@ -249,8 +247,8 @@ function EntitySuper(conn, caller) {
|
|
|
249
247
|
}
|
|
250
248
|
}
|
|
251
249
|
}
|
|
252
|
-
|
|
253
|
-
|
|
250
|
+
|
|
251
|
+
|
|
254
252
|
|
|
255
253
|
return this[m] // chaining event & method
|
|
256
254
|
};
|
|
@@ -303,7 +301,7 @@ function EntitySuper(conn, caller) {
|
|
|
303
301
|
|
|
304
302
|
var args = Array.prototype.slice.call(arguments);
|
|
305
303
|
var trigger = args.splice(0, 1)[0];
|
|
306
|
-
|
|
304
|
+
|
|
307
305
|
if ( !/\#/.test(trigger) ) {
|
|
308
306
|
throw new Error('trigger name not properly set: use `#` between the entity name and the method reference');
|
|
309
307
|
process.exit(1)
|
|
@@ -336,7 +334,7 @@ function EntitySuper(conn, caller) {
|
|
|
336
334
|
.on(events[i].shortName, function () {
|
|
337
335
|
console.log('\nFIRING #3 ' + trigger);
|
|
338
336
|
this._callbacks[trigger.replace(/[0-9]/g, '')].apply(this[method], arguments);
|
|
339
|
-
delete self._callbacks[trigger];
|
|
337
|
+
delete self._callbacks[trigger];
|
|
340
338
|
})
|
|
341
339
|
}
|
|
342
340
|
|
|
@@ -351,7 +349,7 @@ function EntitySuper(conn, caller) {
|
|
|
351
349
|
// if (!this._arguments) {
|
|
352
350
|
// this._arguments = {}
|
|
353
351
|
// }
|
|
354
|
-
|
|
352
|
+
|
|
355
353
|
// if ( typeof(this._arguments[trigger]) != 'undefined' ) {
|
|
356
354
|
// delete this._arguments[trigger];
|
|
357
355
|
// }
|
|
@@ -360,14 +358,14 @@ function EntitySuper(conn, caller) {
|
|
|
360
358
|
if (!this._arguments) {
|
|
361
359
|
this._arguments = {}
|
|
362
360
|
}
|
|
363
|
-
|
|
361
|
+
|
|
364
362
|
// retrieving local arguments, & binding it to the event callback
|
|
365
363
|
if ( typeof(this._arguments[trigger]) == 'undefined' ) {
|
|
366
364
|
console.log('\nFIRING #5 ' + trigger);
|
|
367
|
-
|
|
365
|
+
|
|
368
366
|
this._arguments[trigger] = arguments;
|
|
369
367
|
}
|
|
370
|
-
|
|
368
|
+
|
|
371
369
|
})
|
|
372
370
|
}
|
|
373
371
|
}
|
|
@@ -516,9 +514,31 @@ function EntitySuper(conn, caller) {
|
|
|
516
514
|
/**
|
|
517
515
|
* Get connection from entity
|
|
518
516
|
* */
|
|
519
|
-
this.getConnection = function() {
|
|
520
|
-
var conn = local.conn || self._conn;
|
|
521
|
-
|
|
517
|
+
this.getConnection = function(scope, collection) {
|
|
518
|
+
var conn = local.conn || self._conn || null;
|
|
519
|
+
|
|
520
|
+
if ( typeof(conn) == 'undefined' || !conn) {
|
|
521
|
+
return null;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
if ( typeof(scope) == 'undefined' ) {
|
|
525
|
+
scope = '_default';
|
|
526
|
+
}
|
|
527
|
+
var currentCollection = '_default';
|
|
528
|
+
if ( typeof(collection) != 'undefined' ) {
|
|
529
|
+
currentCollection = collection;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
|
|
533
|
+
// retrieve & return the collection
|
|
534
|
+
if ( typeof(conn.scope) != 'undefined' && typeof(conn._scope) == 'undefined' && typeof(conn.scope) != 'undefined' ) {
|
|
535
|
+
var newConn = conn.scope(scope).collection(currentCollection);
|
|
536
|
+
newConn.sdk = conn.sdk;
|
|
537
|
+
return newConn;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
// return the cached collection
|
|
541
|
+
return conn;
|
|
522
542
|
}
|
|
523
543
|
|
|
524
544
|
this.getEntity = function(entity) {
|
|
@@ -526,7 +546,7 @@ function EntitySuper(conn, caller) {
|
|
|
526
546
|
var ntt = entity;
|
|
527
547
|
entity = entity.substr(0,1).toUpperCase() + entity.substr(1);
|
|
528
548
|
var nttName = entity;
|
|
529
|
-
|
|
549
|
+
|
|
530
550
|
if ( !/Entity$/.test(entity) ) {
|
|
531
551
|
entity = entity + 'Entity'
|
|
532
552
|
}
|
|
@@ -551,20 +571,20 @@ function EntitySuper(conn, caller) {
|
|
|
551
571
|
if ( typeof(modelUtil.entities[self.bundle][self.model][entity]) != 'function' ) {
|
|
552
572
|
throw new Error('Model entity not found: `'+ entity + '` while trying to call '+ callerName +'Entity.getEntity('+ entity +')');
|
|
553
573
|
}
|
|
554
|
-
|
|
574
|
+
|
|
555
575
|
// fixed on May 2019, 21st : need for `this.getEntity(...)` inside the model
|
|
556
576
|
if ( typeof(EntitySuper[callerName].instance._relations[entityName]) == 'undefined' ) {
|
|
557
|
-
|
|
577
|
+
|
|
558
578
|
if ( typeof(EntitySuper[entityName]) != 'undefined' && typeof(EntitySuper[entityName].instance) != 'undefined' ) {
|
|
559
|
-
|
|
579
|
+
|
|
560
580
|
EntitySuper[callerName].instance._relations[entityName] = new modelUtil.entities[self.bundle][self.model][entity](self.getConnection(), callerName)
|
|
561
581
|
} else { // regular case
|
|
562
|
-
new modelUtil.entities[self.bundle][self.model][entity](self.getConnection(), callerName);
|
|
563
|
-
}
|
|
582
|
+
new modelUtil.entities[self.bundle][self.model][entity](self.getConnection(), callerName);
|
|
583
|
+
}
|
|
564
584
|
}
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
return EntitySuper[callerName].instance._relations[entityName]
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
return EntitySuper[callerName].instance._relations[entityName]
|
|
568
588
|
}
|
|
569
589
|
}
|
|
570
590
|
|
|
@@ -157,7 +157,7 @@ function Model(namespace, _config) {
|
|
|
157
157
|
self.emit('model#ready', new Error('[ MODEL ][ '+ model +' ] No connector found'), self.bundle, self.name, conn)
|
|
158
158
|
}
|
|
159
159
|
|
|
160
|
-
}
|
|
160
|
+
} else {
|
|
161
161
|
console.warn('[ MODEL ][ ' + model +' ] no configuration found...');
|
|
162
162
|
self.emit('model#ready', new Error('[ MODEL ][ ' + model +' ] no configuration found for your model: ' + model), self.bundle, self.name, null)
|
|
163
163
|
}
|
|
@@ -175,7 +175,7 @@ function Model(namespace, _config) {
|
|
|
175
175
|
connector.onReady( function(err, conn){
|
|
176
176
|
self.connectors[_connector].err = err;
|
|
177
177
|
self.connectors[_connector].conn = conn;
|
|
178
|
-
|
|
178
|
+
|
|
179
179
|
callback(err, conn);
|
|
180
180
|
});
|
|
181
181
|
|
|
@@ -215,9 +215,9 @@ function Model(namespace, _config) {
|
|
|
215
215
|
env = configuration.Env.current;
|
|
216
216
|
conf = configuration.Env.getConf(bundle, env);
|
|
217
217
|
}
|
|
218
|
-
console.debug('[ MODEL ][ ' + _connector + ' ] env ', conf.env);
|
|
218
|
+
console.debug('[ MODEL ][ ' + _connector + ' ] env ', conf.env);
|
|
219
219
|
console.debug('[ MODEL ][ ' + _connector + ' ] configuration modelsPath ', conf.modelsPath);
|
|
220
|
-
console.debug('[ MODEL ][ ' + _connector + ' ] connectors ', connectors);
|
|
220
|
+
console.debug('[ MODEL ][ ' + _connector + ' ] connectors ', connectors);
|
|
221
221
|
|
|
222
222
|
// try {
|
|
223
223
|
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/model/template/entityFactory.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
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/storage/package.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/storage/src/main.js
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/README.md
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/build.json
RENAMED
|
File without changes
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/package.json
RENAMED
|
File without changes
|
|
File without changes
|
package/framework/{v0.1.1-alpha.146 → v0.1.1-alpha.147}/core/plugins/lib/validator/src/main.js
RENAMED
|
File without changes
|