gina 0.1.1-alpha.162 → 0.1.1-alpha.164

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.
Files changed (328) hide show
  1. package/README.md +1 -1
  2. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/AUTHORS +0 -0
  3. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/LICENSE +0 -0
  4. package/framework/v0.1.1-alpha.164/VERSION +1 -0
  5. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/html/nolayout.html +0 -0
  6. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/html/static.html +0 -0
  7. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/img/android-chrome-192x192.png +0 -0
  8. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/img/android-chrome-512x512.png +0 -0
  9. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/img/apple-touch-icon.png +0 -0
  10. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/img/favicon-16x16.png +0 -0
  11. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/img/favicon-32x32.png +0 -0
  12. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/img/favicon.ico +0 -0
  13. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/gina.js +640 -150
  14. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/gina.min.css +0 -0
  15. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/gina.min.css.map +0 -0
  16. package/framework/v0.1.1-alpha.164/core/asset/plugin/dist/gina.min.js +752 -0
  17. package/framework/v0.1.1-alpha.164/core/asset/plugin/dist/gina.min.js.map +8 -0
  18. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/gina.onload.min.js +0 -0
  19. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/gina.onload.min.js.map +0 -0
  20. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/toolbar/css/toolbar-min.css +0 -0
  21. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/toolbar/css/toolbar.css +0 -0
  22. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/toolbar/css/toolbar.css.map +0 -0
  23. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/toolbar/js/jquery-3.1.0.min.js +0 -0
  24. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/toolbar/main.js +0 -0
  25. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/dist/toolbar/toolbar.html +0 -0
  26. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/readme.md +0 -0
  27. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/asset/plugin/uuid.json +0 -0
  28. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/config.js +58 -19
  29. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/index.js +1 -1
  30. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/connector.js +0 -0
  31. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/connector.v2.js +0 -0
  32. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  33. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  34. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/n1ql.js +0 -0
  35. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/session-store.js +0 -0
  36. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
  37. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  38. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  39. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/controller/controller.framework.js +0 -0
  40. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/controller/controller.js +29 -18
  41. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/controller/index.js +0 -0
  42. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/.travis.yml +0 -0
  43. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/LICENSE +0 -0
  44. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/README.md +0 -0
  45. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -0
  46. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/deps/encoding/encoding.js +0 -0
  47. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/lib/main.js +0 -0
  48. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/lib/types/multipart.js +0 -0
  49. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/lib/types/urlencoded.js +0 -0
  50. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/lib/utils.js +0 -0
  51. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/busboy/package.json +0 -0
  52. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
  53. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/dev/index.js +0 -0
  54. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/dev/lib/class.js +0 -0
  55. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/dev/lib/factory.js +0 -0
  56. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/dev/lib/tools.js +0 -0
  57. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/gna.js +6 -1
  58. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/README.md +5 -0
  59. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/currency.json +0 -0
  60. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/dist/language/en.json +0 -0
  61. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/dist/language/fr.json +0 -0
  62. package/framework/v0.1.1-alpha.164/core/locales/dist/region/en.json +5727 -0
  63. package/framework/v0.1.1-alpha.164/core/locales/dist/region/fr.json +11452 -0
  64. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/index.js +0 -0
  65. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/src/make.js +39 -41
  66. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/src/resources/currency.csv +0 -0
  67. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/locales/src/resources/region.csv +0 -0
  68. package/framework/v0.1.1-alpha.164/core/locales/src/resources/region.mapping.json +43 -0
  69. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/mime.types +0 -0
  70. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/model/entity.js +0 -0
  71. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/model/index.js +0 -0
  72. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/model/template/entityFactory.js +0 -0
  73. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/model/template/index.js +0 -0
  74. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/README.md +0 -0
  75. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/index.js +0 -0
  76. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/file/README.md +0 -0
  77. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/file/build.json +0 -0
  78. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/file/package.json +0 -0
  79. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/intl/README.md +0 -0
  80. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/intl/build.json +0 -0
  81. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/intl/package.json +0 -0
  82. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/intl/src/main.js +0 -0
  83. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/storage/README.md +0 -0
  84. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/storage/build.json +0 -0
  85. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/storage/package.json +0 -0
  86. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/storage/src/main.js +0 -0
  87. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/validator/README.md +0 -0
  88. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/validator/build.json +0 -0
  89. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/validator/package.json +0 -0
  90. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/validator/src/form-validator.js +0 -0
  91. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/plugins/lib/validator/src/main.js +0 -0
  92. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/router.js +0 -0
  93. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/server.express.js +0 -0
  94. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/server.isaac.js +0 -0
  95. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/server.js +28 -28
  96. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/status.codes +0 -0
  97. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/config/app.json +0 -0
  98. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/config/routing.json +0 -0
  99. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/config/settings.json +0 -0
  100. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/config/settings.server.json +4 -4
  101. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/config/templates.json +0 -0
  102. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  103. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  104. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  105. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle/index.js +0 -0
  106. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  107. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  108. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  109. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  110. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  111. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_public/readme.md +0 -0
  112. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  113. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  114. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  115. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  116. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  117. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/command/gina.bat.tpl +0 -0
  118. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/command/gina.tpl +0 -0
  119. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/conf/env.json +11 -0
  120. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/conf/manifest.json +0 -0
  121. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/conf/package.json +0 -0
  122. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/conf/settings.json +0 -0
  123. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/conf/statics.json +0 -0
  124. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/conf/templates.json +0 -0
  125. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/error/client/json/401.json +0 -0
  126. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/error/client/json/403.json +0 -0
  127. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/error/client/json/404.json +0 -0
  128. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/error/server/html/50x.html +0 -0
  129. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/error/server/json/500.json +0 -0
  130. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/error/server/json/503.json +0 -0
  131. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/core/template/extensions/logger/config.json +0 -0
  132. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/console.js +0 -0
  133. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/context.js +0 -0
  134. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/dateFormat.js +0 -0
  135. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/index.js +0 -0
  136. package/framework/v0.1.1-alpha.164/helpers/json/LICENSE +9 -0
  137. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/json/README.md +0 -0
  138. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/json/package.json +1 -1
  139. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/json/src/main.js +1 -1
  140. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/path.js +0 -0
  141. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/plugins/README.md +0 -0
  142. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/plugins/package.json +1 -1
  143. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/plugins/src/api-error.js +0 -0
  144. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/plugins/src/main.js +0 -0
  145. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/prototypes.js +11 -2
  146. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/task.js +0 -0
  147. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/helpers/text.js +0 -0
  148. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/archiver/README.md +0 -0
  149. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/archiver/build.json +0 -0
  150. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/archiver/package.json +0 -0
  151. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/archiver/src/dep/jszip.min.js +0 -0
  152. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/archiver/src/main.js +0 -0
  153. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/aliases.json +0 -0
  154. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/add.js +0 -0
  155. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/arguments.json +0 -0
  156. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/copy.js +0 -0
  157. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/cp.js +0 -0
  158. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/help.js +0 -0
  159. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/help.txt +0 -0
  160. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/list.js +0 -0
  161. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/remove.js +0 -0
  162. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/rename.js +0 -0
  163. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/restart.js +0 -0
  164. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/rm.js +0 -0
  165. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/start.js +9 -2
  166. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/status.js +0 -0
  167. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/bundle/stop.js +0 -0
  168. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/add.js +0 -0
  169. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/get.js +0 -0
  170. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/help.js +0 -0
  171. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/help.txt +0 -0
  172. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/link-dev.js +0 -0
  173. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/list.js +20 -4
  174. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/remove.js +0 -0
  175. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/rm.js +0 -0
  176. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/set.js +0 -0
  177. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/unset.js +0 -0
  178. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/env/use.js +0 -0
  179. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/build.js +1 -1
  180. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/dot.js +0 -0
  181. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/get.js +0 -0
  182. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/help.js +0 -0
  183. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/help.txt +0 -0
  184. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/init.js +160 -67
  185. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/link-node-modules.js +0 -0
  186. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/link.js +0 -0
  187. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/msg.json +0 -0
  188. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/open.js +0 -0
  189. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/restart.js +0 -0
  190. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/set.js +0 -0
  191. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/start.js +0 -0
  192. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/status.js +0 -0
  193. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/stop.js +0 -0
  194. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/tail.js +26 -2
  195. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/update.js +0 -0
  196. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/framework/version.js +0 -0
  197. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/gina-dev.1.md +0 -0
  198. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/gina-framework.1.md +0 -0
  199. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/gina.1.md +0 -0
  200. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/helper.js +0 -0
  201. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/index.js +0 -0
  202. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/msg.json +0 -0
  203. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/port/help.js +0 -0
  204. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/port/help.txt +0 -0
  205. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/port/inc/scan.js +0 -0
  206. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/port/list.js +15 -2
  207. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/port/reset.js +0 -0
  208. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/port/set.js +0 -0
  209. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/add.js +0 -0
  210. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/arguments.json +0 -0
  211. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/build.js +0 -0
  212. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/help.js +0 -0
  213. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/help.txt +0 -0
  214. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/import.js +0 -0
  215. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/list.js +0 -0
  216. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/move.js +0 -0
  217. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/remove.js +0 -0
  218. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/rename.js +0 -0
  219. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/restart.js +0 -0
  220. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/rm.js +0 -0
  221. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/start.js +0 -0
  222. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/status.js +0 -0
  223. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/project/stop.js +0 -0
  224. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/protocol/help.js +0 -0
  225. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/protocol/help.txt +0 -0
  226. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/protocol/list.js +0 -0
  227. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/protocol/set.js +0 -0
  228. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/help.js +0 -0
  229. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/help.txt +0 -0
  230. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/link-local.js +0 -0
  231. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/list.js +24 -8
  232. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/remove.js +0 -0
  233. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/rm.js +0 -0
  234. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/set.js +0 -0
  235. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/unset.js +0 -0
  236. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/scope/use.js +0 -0
  237. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cmd/view/add.js +0 -0
  238. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/collection/README.md +0 -0
  239. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/collection/build.json +0 -0
  240. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/collection/package.json +0 -0
  241. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/collection/src/main.js +0 -0
  242. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/config.js +0 -0
  243. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cron/README.md +0 -0
  244. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cron/package.json +0 -0
  245. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/cron/src/main.js +7 -7
  246. package/framework/v0.1.1-alpha.164/lib/domain/LICENSE +9 -0
  247. package/framework/v0.1.1-alpha.164/lib/domain/README.md +46 -0
  248. package/framework/v0.1.1-alpha.164/lib/domain/dist/public_suffix_list.dat +14186 -0
  249. package/framework/{v0.1.1-alpha.162/lib/routing/README.md → v0.1.1-alpha.164/lib/domain/exemples/backend.js} +0 -0
  250. package/framework/{v0.1.1-alpha.162/lib/routing/build.json → v0.1.1-alpha.164/lib/domain/exemples/frontend.html} +0 -0
  251. package/framework/v0.1.1-alpha.164/lib/domain/package.json +20 -0
  252. package/framework/v0.1.1-alpha.164/lib/domain/src/main.js +438 -0
  253. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/generator/index.js +0 -0
  254. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/index.js +1 -0
  255. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/LICENSE +0 -0
  256. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/README.md +0 -0
  257. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/example/inheriting_eventemitter.js +0 -0
  258. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/example/protected_inheritance.js +0 -0
  259. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/example/simple_inheritance.js +0 -0
  260. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
  261. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/package.json +0 -0
  262. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/inherits/src/main.js +0 -0
  263. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/README.md +0 -0
  264. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/package.json +1 -1
  265. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/default/index.js +0 -0
  266. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/file/index.js +0 -0
  267. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
  268. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
  269. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/mq/index.js +5 -0
  270. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/mq/listener.js +0 -0
  271. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/containers/mq/speaker.js +0 -0
  272. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/helper.js +1 -0
  273. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/logger/src/main.js +20 -3
  274. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/math/index.js +0 -0
  275. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/merge/README.md +0 -0
  276. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/merge/example/merge.js +0 -0
  277. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/merge/example/merge_2_literal objects.js +0 -0
  278. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/merge/example/merge_and_preserve_first.js +0 -0
  279. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/merge/package.json +0 -0
  280. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/merge/src/main.js +0 -0
  281. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/model.js +0 -0
  282. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/proc.js +10 -0
  283. package/framework/{v0.1.1-alpha.162/lib/swig-filters → v0.1.1-alpha.164/lib/routing}/README.md +0 -0
  284. package/framework/{v0.1.1-alpha.162/lib/url/README.md → v0.1.1-alpha.164/lib/routing/build.json} +0 -0
  285. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/routing/package.json +0 -0
  286. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/routing/src/main.js +0 -0
  287. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/session-store.js +0 -0
  288. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/shell.js +0 -0
  289. package/framework/v0.1.1-alpha.164/lib/swig-filters/README.md +0 -0
  290. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/swig-filters/package.json +0 -0
  291. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/swig-filters/src/main.js +0 -0
  292. package/framework/v0.1.1-alpha.164/lib/url/README.md +0 -0
  293. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/url/index.js +0 -0
  294. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/url/mocks.json +0 -0
  295. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/url/routing.json +0 -0
  296. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/url/test.js +0 -0
  297. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/lib/validator.js +0 -0
  298. package/framework/{v0.1.1-alpha.162 → v0.1.1-alpha.164}/package.json +0 -0
  299. package/package.json +2 -2
  300. package/script/post_install.js +1 -1
  301. package/script/post_publish.js +1 -1
  302. package/script/pre_install.js +1 -1
  303. package/script/prepare_version.js +1 -1
  304. package/services/.gna/67fdf1b224a2ed5597e63d4b64283834468e05e3.txt +0 -0
  305. package/services/.gna/arch +1 -0
  306. package/services/.gna/locals.json +14 -0
  307. package/services/.gna/platform +1 -0
  308. package/services/configure +6 -0
  309. package/services/env.json +10 -0
  310. package/services/manifest.json +18 -0
  311. package/services/package.json +11 -0
  312. package/services/src/proxy/config/app.json +6 -0
  313. package/services/src/proxy/config/routing.json +11 -0
  314. package/services/src/proxy/config/settings.json +9 -0
  315. package/services/src/proxy/config/settings.server.json +31 -0
  316. package/services/src/proxy/config/statics.json +3 -0
  317. package/services/src/proxy/controllers/controller.content.js +58 -0
  318. package/services/src/proxy/controllers/controller.js +30 -0
  319. package/services/src/proxy/controllers/setup.js +111 -0
  320. package/services/src/proxy/index.js +31 -0
  321. package/services/src/proxy/lib/domain/README.md +48 -0
  322. package/services/src/proxy/lib/domain/src/config/public_suffix_list.dat +14186 -0
  323. package/framework/v0.1.1-alpha.162/VERSION +0 -1
  324. package/framework/v0.1.1-alpha.162/core/asset/plugin/dist/gina.min.js +0 -741
  325. package/framework/v0.1.1-alpha.162/core/asset/plugin/dist/gina.min.js.map +0 -8
  326. package/framework/v0.1.1-alpha.162/core/locales/dist/region/en.json +0 -9492
  327. package/framework/v0.1.1-alpha.162/core/locales/dist/region/fr.json +0 -9492
  328. package/framework/v0.1.1-alpha.162/core/locales/src/resources/region.mapping.json +0 -28
@@ -13,17 +13,15 @@ var merge = lib.merge;
13
13
  * */
14
14
  function Make() {
15
15
  var self = {}, rec = {};
16
-
16
+
17
17
  var setup = function () {
18
-
18
+
19
19
  var opt = {}
20
- , filename = null
21
20
  , targets = [ 'currency', 'region' ]
22
21
  , tmp = null
23
- , dir = __dirname
24
- ;
22
+ ;
25
23
 
26
- for (var i = 1, len = process.argv.length; i < len; ++i) {
24
+ for (let i = 1, len = process.argv.length; i < len; ++i) {
27
25
  if ( /^\-\-[-_0-9a-z]+\=/i.test( process.argv[i] ) ) {
28
26
  tmp = process.argv[i].split(/\=/);
29
27
  tmp[0] = tmp[0].replace(/\-\-/, '');
@@ -37,40 +35,40 @@ function Make() {
37
35
  if ( targets.indexOf(opt.target) < 0 )
38
36
  throw new Error('`--target=`'+ opt.target +' option is not allowed.');
39
37
 
38
+ if ( typeof(opt.region) != 'undefined' && /\,/.test(opt.region) ) {
39
+ var regions = opt.region.split(/\,/g);
40
+ for (let i=0, len=regions.length; i<len; ++i) {
41
+ let options = JSON.clone(opt);
42
+ options.region = regions[i];
43
+ generate(options)
44
+ }
45
+ return;
46
+ }
47
+ generate(opt)
48
+ }
49
+
50
+ var generate = function(opt) {
51
+
52
+ var filename = null
53
+ , dir = __dirname
54
+ ;
55
+
40
56
  filename = (opt.filename) ? opt.filename : _(dir +'/resources/'+ opt.target +'.csv', true);
41
57
 
42
58
  var region = (opt.region) ? opt.region : 'en';
43
59
  var mappingFile = _(dir+ '/resources/'+ opt.target +'.mapping.json', true);
44
60
  var content = null;
61
+ try {
62
+ rec.mapping = requireJSON(mappingFile);
63
+ } catch (err) {
64
+ throw err
65
+ }
45
66
 
46
- rec.mapping = {
47
- "name" : "full",
48
- "official_name_en" : "officialName.short",
49
- "ISO3166-1-Alpha-2" : "short",
50
- "ISO3166-1-Alpha-3" : "long",
51
- "M49" : "m49",
52
- "ITU" : "itu",
53
- "MARC" : "marc",
54
- "WMO" : "wmo",
55
- "DS" : "ds",
56
- "Dial" : "dial",
57
- "FIFA" : "fifa",
58
- "FIPS" : "fips",
59
- "GAUL" : "gaul",
60
- "IOC" : "ioc",
61
- "ISO4217-currency_alphabetic_code" : "currency.code",
62
- "ISO4217-currency_country_name" : "currency.countryName",
63
- "ISO4217-currency_minor_unit" : "currency.minorUnit",
64
- "ISO4217-currency_name" : "currency.name",
65
- "ISO4217-currency_numeric_code" : "currency.numCode",
66
- "is_independent" : "isIndependent",
67
- "Capital" : "capital",
68
- "Continent" : "continent",
69
- "TLD" : "tld",
70
- "Languages" : "languages",
71
- "Geoname ID" : "geonameId",
72
- "EDGAR" : "edgar"
73
- };
67
+ try {
68
+ rec.mapping = requireJSON(mappingFile);
69
+ } catch (err) {
70
+ throw err
71
+ }
74
72
 
75
73
  if ( opt.region != 'en' ) {
76
74
  rec.mapping[ 'official_name_' + opt.region ] = JSON.clone(rec.mapping["official_name_en"]);
@@ -109,7 +107,7 @@ function Make() {
109
107
  }
110
108
  rec.mapping = newMapping;
111
109
  }
112
-
110
+
113
111
  var save = function (filename, data) {
114
112
 
115
113
  if ( fs.existsSync(filename) ) {
@@ -216,10 +214,11 @@ function Make() {
216
214
 
217
215
  bodyCols = [];
218
216
  bc = 0;
219
- for (var a = 0, aLen = arr.length; a < aLen; ++a) {
217
+ aLen = arr.length
218
+ for (let a = 0; a < aLen; ++a) {
220
219
  aContent = arr[a].split(/"/g);
221
220
 
222
- for (var ac = 0, acLen = aContent.length; ac < acLen; ++ac) {
221
+ for (let ac = 0, acLen = aContent.length; ac < acLen; ++ac) {
223
222
  if ( ac == acLen-1 ) {
224
223
  aContent[ac] = (aContent[ac].substr(0,1) == ';') ? aContent[ac].substr(1) : aContent[ac];
225
224
  subArr = aContent[ac].split(/;/);
@@ -308,11 +307,10 @@ function Make() {
308
307
  }
309
308
 
310
309
  self.body = body;
311
-
310
+
312
311
  }
313
312
 
314
313
  setup();
315
314
  process.exit(0);
316
- };
317
-
318
- module.exports = Make()
315
+ }
316
+ module.exports = Make();
@@ -0,0 +1,43 @@
1
+ // extract from region.csv
2
+ {
3
+ "name": "countryName",
4
+ "official_name_en": "officialStateName",
5
+ "Languages": "languages",
6
+ "Capital": "capital",
7
+ "Continent": "continent",
8
+ "is_independent": "isIndependent",
9
+ // ISO Standardized country code on 2 or 3 letters
10
+ "ISO3166-1-Alpha-2": "isoShort",
11
+ "ISO3166-1-Alpha-3": "isoLong",
12
+ // Standard Country or Area Codes for Statistical Use (Series M, No. 49)
13
+ // "M49": "m49",
14
+ // Country codes for the International Telecommunication Union (1 or 3 letters)
15
+ // "ITU": "itu",
16
+ // Country codes for the U.S. library of congress (2 or 3 letters)
17
+ // "MARC": "marc",
18
+ // Country codes for the World Meteorological Organization
19
+ // "WMO": "wmo",
20
+ // Country codes for the U.S. Departement of State
21
+ // "DS": "ds",
22
+ // Country codes for the FIFA association
23
+ // "FIFA": "fifa",
24
+ // Country codes for the US government (DEPRECATED)
25
+ // "FIPS": "fips",
26
+ // Country codes for the The Global Administrative Unit Layers (GAUL) used by the Food and Agriculture Organization (FAO) of the United Nations.
27
+ // "GAUL": "gaul",
28
+ // Country codes for the International Olympic Committee
29
+ // "IOC": "ioc",
30
+ // Country codes for the Electronic Data Gathering, Analysis, and Retrieval (EDGAR) Extensible Markup Language (XML) as used by the U.S. securities and exchnage commission
31
+ // "EDGAR": "edgar",
32
+ // Country codes for the Geoname database
33
+ // "Geoname ID": "geonameId",
34
+ // Country dial-in codes, telephone number prefixes
35
+ "Dial": "dial",
36
+ "ISO4217-currency_name": "currency.name",
37
+ "ISO4217-currency_alphabetic_code": "currency.alphacode",
38
+ // "ISO4217-currency_numeric_code": "currency.numCode",
39
+ "ISO4217-currency_minor_unit": "currency.minorUnit",
40
+ // "ISO4217-currency_country_name": "currency.countryName",
41
+ // Top level domain for the country
42
+ "TLD": "tld"
43
+ }
@@ -227,8 +227,10 @@ function Server(options) {
227
227
  })
228
228
  });
229
229
  } catch (err) {
230
- console.emerg(sslDetails +'\n'+ err.stack);
231
- return;
230
+ if (!sslDetails) {
231
+ throw new Error('DNS issue ? Did you check your `/etc/hosts` or your DNS configuration ?\n'+ err.stack);
232
+ }
233
+ throw new Error(sslDetails +'\n'+ err.stack);
232
234
  }
233
235
 
234
236
 
@@ -249,31 +251,30 @@ function Server(options) {
249
251
  // ]
250
252
  // }
251
253
 
252
- // const isHandleByWildcardCert = function(endpoint, hv) {
253
- // var isAllowed = false;
254
- // const start = new Date(hv.validFrom).format('longIsoDateTime');
255
- // const end = new Date(hv.validTo).format('longIsoDateTime');
256
- // const today = new Date().format('longIsoDateTime');
257
- // const allowed = hv.validFor;
258
-
259
- // for (let i=0, len=allowed.length; i<len; ++i ) {
260
- // // skip if not a wildcard
261
- // if ( ! /^[*]\./.test(allowed[i]) ) continue;
262
-
263
- // let re = new RegExp( allowed[i].replace(/^[*]/, '')+'$' );
264
- // if ( ! re.test(endpoint) ) continue;
265
-
266
- // if ( today >= start && today < end) {
267
- // isAllowed = true;
268
- // break
269
- // }
270
- // }
271
- // return isAllowed;
272
- // }
254
+ const isHandleByWildcardCert = function(endpoint, hv) {
255
+ var isAllowed = false;
256
+ const start = new Date(hv.validFrom).format('longIsoDateTime');
257
+ const end = new Date(hv.validTo).format('longIsoDateTime');
258
+ const today = new Date().format('longIsoDateTime');
259
+ const allowed = hv.validFor;
273
260
 
274
- // if ( failed && Array.isArray(sslDetails.validFor) && isHandleByWildcardCert(endpoint, sslDetails) ) {
275
- // return;
276
- // }
261
+ for (let i=0, len=allowed.length; i<len; ++i ) {
262
+ // skip if not a wildcard
263
+ if ( ! /^[*]\./.test(allowed[i]) ) continue;
264
+
265
+ let re = new RegExp( allowed[i].replace(/^[*]/, '')+'$' );
266
+ if ( ! re.test(endpoint) ) continue;
267
+
268
+ if ( today >= start && today < end) {
269
+ isAllowed = true;
270
+ break
271
+ }
272
+ }
273
+ return isAllowed;
274
+ }
275
+ if ( failed && Array.isArray(sslDetails.validFor) && isHandleByWildcardCert(endpoint, sslDetails) ) {
276
+ return;
277
+ }
277
278
 
278
279
 
279
280
  if (failed) {
@@ -2197,7 +2198,6 @@ function Server(options) {
2197
2198
 
2198
2199
  });//EO this.instance
2199
2200
 
2200
-
2201
2201
  self.instance.listen(self.conf[self.appName][self.env].server.port);//By Default 3100
2202
2202
  self.instance.timeout = (1000 * 300); // e.g.: 1000x60 => 60 sec
2203
2203
 
@@ -2473,7 +2473,7 @@ function Server(options) {
2473
2473
  } else {
2474
2474
  console.warn('[ '+file+' ] extension: `'+s[2]+'` not supported by gina: `core/mime.types`. Replacing with `plain/text` ')
2475
2475
  }
2476
- return type || 'plain/text'
2476
+ return type || 'plain/text'
2477
2477
  } catch (err) {
2478
2478
  console.error('Error while trying to getHead('+ file +') extention. Replacing with `plain/text` '+ err.stack);
2479
2479
  return 'plain/text'
@@ -6,19 +6,19 @@
6
6
  * Default is `true`: set to false if you have describe a redirection rule from your `routing.json`
7
7
  */
8
8
  // "webrootAutoredirect": false,
9
-
9
+
10
10
  /**
11
11
  * `template` settings
12
12
  * Default is `false`: will automatically be set to `true` when you add a view/template (`false` is right for APIs only)
13
13
  */
14
- // "template": false
15
-
14
+ // "template": false,
15
+
16
16
  /**
17
17
  * `response` settings
18
18
  * This section is mostly used to setup CORS
19
19
  */
20
20
  // "response": {
21
- // CORS settings sample
21
+ // // CORS settings sample
22
22
  // "header": {
23
23
  // "access-control-allow-origin": "{bundle}@{project}, https://checkout.stripe.com",
24
24
  // "access-control-allow-headers": "X-Requested-With", // To allow AJAX request
@@ -15,7 +15,18 @@
15
15
  "logsPath": "{executionPath}/logs",
16
16
  "{bundle}": {
17
17
  "{env}": {
18
+ // This this the Root Domain
19
+ // Not to be confuse with the FQDN (host/hostname)
20
+ // Will take by default :
21
+ // - the root domain extracted from your system hostname
22
+ // - the `rootDomain` defined in your project/manifest.json
23
+ // - the `rootDomain` defined in your project/env.json
24
+ // - the `rootDomain` defined in your bundle/config/settings.server.json
25
+ // Since overrides are possible, last defined value will be the one taken in consideration by gina
26
+ "rootDomain": "",
18
27
  "projectPath": "{executionPath}",
28
+ "projectVersion": "",
29
+ "projectVersionMajor": "",
19
30
  "bundlesPath": "{executionPath}/bundles",
20
31
  "bundlePath": "{bundlesPath}/{bundle}",
21
32
  "sharedPath": "{executionPath}/shared",
@@ -0,0 +1,9 @@
1
+ License (MIT)
2
+
3
+ Copyright © 2023 Martin-Luther ETOUMAN <martin-luther.etouman@gina.io>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -5,7 +5,7 @@
5
5
 
6
6
  "author": {
7
7
  "name": "Maritn-Luther ETOUMAN",
8
- "email": "martinluther@gina.io"
8
+ "email": "martin-luther@gina.io"
9
9
  },
10
10
  "copyright": "Copyright (c) 2009-2023 Rhinostone <contact@gina.io>",
11
11
  "engines": {
@@ -9,7 +9,7 @@
9
9
  var fs = require('fs');
10
10
  var console = require('./../../../lib/logger');
11
11
  /**
12
- * TextHelper
12
+ * JSONHelper
13
13
  *
14
14
  * @package Gina.Utils.Helpers
15
15
  * @author Rhinostone <contact@gina.io>
@@ -5,7 +5,7 @@
5
5
 
6
6
  "author": {
7
7
  "name": "Maritn-Luther ETOUMAN",
8
- "email": "martinluther@gina.io"
8
+ "email": "martin-luther@gina.io"
9
9
  },
10
10
  "copyright": "Copyright (c) 2009-2023 Rhinostone <contact@gina.io>",
11
11
  "engines": {
@@ -76,10 +76,19 @@ function PrototypesHelper(instance) {
76
76
  }
77
77
 
78
78
  if ( typeof(JSON.clone) == 'undefined' && !isGFFCtx ) {
79
- if ( typeof(envVars) != 'undefined' ) {
79
+ if ( typeof(envVars) != 'undefined' && envVars != null ) {
80
80
  JSON.clone = require( envVars.GINA_DIR +'/utils/prototypes.json_clone');
81
81
  } else {
82
- JSON.clone = require( GINA_DIR +'/utils/prototypes.json_clone');
82
+ // For unit tests
83
+ if (!envVars) {
84
+ var ginaDir = process.cwd().match(/.*\/gina/)[0];
85
+ require(ginaDir +'/utils/helper');
86
+ setEnvVar('GINA_DIR', ginaDir, true);
87
+ envVars = getEnvVars();
88
+ }
89
+
90
+ // JSON.clone = require( GINA_DIR +'/utils/prototypes.json_clone');
91
+ JSON.clone = require( getEnvVar('GINA_DIR') +'/utils/prototypes.json_clone');
83
92
  }
84
93
  }
85
94