gina 0.1.6-alpha.87 → 0.1.6-alpha.89

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 (374) hide show
  1. package/framework/v0.1.6-alpha.89/VERSION +1 -0
  2. package/framework/v0.1.6-alpha.89/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +1 -0
  3. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/js/gina.js +13 -3
  4. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +340 -340
  5. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/js/gina.min.js.map +4 -4
  6. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.map +2 -2
  7. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/config.js +12 -4
  8. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/controller/controller.js +1 -3
  9. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/.travis.yml +4 -0
  10. package/framework/{v0.1.6-alpha.87/core/deps/busboy-1.6.0 → v0.1.6-alpha.89/core/deps/optimist-0.6.1}/LICENSE +10 -8
  11. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/bool.js +10 -0
  12. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/boolean_double.js +7 -0
  13. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/boolean_single.js +7 -0
  14. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/default_hash.js +8 -0
  15. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/default_singles.js +7 -0
  16. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/divide.js +8 -0
  17. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/line_count.js +20 -0
  18. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/line_count_options.js +29 -0
  19. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/line_count_wrap.js +29 -0
  20. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/nonopt.js +4 -0
  21. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/reflect.js +2 -0
  22. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/short.js +3 -0
  23. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/string.js +11 -0
  24. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/usage-options.js +19 -0
  25. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/example/xup.js +10 -0
  26. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/index.js +343 -0
  27. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/package.json +31 -0
  28. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/package.json.dist +39 -0
  29. package/framework/v0.1.6-alpha.89/core/deps/optimist-0.6.1/readme.markdown +513 -0
  30. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/HISTORY.md +498 -0
  31. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/LICENSE +7 -0
  32. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/README.md +88 -0
  33. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/bin/swig.js +161 -0
  34. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/bin/swig.js.dist +161 -0
  35. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/dist/swig.min.js +7 -0
  36. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/dist/swig.min.js.map +8 -0
  37. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/index.js +1 -0
  38. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/dateformatter.js +198 -0
  39. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/filters.js +630 -0
  40. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/lexer.js +306 -0
  41. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/loaders/filesystem.js +59 -0
  42. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/loaders/index.js +53 -0
  43. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/loaders/memory.js +63 -0
  44. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/parser.js +744 -0
  45. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/swig.js +740 -0
  46. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/autoescape.js +37 -0
  47. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/block.js +25 -0
  48. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/else.js +25 -0
  49. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/elseif.js +28 -0
  50. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/extends.js +19 -0
  51. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/filter.js +68 -0
  52. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/for.js +130 -0
  53. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/if.js +86 -0
  54. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/import.js +91 -0
  55. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/include.js +100 -0
  56. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/index.js +16 -0
  57. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/macro.js +79 -0
  58. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/parent.js +51 -0
  59. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/raw.js +23 -0
  60. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/set.js +109 -0
  61. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/tags/spaceless.js +42 -0
  62. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/lib/utils.js +184 -0
  63. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/package.json +57 -0
  64. package/framework/v0.1.6-alpha.89/core/deps/swig-1.4.2/package.json.dist +61 -0
  65. package/framework/v0.1.6-alpha.89/core/deps/swig-client/swig.js +5031 -0
  66. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/server.js +7 -2
  67. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/data/package.json +1 -1
  68. package/framework/{v0.1.6-alpha.87/helpers/plugins → v0.1.6-alpha.89/helpers/json}/package.json +1 -1
  69. package/framework/{v0.1.6-alpha.87/helpers/json → v0.1.6-alpha.89/helpers/plugins}/package.json +1 -1
  70. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/src/main.js +11 -1
  71. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/mq/listener.js +10 -2
  72. package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/package.json +0 -1
  73. package/package.json +2 -2
  74. package/framework/v0.1.6-alpha.87/VERSION +0 -1
  75. package/framework/v0.1.6-alpha.87/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +0 -1
  76. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/.travis.yml +0 -17
  77. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/README.md +0 -225
  78. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/deps/encoding/encoding-indexes.js +0 -73
  79. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/deps/encoding/encoding.js +0 -2391
  80. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/lib/main.js +0 -89
  81. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/lib/types/multipart.js +0 -328
  82. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/lib/types/urlencoded.js +0 -214
  83. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/lib/utils.js +0 -191
  84. package/framework/v0.1.6-alpha.87/core/deps/busboy-0.2.14/package.json +0 -69
  85. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/AUTHORS +0 -0
  86. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/LICENSE +0 -0
  87. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/html/nolayout.html +0 -0
  88. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/html/static.html +0 -0
  89. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/img/android-chrome-192x192.png +0 -0
  90. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/img/android-chrome-512x512.png +0 -0
  91. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/img/apple-touch-icon.png +0 -0
  92. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/img/favicon-16x16.png +0 -0
  93. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/img/favicon-32x32.png +0 -0
  94. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/img/favicon.ico +0 -0
  95. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/README.md +0 -0
  96. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  97. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +0 -0
  98. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  99. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/asset/plugin/uuid.json +0 -0
  100. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/index.js +0 -0
  101. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/connector.js +0 -0
  102. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/connector.v2.js +0 -0
  103. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  104. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  105. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/n1ql.js +0 -0
  106. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/session-store.js +0 -0
  107. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
  108. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  109. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  110. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/controller/controller.framework.js +0 -0
  111. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/controller/index.js +0 -0
  112. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/.github/workflows/ci.yml +0 -0
  113. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/.github/workflows/lint.yml +0 -0
  114. /package/framework/{v0.1.6-alpha.87/core/deps/busboy-0.2.14 → v0.1.6-alpha.89/core/deps/busboy-1.6.0}/LICENSE +0 -0
  115. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/README.md +0 -0
  116. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-big.js +0 -0
  117. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-small.js +0 -0
  118. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-big.js +0 -0
  119. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-small.js +0 -0
  120. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-100pairs-small.js +0 -0
  121. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-900pairs-small-alt.js +0 -0
  122. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/lib/index.js +0 -0
  123. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/lib/types/multipart.js +0 -0
  124. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/lib/types/urlencoded.js +0 -0
  125. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/lib/utils.js +0 -0
  126. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/busboy-1.6.0/package.json +0 -0
  127. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
  128. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/dev/index.js +0 -0
  129. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/dev/lib/class.js +0 -0
  130. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/dev/lib/factory.js +0 -0
  131. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/dev/lib/tools.js +0 -0
  132. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/gna.js +0 -0
  133. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/README.md +0 -0
  134. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/currency.json +0 -0
  135. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/dist/language/en.json +0 -0
  136. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/dist/language/fr.json +0 -0
  137. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/dist/region/en.json +0 -0
  138. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/dist/region/fr.json +0 -0
  139. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/index.js +0 -0
  140. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/src/make.js +0 -0
  141. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/src/resources/currency.csv +0 -0
  142. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/src/resources/region.csv +0 -0
  143. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/locales/src/resources/region.mapping.json +0 -0
  144. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/mime.types +0 -0
  145. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/model/entity.js +0 -0
  146. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/model/index.js +0 -0
  147. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/model/template/entityFactory.js +0 -0
  148. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/model/template/index.js +0 -0
  149. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/README.md +0 -0
  150. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/index.js +0 -0
  151. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/file/README.md +0 -0
  152. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/file/build.json +0 -0
  153. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/file/package.json +0 -0
  154. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/intl/README.md +0 -0
  155. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/intl/build.json +0 -0
  156. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/intl/package.json +0 -0
  157. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/intl/src/main.js +0 -0
  158. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/storage/README.md +0 -0
  159. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/storage/build.json +0 -0
  160. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/storage/package.json +0 -0
  161. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/storage/src/main.js +0 -0
  162. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/validator/README.md +0 -0
  163. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/validator/build.json +0 -0
  164. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/validator/package.json +0 -0
  165. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/validator/src/form-validator.js +0 -0
  166. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/plugins/lib/validator/src/main.js +0 -0
  167. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/router.js +0 -0
  168. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/server.express.js +0 -0
  169. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/server.isaac.js +0 -0
  170. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/status.codes +0 -0
  171. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/_gitignore +0 -0
  172. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/config/app.json +0 -0
  173. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/config/routing.json +0 -0
  174. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/config/settings.json +0 -0
  175. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  176. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/config/templates.json +0 -0
  177. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  178. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  179. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  180. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle/index.js +0 -0
  181. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  182. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  183. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  184. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  185. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  186. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_public/readme.md +0 -0
  187. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  188. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  189. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  190. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  191. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  192. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/command/gina.bat.tpl +0 -0
  193. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/command/gina.tpl +0 -0
  194. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/conf/env.json +0 -0
  195. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/conf/manifest.json +0 -0
  196. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/conf/package.json +0 -0
  197. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/conf/settings.json +0 -0
  198. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/conf/statics.json +0 -0
  199. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/conf/templates.json +0 -0
  200. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/error/client/json/401.json +0 -0
  201. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/error/client/json/403.json +0 -0
  202. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/error/client/json/404.json +0 -0
  203. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/error/server/html/50x.html +0 -0
  204. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/error/server/json/500.json +0 -0
  205. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/error/server/json/503.json +0 -0
  206. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/core/template/extensions/logger/config.json +0 -0
  207. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/console.js +0 -0
  208. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/context.js +0 -0
  209. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/data/LICENSE +0 -0
  210. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/data/README.md +0 -0
  211. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/data/src/main.js +0 -0
  212. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/dateFormat.js +0 -0
  213. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/index.js +0 -0
  214. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/json/LICENSE +0 -0
  215. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/json/README.md +0 -0
  216. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/json/src/main.js +0 -0
  217. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/path.js +0 -0
  218. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/plugins/README.md +0 -0
  219. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/plugins/src/api-error.js +0 -0
  220. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/plugins/src/main.js +0 -0
  221. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/prototypes.js +0 -0
  222. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/task.js +0 -0
  223. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/helpers/text.js +0 -0
  224. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/archiver/README.md +0 -0
  225. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/archiver/build.json +0 -0
  226. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/archiver/package.json +0 -0
  227. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/archiver/src/dep/jszip.min.js +0 -0
  228. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/archiver/src/main.js +0 -0
  229. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/aliases.json +0 -0
  230. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/add.js +0 -0
  231. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/arguments.json +0 -0
  232. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/copy.js +0 -0
  233. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/cp.js +0 -0
  234. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/help.js +0 -0
  235. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/help.txt +0 -0
  236. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/list.js +0 -0
  237. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/remove.js +0 -0
  238. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/rename.js +0 -0
  239. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/restart.js +0 -0
  240. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/rm.js +0 -0
  241. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/start.js +0 -0
  242. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/status.js +0 -0
  243. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/bundle/stop.js +0 -0
  244. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/add.js +0 -0
  245. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/get.js +0 -0
  246. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/help.js +0 -0
  247. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/help.txt +0 -0
  248. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/link-dev.js +0 -0
  249. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/list.js +0 -0
  250. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/remove.js +0 -0
  251. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/rm.js +0 -0
  252. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/set.js +0 -0
  253. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/unset.js +0 -0
  254. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/env/use.js +0 -0
  255. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/build.js +0 -0
  256. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/dot.js +0 -0
  257. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/get.js +0 -0
  258. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/help.js +0 -0
  259. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/help.txt +0 -0
  260. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/init.js +0 -0
  261. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/link-node-modules.js +0 -0
  262. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/link.js +0 -0
  263. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/msg.json +0 -0
  264. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/open.js +0 -0
  265. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/restart.js +0 -0
  266. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/set.js +0 -0
  267. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/start.js +0 -0
  268. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/status.js +0 -0
  269. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/stop.js +0 -0
  270. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/tail.js +0 -0
  271. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/update.js +0 -0
  272. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/framework/version.js +0 -0
  273. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/gina-dev.1.md +0 -0
  274. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/gina-framework.1.md +0 -0
  275. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/gina.1.md +0 -0
  276. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/helper.js +0 -0
  277. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/index.js +0 -0
  278. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/minion/help.js +0 -0
  279. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/minion/help.txt +0 -0
  280. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/msg.json +0 -0
  281. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/port/help.js +0 -0
  282. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/port/help.txt +0 -0
  283. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/port/inc/scan.js +0 -0
  284. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/port/list.js +0 -0
  285. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/port/reset.js +0 -0
  286. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/port/set.js +0 -0
  287. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/add.js +0 -0
  288. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/arguments.json +0 -0
  289. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/build.js +0 -0
  290. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/help.js +0 -0
  291. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/help.txt +0 -0
  292. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/import.js +0 -0
  293. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/list.js +0 -0
  294. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/move.js +0 -0
  295. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/remove.js +0 -0
  296. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/rename.js +0 -0
  297. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/restart.js +0 -0
  298. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/rm.js +0 -0
  299. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/start.js +0 -0
  300. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/status.js +0 -0
  301. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/project/stop.js +0 -0
  302. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/protocol/help.js +0 -0
  303. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/protocol/help.txt +0 -0
  304. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/protocol/list.js +0 -0
  305. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/protocol/set.js +0 -0
  306. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/add.js +0 -0
  307. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/help.js +0 -0
  308. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/help.txt +0 -0
  309. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/link-local.js +0 -0
  310. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/link-production.js +0 -0
  311. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/list.js +0 -0
  312. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/remove.js +0 -0
  313. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/rm.js +0 -0
  314. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/scope/use.js +0 -0
  315. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cmd/view/add.js +0 -0
  316. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/collection/README.md +0 -0
  317. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/collection/build.json +0 -0
  318. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/collection/package.json +0 -0
  319. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/collection/src/main.js +0 -0
  320. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/config.js +0 -0
  321. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cron/README.md +0 -0
  322. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cron/package.json +0 -0
  323. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/cron/src/main.js +0 -0
  324. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/LICENSE +0 -0
  325. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/README.md +0 -0
  326. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/dist/2025-03-14_13-41-20_UTC.dat +0 -0
  327. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/dist/public_suffix_list.dat +0 -0
  328. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/exemples/backend.js +0 -0
  329. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/exemples/frontend.html +0 -0
  330. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/domain/package.json +0 -0
  331. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/generator/index.js +0 -0
  332. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/index.js +0 -0
  333. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/LICENSE +0 -0
  334. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/README.md +0 -0
  335. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/example/inheriting_eventemitter.js +0 -0
  336. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/example/protected_inheritance.js +0 -0
  337. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/example/simple_inheritance.js +0 -0
  338. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
  339. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/package.json +0 -0
  340. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/inherits/src/main.js +0 -0
  341. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/README.md +0 -0
  342. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/package.json +0 -0
  343. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/default/index.js +0 -0
  344. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/file/index.js +0 -0
  345. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
  346. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
  347. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/mq/index.js +0 -0
  348. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/containers/mq/speaker.js +0 -0
  349. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/helper.js +0 -0
  350. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/logger/src/main.js +0 -0
  351. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/math/index.js +0 -0
  352. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/merge/README.md +0 -0
  353. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/merge/example/merge.js +0 -0
  354. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/merge/example/merge_2_literal objects.js +0 -0
  355. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/merge/example/merge_and_preserve_first.js +0 -0
  356. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/merge/package.json +0 -0
  357. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/merge/src/main.js +0 -0
  358. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/model.js +0 -0
  359. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/proc.js +0 -0
  360. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/routing/README.md +0 -0
  361. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/routing/build.json +0 -0
  362. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/routing/package.json +0 -0
  363. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/routing/src/main.js +0 -0
  364. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/session-store.js +0 -0
  365. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/shell.js +0 -0
  366. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/swig-filters/README.md +0 -0
  367. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/swig-filters/package.json +0 -0
  368. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/swig-filters/src/main.js +0 -0
  369. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/url/README.md +0 -0
  370. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/url/index.js +0 -0
  371. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/url/mocks.json +0 -0
  372. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/url/routing.json +0 -0
  373. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/url/test.js +0 -0
  374. /package/framework/{v0.1.6-alpha.87 → v0.1.6-alpha.89}/lib/validator.js +0 -0
@@ -0,0 +1,740 @@
1
+ var utils = require('./utils'),
2
+ _tags = require('./tags'),
3
+ _filters = require('./filters'),
4
+ parser = require('./parser'),
5
+ dateformatter = require('./dateformatter'),
6
+ loaders = require('./loaders');
7
+
8
+ /**
9
+ * Swig version number as a string.
10
+ * @example
11
+ * if (swig.version === "1.4.2") { ... }
12
+ *
13
+ * @type {String}
14
+ */
15
+ exports.version = "1.4.2";
16
+
17
+ /**
18
+ * Swig Options Object. This object can be passed to many of the API-level Swig methods to control various aspects of the engine. All keys are optional.
19
+ * @typedef {Object} SwigOpts
20
+ * @property {boolean} autoescape Controls whether or not variable output will automatically be escaped for safe HTML output. Defaults to <code data-language="js">true</code>. Functions executed in variable statements will not be auto-escaped. Your application/functions should take care of their own auto-escaping.
21
+ * @property {array} varControls Open and close controls for variables. Defaults to <code data-language="js">['{{', '}}']</code>.
22
+ * @property {array} tagControls Open and close controls for tags. Defaults to <code data-language="js">['{%', '%}']</code>.
23
+ * @property {array} cmtControls Open and close controls for comments. Defaults to <code data-language="js">['{#', '#}']</code>.
24
+ * @property {object} locals Default variable context to be passed to <strong>all</strong> templates.
25
+ * @property {CacheOptions} cache Cache control for templates. Defaults to saving in <code data-language="js">'memory'</code>. Send <code data-language="js">false</code> to disable. Send an object with <code data-language="js">get</code> and <code data-language="js">set</code> functions to customize.
26
+ * @property {TemplateLoader} loader The method that Swig will use to load templates. Defaults to <var>swig.loaders.fs</var>.
27
+ */
28
+ var defaultOptions = {
29
+ autoescape: true,
30
+ varControls: ['{{', '}}'],
31
+ tagControls: ['{%', '%}'],
32
+ cmtControls: ['{#', '#}'],
33
+ locals: {},
34
+ /**
35
+ * Cache control for templates. Defaults to saving all templates into memory.
36
+ * @typedef {boolean|string|object} CacheOptions
37
+ * @example
38
+ * // Default
39
+ * swig.setDefaults({ cache: 'memory' });
40
+ * @example
41
+ * // Disables caching in Swig.
42
+ * swig.setDefaults({ cache: false });
43
+ * @example
44
+ * // Custom cache storage and retrieval
45
+ * swig.setDefaults({
46
+ * cache: {
47
+ * get: function (key) { ... },
48
+ * set: function (key, val) { ... }
49
+ * }
50
+ * });
51
+ */
52
+ cache: 'memory',
53
+ /**
54
+ * Configure Swig to use either the <var>swig.loaders.fs</var> or <var>swig.loaders.memory</var> template loader. Or, you can write your own!
55
+ * For more information, please see the <a href="../loaders/">Template Loaders documentation</a>.
56
+ * @typedef {class} TemplateLoader
57
+ * @example
58
+ * // Default, FileSystem loader
59
+ * swig.setDefaults({ loader: swig.loaders.fs() });
60
+ * @example
61
+ * // FileSystem loader allowing a base path
62
+ * // With this, you don't use relative URLs in your template references
63
+ * swig.setDefaults({ loader: swig.loaders.fs(__dirname + '/templates') });
64
+ * @example
65
+ * // Memory Loader
66
+ * swig.setDefaults({ loader: swig.loaders.memory({
67
+ * layout: '{% block foo %}{% endblock %}',
68
+ * page1: '{% extends "layout" %}{% block foo %}Tacos!{% endblock %}'
69
+ * })});
70
+ */
71
+ loader: loaders.fs()
72
+ },
73
+ defaultInstance;
74
+
75
+ /**
76
+ * Empty function, used in templates.
77
+ * @return {string} Empty string
78
+ * @private
79
+ */
80
+ function efn() { return ''; }
81
+
82
+ /**
83
+ * Validate the Swig options object.
84
+ * @param {?SwigOpts} options Swig options object.
85
+ * @return {undefined} This method will throw errors if anything is wrong.
86
+ * @private
87
+ */
88
+ function validateOptions(options) {
89
+ if (!options) {
90
+ return;
91
+ }
92
+
93
+ utils.each(['varControls', 'tagControls', 'cmtControls'], function (key) {
94
+ if (!options.hasOwnProperty(key)) {
95
+ return;
96
+ }
97
+ if (!utils.isArray(options[key]) || options[key].length !== 2) {
98
+ throw new Error('Option "' + key + '" must be an array containing 2 different control strings.');
99
+ }
100
+ if (options[key][0] === options[key][1]) {
101
+ throw new Error('Option "' + key + '" open and close controls must not be the same.');
102
+ }
103
+ utils.each(options[key], function (a, i) {
104
+ if (a.length < 2) {
105
+ throw new Error('Option "' + key + '" ' + ((i) ? 'open ' : 'close ') + 'control must be at least 2 characters. Saw "' + a + '" instead.');
106
+ }
107
+ });
108
+ });
109
+
110
+ if (options.hasOwnProperty('cache')) {
111
+ if (options.cache && options.cache !== 'memory') {
112
+ if (!options.cache.get || !options.cache.set) {
113
+ throw new Error('Invalid cache option ' + JSON.stringify(options.cache) + ' found. Expected "memory" or { get: function (key) { ... }, set: function (key, value) { ... } }.');
114
+ }
115
+ }
116
+ }
117
+ if (options.hasOwnProperty('loader')) {
118
+ if (options.loader) {
119
+ if (!options.loader.load || !options.loader.resolve) {
120
+ throw new Error('Invalid loader option ' + JSON.stringify(options.loader) + ' found. Expected { load: function (pathname, cb) { ... }, resolve: function (to, from) { ... } }.');
121
+ }
122
+ }
123
+ }
124
+
125
+ }
126
+
127
+ /**
128
+ * Set defaults for the base and all new Swig environments.
129
+ *
130
+ * @example
131
+ * swig.setDefaults({ cache: false });
132
+ * // => Disables Cache
133
+ *
134
+ * @example
135
+ * swig.setDefaults({ locals: { now: function () { return new Date(); } }});
136
+ * // => sets a globally accessible method for all template
137
+ * // contexts, allowing you to print the current date
138
+ * // => {{ now()|date('F jS, Y') }}
139
+ *
140
+ * @param {SwigOpts} [options={}] Swig options object.
141
+ * @return {undefined}
142
+ */
143
+ exports.setDefaults = function (options) {
144
+ validateOptions(options);
145
+ defaultInstance.options = utils.extend(defaultInstance.options, options);
146
+ };
147
+
148
+ /**
149
+ * Set the default TimeZone offset for date formatting via the date filter. This is a global setting and will affect all Swig environments, old or new.
150
+ * @param {number} offset Offset from GMT, in minutes.
151
+ * @return {undefined}
152
+ */
153
+ exports.setDefaultTZOffset = function (offset) {
154
+ dateformatter.tzOffset = offset;
155
+ };
156
+
157
+ /**
158
+ * Create a new, separate Swig compile/render environment.
159
+ *
160
+ * @example
161
+ * var swig = require('swig');
162
+ * var myswig = new swig.Swig({varControls: ['<%=', '%>']});
163
+ * myswig.render('Tacos are <%= tacos =>!', { locals: { tacos: 'delicious' }});
164
+ * // => Tacos are delicious!
165
+ * swig.render('Tacos are <%= tacos =>!', { locals: { tacos: 'delicious' }});
166
+ * // => 'Tacos are <%= tacos =>!'
167
+ *
168
+ * @param {SwigOpts} [opts={}] Swig options object.
169
+ * @return {object} New Swig environment.
170
+ */
171
+ exports.Swig = function (opts) {
172
+ validateOptions(opts);
173
+ this.options = utils.extend({}, defaultOptions, opts || {});
174
+ this.cache = {};
175
+ this.extensions = {};
176
+ var self = this,
177
+ tags = _tags,
178
+ filters = _filters;
179
+
180
+ /**
181
+ * Get combined locals context.
182
+ * @param {?SwigOpts} [options] Swig options object.
183
+ * @return {object} Locals context.
184
+ * @private
185
+ */
186
+ function getLocals(options) {
187
+ if (!options || !options.locals) {
188
+ return self.options.locals;
189
+ }
190
+
191
+ return utils.extend({}, self.options.locals, options.locals);
192
+ }
193
+
194
+ /**
195
+ * Determine whether caching is enabled via the options provided and/or defaults
196
+ * @param {SwigOpts} [options={}] Swig Options Object
197
+ * @return {boolean}
198
+ * @private
199
+ */
200
+ function shouldCache(options) {
201
+ options = options || {};
202
+ return (options.hasOwnProperty('cache') && !options.cache) || !self.options.cache;
203
+ }
204
+
205
+ /**
206
+ * Get compiled template from the cache.
207
+ * @param {string} key Name of template.
208
+ * @return {object|undefined} Template function and tokens.
209
+ * @private
210
+ */
211
+ function cacheGet(key, options) {
212
+ if (shouldCache(options)) {
213
+ return;
214
+ }
215
+
216
+ if (self.options.cache === 'memory') {
217
+ return self.cache[key];
218
+ }
219
+
220
+ return self.options.cache.get(key);
221
+ }
222
+
223
+ /**
224
+ * Store a template in the cache.
225
+ * @param {string} key Name of template.
226
+ * @param {object} val Template function and tokens.
227
+ * @return {undefined}
228
+ * @private
229
+ */
230
+ function cacheSet(key, options, val) {
231
+ if (shouldCache(options)) {
232
+ return;
233
+ }
234
+
235
+ if (self.options.cache === 'memory') {
236
+ self.cache[key] = val;
237
+ return;
238
+ }
239
+
240
+ self.options.cache.set(key, val);
241
+ }
242
+
243
+ /**
244
+ * Clears the in-memory template cache.
245
+ *
246
+ * @example
247
+ * swig.invalidateCache();
248
+ *
249
+ * @return {undefined}
250
+ */
251
+ this.invalidateCache = function () {
252
+ if (self.options.cache === 'memory') {
253
+ self.cache = {};
254
+ }
255
+ };
256
+
257
+ /**
258
+ * Add a custom filter for swig variables.
259
+ *
260
+ * @example
261
+ * function replaceMs(input) { return input.replace(/m/g, 'f'); }
262
+ * swig.setFilter('replaceMs', replaceMs);
263
+ * // => {{ "onomatopoeia"|replaceMs }}
264
+ * // => onofatopeia
265
+ *
266
+ * @param {string} name Name of filter, used in templates. <strong>Will</strong> overwrite previously defined filters, if using the same name.
267
+ * @param {function} method Function that acts against the input. See <a href="/docs/filters/#custom">Custom Filters</a> for more information.
268
+ * @return {undefined}
269
+ */
270
+ this.setFilter = function (name, method) {
271
+ if (typeof method !== "function") {
272
+ throw new Error('Filter "' + name + '" is not a valid function.');
273
+ }
274
+ filters[name] = method;
275
+ };
276
+
277
+ /**
278
+ * Add a custom tag. To expose your own extensions to compiled template code, see <code data-language="js">swig.setExtension</code>.
279
+ *
280
+ * For a more in-depth explanation of writing custom tags, see <a href="../extending/#tags">Custom Tags</a>.
281
+ *
282
+ * @example
283
+ * var tacotag = require('./tacotag');
284
+ * swig.setTag('tacos', tacotag.parse, tacotag.compile, tacotag.ends, tacotag.blockLevel);
285
+ * // => {% tacos %}Make this be tacos.{% endtacos %}
286
+ * // => Tacos tacos tacos tacos.
287
+ *
288
+ * @param {string} name Tag name.
289
+ * @param {function} parse Method for parsing tokens.
290
+ * @param {function} compile Method for compiling renderable output.
291
+ * @param {boolean} [ends=false] Whether or not this tag requires an <i>end</i> tag.
292
+ * @param {boolean} [blockLevel=false] If false, this tag will not be compiled outside of <code>block</code> tags when extending a parent template.
293
+ * @return {undefined}
294
+ */
295
+ this.setTag = function (name, parse, compile, ends, blockLevel) {
296
+ if (typeof parse !== 'function') {
297
+ throw new Error('Tag "' + name + '" parse method is not a valid function.');
298
+ }
299
+
300
+ if (typeof compile !== 'function') {
301
+ throw new Error('Tag "' + name + '" compile method is not a valid function.');
302
+ }
303
+
304
+ tags[name] = {
305
+ parse: parse,
306
+ compile: compile,
307
+ ends: ends || false,
308
+ block: !!blockLevel
309
+ };
310
+ };
311
+
312
+ /**
313
+ * Add extensions for custom tags. This allows any custom tag to access a globally available methods via a special globally available object, <var>_ext</var>, in templates.
314
+ *
315
+ * @example
316
+ * swig.setExtension('trans', function (v) { return translate(v); });
317
+ * function compileTrans(compiler, args, content, parent, options) {
318
+ * return '_output += _ext.trans(' + args[0] + ');'
319
+ * };
320
+ * swig.setTag('trans', parseTrans, compileTrans, true);
321
+ *
322
+ * @param {string} name Key name of the extension. Accessed via <code data-language="js">_ext[name]</code>.
323
+ * @param {*} object The method, value, or object that should be available via the given name.
324
+ * @return {undefined}
325
+ */
326
+ this.setExtension = function (name, object) {
327
+ self.extensions[name] = object;
328
+ };
329
+
330
+ /**
331
+ * Parse a given source string into tokens.
332
+ *
333
+ * @param {string} source Swig template source.
334
+ * @param {SwigOpts} [options={}] Swig options object.
335
+ * @return {object} parsed Template tokens object.
336
+ * @private
337
+ */
338
+ this.parse = function (source, options) {
339
+ validateOptions(options);
340
+
341
+ var locals = getLocals(options),
342
+ opts = {},
343
+ k;
344
+
345
+ for (k in options) {
346
+ if (options.hasOwnProperty(k) && k !== 'locals') {
347
+ opts[k] = options[k];
348
+ }
349
+ }
350
+
351
+ options = utils.extend({}, self.options, opts);
352
+ options.locals = locals;
353
+
354
+ return parser.parse(this, source, options, tags, filters);
355
+ };
356
+
357
+ /**
358
+ * Parse a given file into tokens.
359
+ *
360
+ * @param {string} pathname Full path to file to parse.
361
+ * @param {SwigOpts} [options={}] Swig options object.
362
+ * @return {object} parsed Template tokens object.
363
+ * @private
364
+ */
365
+ this.parseFile = function (pathname, options) {
366
+ var src;
367
+
368
+ if (!options) {
369
+ options = {};
370
+ }
371
+
372
+ pathname = self.options.loader.resolve(pathname, options.resolveFrom);
373
+
374
+ src = self.options.loader.load(pathname);
375
+
376
+ if (!options.filename) {
377
+ options = utils.extend({ filename: pathname }, options);
378
+ }
379
+
380
+ return self.parse(src, options);
381
+ };
382
+
383
+ /**
384
+ * Re-Map blocks within a list of tokens to the template's block objects.
385
+ * @param {array} tokens List of tokens for the parent object.
386
+ * @param {object} template Current template that needs to be mapped to the parent's block and token list.
387
+ * @return {array}
388
+ * @private
389
+ */
390
+ function remapBlocks(blocks, tokens) {
391
+ return utils.map(tokens, function (token) {
392
+ var args = token.args ? token.args.join('') : '';
393
+ if (token.name === 'block' && blocks[args]) {
394
+ token = blocks[args];
395
+ }
396
+ if (token.content && token.content.length) {
397
+ token.content = remapBlocks(blocks, token.content);
398
+ }
399
+ return token;
400
+ });
401
+ }
402
+
403
+ /**
404
+ * Import block-level tags to the token list that are not actual block tags.
405
+ * @param {array} blocks List of block-level tags.
406
+ * @param {array} tokens List of tokens to render.
407
+ * @return {undefined}
408
+ * @private
409
+ */
410
+ function importNonBlocks(blocks, tokens) {
411
+ var temp = [];
412
+ utils.each(blocks, function (block) { temp.push(block); });
413
+ utils.each(temp.reverse(), function (block) {
414
+ if (block.name !== 'block') {
415
+ tokens.unshift(block);
416
+ }
417
+ });
418
+ }
419
+
420
+ /**
421
+ * Recursively compile and get parents of given parsed token object.
422
+ *
423
+ * @param {object} tokens Parsed tokens from template.
424
+ * @param {SwigOpts} [options={}] Swig options object.
425
+ * @return {object} Parsed tokens from parent templates.
426
+ * @private
427
+ */
428
+ function getParents(tokens, options) {
429
+ var parentName = tokens.parent,
430
+ parentFiles = [],
431
+ parents = [],
432
+ parentFile,
433
+ parent,
434
+ l;
435
+
436
+ while (parentName) {
437
+ if (!options || !options.filename) {
438
+ throw new Error('Cannot extend "' + parentName + '" because current template has no filename.');
439
+ }
440
+
441
+ parentFile = parentFile || options.filename;
442
+ parentFile = self.options.loader.resolve(parentName, parentFile);
443
+ parent = cacheGet(parentFile, options) || self.parseFile(parentFile, utils.extend({}, options, { filename: parentFile }));
444
+ parentName = parent.parent;
445
+
446
+ if (parentFiles.indexOf(parentFile) !== -1) {
447
+ throw new Error('Illegal circular extends of "' + parentFile + '".');
448
+ }
449
+ parentFiles.push(parentFile);
450
+
451
+ parents.push(parent);
452
+ }
453
+
454
+ // Remap each parents'(1) blocks onto its own parent(2), receiving the full token list for rendering the original parent(1) on its own.
455
+ l = parents.length;
456
+ for (l = parents.length - 2; l >= 0; l -= 1) {
457
+ parents[l].tokens = remapBlocks(parents[l].blocks, parents[l + 1].tokens);
458
+ importNonBlocks(parents[l].blocks, parents[l].tokens);
459
+ }
460
+
461
+ return parents;
462
+ }
463
+
464
+ /**
465
+ * Pre-compile a source string into a cache-able template function.
466
+ *
467
+ * @example
468
+ * swig.precompile('{{ tacos }}');
469
+ * // => {
470
+ * // tpl: function (_swig, _locals, _filters, _utils, _fn) { ... },
471
+ * // tokens: {
472
+ * // name: undefined,
473
+ * // parent: null,
474
+ * // tokens: [...],
475
+ * // blocks: {}
476
+ * // }
477
+ * // }
478
+ *
479
+ * In order to render a pre-compiled template, you must have access to filters and utils from Swig. <var>efn</var> is simply an empty function that does nothing.
480
+ *
481
+ * @param {string} source Swig template source string.
482
+ * @param {SwigOpts} [options={}] Swig options object.
483
+ * @return {object} Renderable function and tokens object.
484
+ */
485
+ this.precompile = function (source, options) {
486
+ var tokens = self.parse(source, options),
487
+ parents = getParents(tokens, options),
488
+ tpl,
489
+ err;
490
+
491
+ if (parents.length) {
492
+ // Remap the templates first-parent's tokens using this template's blocks.
493
+ tokens.tokens = remapBlocks(tokens.blocks, parents[0].tokens);
494
+ importNonBlocks(tokens.blocks, tokens.tokens);
495
+ }
496
+
497
+ try {
498
+ tpl = new Function('_swig', '_ctx', '_filters', '_utils', '_fn',
499
+ ' var _ext = _swig.extensions,\n' +
500
+ ' _output = "";\n' +
501
+ parser.compile(tokens, parents, options) + '\n' +
502
+ ' return _output;\n'
503
+ );
504
+ } catch (e) {
505
+ utils.throwError(e, null, options.filename);
506
+ }
507
+
508
+ return { tpl: tpl, tokens: tokens };
509
+ };
510
+
511
+ /**
512
+ * Compile and render a template string for final output.
513
+ *
514
+ * When rendering a source string, a file path should be specified in the options object in order for <var>extends</var>, <var>include</var>, and <var>import</var> to work properly. Do this by adding <code data-language="js">{ filename: '/absolute/path/to/mytpl.html' }</code> to the options argument.
515
+ *
516
+ * @example
517
+ * swig.render('{{ tacos }}', { locals: { tacos: 'Tacos!!!!' }});
518
+ * // => Tacos!!!!
519
+ *
520
+ * @param {string} source Swig template source string.
521
+ * @param {SwigOpts} [options={}] Swig options object.
522
+ * @return {string} Rendered output.
523
+ */
524
+ this.render = function (source, options) {
525
+ return self.compile(source, options)();
526
+ };
527
+
528
+ /**
529
+ * Compile and render a template file for final output. This is most useful for libraries like Express.js.
530
+ *
531
+ * @example
532
+ * swig.renderFile('./template.html', {}, function (err, output) {
533
+ * if (err) {
534
+ * throw err;
535
+ * }
536
+ * console.log(output);
537
+ * });
538
+ *
539
+ * @example
540
+ * swig.renderFile('./template.html', {});
541
+ * // => output
542
+ *
543
+ * @param {string} pathName File location.
544
+ * @param {object} [locals={}] Template variable context.
545
+ * @param {Function} [cb] Asyncronous callback function. If not provided, <var>compileFile</var> will run syncronously.
546
+ * @return {string} Rendered output.
547
+ */
548
+ this.renderFile = function (pathName, locals, cb) {
549
+ if (cb) {
550
+ self.compileFile(pathName, {}, function (err, fn) {
551
+ var result;
552
+
553
+ if (err) {
554
+ cb(err);
555
+ return;
556
+ }
557
+
558
+ try {
559
+ result = fn(locals);
560
+ } catch (err2) {
561
+ cb(err2);
562
+ return;
563
+ }
564
+
565
+ cb(null, result);
566
+ });
567
+ return;
568
+ }
569
+
570
+ return self.compileFile(pathName)(locals);
571
+ };
572
+
573
+ /**
574
+ * Compile string source into a renderable template function.
575
+ *
576
+ * @example
577
+ * var tpl = swig.compile('{{ tacos }}');
578
+ * // => {
579
+ * // [Function: compiled]
580
+ * // parent: null,
581
+ * // tokens: [{ compile: [Function] }],
582
+ * // blocks: {}
583
+ * // }
584
+ * tpl({ tacos: 'Tacos!!!!' });
585
+ * // => Tacos!!!!
586
+ *
587
+ * When compiling a source string, a file path should be specified in the options object in order for <var>extends</var>, <var>include</var>, and <var>import</var> to work properly. Do this by adding <code data-language="js">{ filename: '/absolute/path/to/mytpl.html' }</code> to the options argument.
588
+ *
589
+ * @param {string} source Swig template source string.
590
+ * @param {SwigOpts} [options={}] Swig options object.
591
+ * @return {function} Renderable function with keys for parent, blocks, and tokens.
592
+ */
593
+ this.compile = function (source, options) {
594
+ var key = options ? options.filename : null,
595
+ cached = key ? cacheGet(key, options) : null,
596
+ context,
597
+ contextLength,
598
+ pre;
599
+
600
+ if (cached) {
601
+ return cached;
602
+ }
603
+
604
+ context = getLocals(options);
605
+ contextLength = utils.keys(context).length;
606
+ pre = this.precompile(source, options);
607
+
608
+ function compiled(locals) {
609
+ var lcls;
610
+ if (locals && contextLength) {
611
+ lcls = utils.extend({}, context, locals);
612
+ } else if (locals && !contextLength) {
613
+ lcls = locals;
614
+ } else if (!locals && contextLength) {
615
+ lcls = context;
616
+ } else {
617
+ lcls = {};
618
+ }
619
+ return pre.tpl(self, lcls, filters, utils, efn);
620
+ }
621
+
622
+ utils.extend(compiled, pre.tokens);
623
+
624
+ if (key) {
625
+ cacheSet(key, options, compiled);
626
+ }
627
+
628
+ return compiled;
629
+ };
630
+
631
+ /**
632
+ * Compile a source file into a renderable template function.
633
+ *
634
+ * @example
635
+ * var tpl = swig.compileFile('./mytpl.html');
636
+ * // => {
637
+ * // [Function: compiled]
638
+ * // parent: null,
639
+ * // tokens: [{ compile: [Function] }],
640
+ * // blocks: {}
641
+ * // }
642
+ * tpl({ tacos: 'Tacos!!!!' });
643
+ * // => Tacos!!!!
644
+ *
645
+ * @example
646
+ * swig.compileFile('/myfile.txt', { varControls: ['<%=', '=%>'], tagControls: ['<%', '%>']});
647
+ * // => will compile 'myfile.txt' using the var and tag controls as specified.
648
+ *
649
+ * @param {string} pathname File location.
650
+ * @param {SwigOpts} [options={}] Swig options object.
651
+ * @param {Function} [cb] Asyncronous callback function. If not provided, <var>compileFile</var> will run syncronously.
652
+ * @return {function} Renderable function with keys for parent, blocks, and tokens.
653
+ */
654
+ this.compileFile = function (pathname, options, cb) {
655
+ var src, cached;
656
+
657
+ if (!options) {
658
+ options = {};
659
+ }
660
+
661
+ pathname = self.options.loader.resolve(pathname, options.resolveFrom);
662
+ if (!options.filename) {
663
+ options = utils.extend({ filename: pathname }, options);
664
+ }
665
+ cached = cacheGet(pathname, options);
666
+
667
+ if (cached) {
668
+ if (cb) {
669
+ cb(null, cached);
670
+ return;
671
+ }
672
+ return cached;
673
+ }
674
+
675
+ if (cb) {
676
+ self.options.loader.load(pathname, function (err, src) {
677
+ if (err) {
678
+ cb(err);
679
+ return;
680
+ }
681
+ var compiled;
682
+
683
+ try {
684
+ compiled = self.compile(src, options);
685
+ } catch (err2) {
686
+ cb(err2);
687
+ return;
688
+ }
689
+
690
+ cb(err, compiled);
691
+ });
692
+ return;
693
+ }
694
+
695
+ src = self.options.loader.load(pathname);
696
+ return self.compile(src, options);
697
+ };
698
+
699
+ /**
700
+ * Run a pre-compiled template function. This is most useful in the browser when you've pre-compiled your templates with the Swig command-line tool.
701
+ *
702
+ * @example
703
+ * $ swig compile ./mytpl.html --wrap-start="var mytpl = " > mytpl.js
704
+ * @example
705
+ * <script src="mytpl.js"></script>
706
+ * <script>
707
+ * swig.run(mytpl, {});
708
+ * // => "rendered template..."
709
+ * </script>
710
+ *
711
+ * @param {function} tpl Pre-compiled Swig template function. Use the Swig CLI to compile your templates.
712
+ * @param {object} [locals={}] Template variable context.
713
+ * @param {string} [filepath] Filename used for caching the template.
714
+ * @return {string} Rendered output.
715
+ */
716
+ this.run = function (tpl, locals, filepath) {
717
+ var context = getLocals({ locals: locals });
718
+ if (filepath) {
719
+ cacheSet(filepath, {}, tpl);
720
+ }
721
+ return tpl(self, context, filters, utils, efn);
722
+ };
723
+ };
724
+
725
+ /*!
726
+ * Export methods publicly
727
+ */
728
+ defaultInstance = new exports.Swig();
729
+ exports.setFilter = defaultInstance.setFilter;
730
+ exports.setTag = defaultInstance.setTag;
731
+ exports.setExtension = defaultInstance.setExtension;
732
+ exports.parseFile = defaultInstance.parseFile;
733
+ exports.precompile = defaultInstance.precompile;
734
+ exports.compile = defaultInstance.compile;
735
+ exports.compileFile = defaultInstance.compileFile;
736
+ exports.render = defaultInstance.render;
737
+ exports.renderFile = defaultInstance.renderFile;
738
+ exports.run = defaultInstance.run;
739
+ exports.invalidateCache = defaultInstance.invalidateCache;
740
+ exports.loaders = loaders;