gina 0.1.6-alpha.9 → 0.1.6-alpha.90

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 (390) hide show
  1. package/LICENSE +1 -1
  2. package/README-4Contributors.md +14 -8
  3. package/README.md +4 -4
  4. package/bin/cli +14 -0
  5. package/bin/gina +29 -1
  6. package/framework/{v0.1.6-alpha.9/lib/inherits → v0.1.6-alpha.90}/LICENSE +1 -1
  7. package/framework/v0.1.6-alpha.90/VERSION +1 -0
  8. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/plugin/README.md +1 -0
  9. package/framework/v0.1.6-alpha.90/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +1 -0
  10. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/plugin/dist/vendor/gina/html/toolbar.html +1 -1
  11. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/plugin/dist/vendor/gina/js/gina.js +582 -217
  12. package/framework/v0.1.6-alpha.90/core/asset/plugin/dist/vendor/gina/js/gina.min.js +777 -0
  13. package/framework/v0.1.6-alpha.90/core/asset/plugin/dist/vendor/gina/js/gina.min.js.map +8 -0
  14. package/framework/v0.1.6-alpha.90/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +8 -0
  15. package/framework/v0.1.6-alpha.90/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.map +8 -0
  16. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/config.js +157 -76
  17. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/index.js +92 -22
  18. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/connector.v4.js +28 -22
  19. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/controller/controller.js +419 -109
  20. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/controller/index.js +2 -2
  21. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/.github/workflows/ci.yml +24 -0
  22. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/.github/workflows/lint.yml +23 -0
  23. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/README.md +191 -0
  24. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-big.js +149 -0
  25. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/bench/bench-multipart-fields-100mb-small.js +143 -0
  26. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-big.js +154 -0
  27. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/bench/bench-multipart-files-100mb-small.js +148 -0
  28. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-100pairs-small.js +101 -0
  29. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/bench/bench-urlencoded-fields-900pairs-small-alt.js +84 -0
  30. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/lib/index.js +57 -0
  31. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/lib/types/multipart.js +680 -0
  32. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/lib/types/urlencoded.js +350 -0
  33. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/lib/utils.js +596 -0
  34. package/framework/v0.1.6-alpha.90/core/deps/busboy-1.6.0/package.json +22 -0
  35. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/.travis.yml +4 -0
  36. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/LICENSE +21 -0
  37. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/bool.js +10 -0
  38. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/boolean_double.js +7 -0
  39. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/boolean_single.js +7 -0
  40. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/default_hash.js +8 -0
  41. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/default_singles.js +7 -0
  42. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/divide.js +8 -0
  43. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/line_count.js +20 -0
  44. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/line_count_options.js +29 -0
  45. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/line_count_wrap.js +29 -0
  46. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/nonopt.js +4 -0
  47. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/reflect.js +2 -0
  48. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/short.js +3 -0
  49. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/string.js +11 -0
  50. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/usage-options.js +19 -0
  51. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/example/xup.js +10 -0
  52. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/index.js +343 -0
  53. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/package.json +31 -0
  54. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/package.json.dist +39 -0
  55. package/framework/v0.1.6-alpha.90/core/deps/optimist-0.6.1/readme.markdown +513 -0
  56. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/HISTORY.md +498 -0
  57. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/LICENSE +7 -0
  58. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/README.md +88 -0
  59. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/bin/swig.js +161 -0
  60. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/bin/swig.js.dist +161 -0
  61. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/dist/swig.min.js +7 -0
  62. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/dist/swig.min.js.map +8 -0
  63. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/index.js +1 -0
  64. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/dateformatter.js +198 -0
  65. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/filters.js +630 -0
  66. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/lexer.js +306 -0
  67. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/loaders/filesystem.js +59 -0
  68. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/loaders/index.js +53 -0
  69. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/loaders/memory.js +63 -0
  70. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/parser.js +744 -0
  71. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/swig.js +740 -0
  72. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/autoescape.js +37 -0
  73. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/block.js +25 -0
  74. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/else.js +25 -0
  75. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/elseif.js +28 -0
  76. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/extends.js +19 -0
  77. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/filter.js +68 -0
  78. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/for.js +130 -0
  79. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/if.js +86 -0
  80. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/import.js +91 -0
  81. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/include.js +100 -0
  82. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/index.js +16 -0
  83. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/macro.js +79 -0
  84. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/parent.js +51 -0
  85. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/raw.js +23 -0
  86. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/set.js +109 -0
  87. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/tags/spaceless.js +42 -0
  88. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/lib/utils.js +184 -0
  89. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/package.json +57 -0
  90. package/framework/v0.1.6-alpha.90/core/deps/swig-1.4.2/package.json.dist +61 -0
  91. package/framework/v0.1.6-alpha.90/core/deps/swig-client/swig.js +5031 -0
  92. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/dev/index.js +1 -1
  93. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/dev/lib/factory.js +1 -1
  94. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/gna.js +101 -22
  95. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/index.js +3 -3
  96. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/src/make.js +1 -1
  97. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/mime.types +1 -0
  98. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/model/entity.js +5 -5
  99. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/model/index.js +30 -26
  100. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/model/template/entityFactory.js +1 -1
  101. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/model/template/index.js +1 -1
  102. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/index.js +3 -3
  103. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/file/package.json +2 -2
  104. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/intl/package.json +2 -2
  105. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/storage/package.json +2 -2
  106. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/validator/package.json +2 -2
  107. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/validator/src/form-validator.js +39 -27
  108. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/validator/src/main.js +360 -85
  109. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/router.js +92 -47
  110. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/server.isaac.js +86 -10
  111. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/server.js +172 -86
  112. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/status.codes +1 -11
  113. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/controllers/setup.js +2 -2
  114. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/command/gina.tpl +1 -1
  115. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/conf/env.json +2 -0
  116. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/conf/templates.json +4 -2
  117. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/console.js +1 -1
  118. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/context.js +29 -12
  119. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/data/package.json +2 -2
  120. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/data/src/main.js +1 -1
  121. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/dateFormat.js +1 -1
  122. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/index.js +1 -1
  123. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/json/package.json +2 -2
  124. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/json/src/main.js +6 -4
  125. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/path.js +31 -15
  126. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/plugins/package.json +2 -2
  127. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/plugins/src/api-error.js +2 -2
  128. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/plugins/src/main.js +1 -1
  129. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/text.js +1 -1
  130. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/archiver/package.json +2 -2
  131. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/archiver/src/main.js +11 -11
  132. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/add.js +2 -1
  133. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/start.js +21 -8
  134. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/get.js +1 -1
  135. package/framework/v0.1.6-alpha.90/lib/cmd/env/help.js +30 -0
  136. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/build.js +1 -1
  137. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/init.js +18 -0
  138. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/link-node-modules.js +2 -3
  139. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/link.js +1 -0
  140. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/tail.js +28 -11
  141. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/version.js +15 -1
  142. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/helper.js +6 -2
  143. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/index.js +1 -1
  144. package/framework/v0.1.6-alpha.90/lib/cmd/minion/help.txt +18 -0
  145. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/add.js +3 -2
  146. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/build.js +4 -4
  147. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/list.js +1 -1
  148. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/protocol/list.js +71 -50
  149. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/collection/package.json +2 -2
  150. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/collection/src/main.js +20 -14
  151. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/config.js +1 -1
  152. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cron/package.json +2 -2
  153. package/framework/v0.1.6-alpha.90/lib/domain/dist/2025-03-14_13-41-20_UTC.dat +15754 -0
  154. package/framework/v0.1.6-alpha.90/lib/domain/dist/public_suffix_list.dat +15754 -0
  155. package/framework/v0.1.6-alpha.90/lib/domain/exemples/backend.js +12 -0
  156. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/domain/package.json +2 -2
  157. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/domain/src/main.js +20 -6
  158. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/generator/index.js +1 -1
  159. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/index.js +1 -1
  160. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90/lib/inherits}/LICENSE +1 -1
  161. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/package.json +2 -2
  162. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/src/main.js +1 -1
  163. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/package.json +2 -2
  164. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/mq/listener.js +10 -2
  165. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/helper.js +1 -1
  166. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/main.js +1 -1
  167. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/math/index.js +1 -1
  168. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/merge/package.json +2 -2
  169. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/model.js +3 -3
  170. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/proc.js +9 -1
  171. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/routing/package.json +2 -2
  172. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/routing/src/main.js +72 -25
  173. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/session-store.js +3 -3
  174. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/swig-filters/package.json +2 -2
  175. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/swig-filters/src/main.js +70 -15
  176. package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/validator.js +2 -2
  177. package/framework/v0.1.6-alpha.90/package.json +11 -0
  178. package/package.json +3 -3
  179. package/resources/package.json.template +1 -1
  180. package/script/post_install.js +1 -1
  181. package/script/pre_install.js +1 -1
  182. package/utils/helper.js +24 -0
  183. package/framework/v0.1.6-alpha.9/VERSION +0 -1
  184. package/framework/v0.1.6-alpha.9/core/asset/plugin/dist/vendor/gina/css/gina.min.css.map +0 -1
  185. package/framework/v0.1.6-alpha.9/core/asset/plugin/dist/vendor/gina/js/gina.min.js +0 -766
  186. package/framework/v0.1.6-alpha.9/core/asset/plugin/dist/vendor/gina/js/gina.min.js.map +0 -8
  187. package/framework/v0.1.6-alpha.9/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -7
  188. package/framework/v0.1.6-alpha.9/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.map +0 -8
  189. package/framework/v0.1.6-alpha.9/core/deps/busboy/.travis.yml +0 -17
  190. package/framework/v0.1.6-alpha.9/core/deps/busboy/README.md +0 -225
  191. package/framework/v0.1.6-alpha.9/core/deps/busboy/deps/encoding/encoding-indexes.js +0 -73
  192. package/framework/v0.1.6-alpha.9/core/deps/busboy/deps/encoding/encoding.js +0 -2391
  193. package/framework/v0.1.6-alpha.9/core/deps/busboy/lib/main.js +0 -89
  194. package/framework/v0.1.6-alpha.9/core/deps/busboy/lib/types/multipart.js +0 -328
  195. package/framework/v0.1.6-alpha.9/core/deps/busboy/lib/types/urlencoded.js +0 -214
  196. package/framework/v0.1.6-alpha.9/core/deps/busboy/lib/utils.js +0 -191
  197. package/framework/v0.1.6-alpha.9/core/deps/busboy/package.json +0 -69
  198. package/framework/v0.1.6-alpha.9/lib/domain/dist/public_suffix_list.dat +0 -14186
  199. package/framework/v0.1.6-alpha.9/lib/domain/exemples/backend.js +0 -0
  200. package/framework/v0.1.6-alpha.9/package.json +0 -14
  201. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/AUTHORS +0 -0
  202. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/html/nolayout.html +0 -0
  203. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/html/static.html +0 -0
  204. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/img/android-chrome-192x192.png +0 -0
  205. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/img/android-chrome-512x512.png +0 -0
  206. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/img/apple-touch-icon.png +0 -0
  207. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/img/favicon-16x16.png +0 -0
  208. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/img/favicon-32x32.png +0 -0
  209. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/img/favicon.ico +0 -0
  210. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  211. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/asset/plugin/uuid.json +0 -0
  212. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/connector.js +0 -0
  213. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/connector.v2.js +0 -0
  214. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  215. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/n1ql.js +0 -0
  216. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/session-store.js +0 -0
  217. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/session-store.v2.js +0 -0
  218. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  219. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  220. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/controller/controller.framework.js +0 -0
  221. /package/framework/{v0.1.6-alpha.9/core/deps/busboy → v0.1.6-alpha.90/core/deps/busboy-1.6.0}/LICENSE +0 -0
  222. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/deps/swig-client/swig-2.0.0.min.js +0 -0
  223. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/dev/lib/class.js +0 -0
  224. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/dev/lib/tools.js +0 -0
  225. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/README.md +0 -0
  226. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/currency.json +0 -0
  227. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/dist/language/en.json +0 -0
  228. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/dist/language/fr.json +0 -0
  229. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/dist/region/en.json +0 -0
  230. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/dist/region/fr.json +0 -0
  231. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/src/resources/currency.csv +0 -0
  232. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/src/resources/region.csv +0 -0
  233. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/locales/src/resources/region.mapping.json +0 -0
  234. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/README.md +0 -0
  235. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/file/README.md +0 -0
  236. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/file/build.json +0 -0
  237. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/intl/README.md +0 -0
  238. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/intl/build.json +0 -0
  239. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/intl/src/main.js +0 -0
  240. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/storage/README.md +0 -0
  241. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/storage/build.json +0 -0
  242. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/storage/src/main.js +0 -0
  243. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/validator/README.md +0 -0
  244. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/plugins/lib/validator/build.json +0 -0
  245. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/server.express.js +0 -0
  246. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/_gitignore +0 -0
  247. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/config/app.json +0 -0
  248. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/config/routing.json +0 -0
  249. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/config/settings.json +0 -0
  250. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  251. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/config/templates.json +0 -0
  252. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  253. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  254. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle/index.js +0 -0
  255. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  256. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  257. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  258. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  259. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  260. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_public/readme.md +0 -0
  261. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  262. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  263. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  264. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  265. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  266. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/command/gina.bat.tpl +0 -0
  267. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/conf/manifest.json +0 -0
  268. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/conf/package.json +0 -0
  269. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/conf/settings.json +0 -0
  270. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/conf/statics.json +0 -0
  271. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/error/client/json/401.json +0 -0
  272. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/error/client/json/403.json +0 -0
  273. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/error/client/json/404.json +0 -0
  274. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/error/server/html/50x.html +0 -0
  275. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/error/server/json/500.json +0 -0
  276. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/error/server/json/503.json +0 -0
  277. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/core/template/extensions/logger/config.json +0 -0
  278. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/data/LICENSE +0 -0
  279. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/data/README.md +0 -0
  280. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/json/LICENSE +0 -0
  281. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/json/README.md +0 -0
  282. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/plugins/README.md +0 -0
  283. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/prototypes.js +0 -0
  284. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/helpers/task.js +0 -0
  285. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/archiver/README.md +0 -0
  286. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/archiver/build.json +0 -0
  287. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/archiver/src/dep/jszip.min.js +0 -0
  288. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/aliases.json +0 -0
  289. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/arguments.json +0 -0
  290. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/copy.js +0 -0
  291. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/cp.js +0 -0
  292. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/help.js +0 -0
  293. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/help.txt +0 -0
  294. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/list.js +0 -0
  295. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/remove.js +0 -0
  296. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/rename.js +0 -0
  297. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/restart.js +0 -0
  298. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/rm.js +0 -0
  299. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/status.js +0 -0
  300. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/bundle/stop.js +0 -0
  301. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/add.js +0 -0
  302. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/help.txt +0 -0
  303. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/link-dev.js +0 -0
  304. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/list.js +0 -0
  305. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/remove.js +0 -0
  306. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/rm.js +0 -0
  307. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/set.js +0 -0
  308. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/unset.js +0 -0
  309. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/env/use.js +0 -0
  310. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/dot.js +0 -0
  311. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/get.js +0 -0
  312. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/help.js +0 -0
  313. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/help.txt +0 -0
  314. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/msg.json +0 -0
  315. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/open.js +0 -0
  316. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/restart.js +0 -0
  317. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/set.js +0 -0
  318. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/start.js +0 -0
  319. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/status.js +0 -0
  320. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/stop.js +0 -0
  321. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/framework/update.js +0 -0
  322. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/gina-dev.1.md +0 -0
  323. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/gina-framework.1.md +0 -0
  324. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/gina.1.md +0 -0
  325. /package/framework/{v0.1.6-alpha.9/lib/cmd/env → v0.1.6-alpha.90/lib/cmd/minion}/help.js +0 -0
  326. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/msg.json +0 -0
  327. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/port/help.js +0 -0
  328. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/port/help.txt +0 -0
  329. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/port/inc/scan.js +0 -0
  330. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/port/list.js +0 -0
  331. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/port/reset.js +0 -0
  332. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/port/set.js +0 -0
  333. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/arguments.json +0 -0
  334. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/help.js +0 -0
  335. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/help.txt +0 -0
  336. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/import.js +0 -0
  337. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/move.js +0 -0
  338. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/remove.js +0 -0
  339. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/rename.js +0 -0
  340. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/restart.js +0 -0
  341. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/rm.js +0 -0
  342. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/start.js +0 -0
  343. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/status.js +0 -0
  344. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/project/stop.js +0 -0
  345. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/protocol/help.js +0 -0
  346. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/protocol/help.txt +0 -0
  347. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/protocol/set.js +0 -0
  348. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/add.js +0 -0
  349. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/help.js +0 -0
  350. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/help.txt +0 -0
  351. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/link-local.js +0 -0
  352. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/link-production.js +0 -0
  353. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/list.js +0 -0
  354. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/remove.js +0 -0
  355. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/rm.js +0 -0
  356. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/scope/use.js +0 -0
  357. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cmd/view/add.js +0 -0
  358. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/collection/README.md +0 -0
  359. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/collection/build.json +0 -0
  360. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cron/README.md +0 -0
  361. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/cron/src/main.js +0 -0
  362. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/domain/LICENSE +0 -0
  363. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/domain/README.md +0 -0
  364. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/domain/exemples/frontend.html +0 -0
  365. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/README.md +0 -0
  366. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/example/inheriting_eventemitter.js +0 -0
  367. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/example/protected_inheritance.js +0 -0
  368. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/example/simple_inheritance.js +0 -0
  369. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/inherits/example/super_attribute_overridden_by_child_on_init.js +0 -0
  370. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/README.md +0 -0
  371. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/default/index.js +0 -0
  372. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/file/index.js +0 -0
  373. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/file/lib/logrotator/README.md +0 -0
  374. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/file/lib/logrotator/index.js +0 -0
  375. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/mq/index.js +0 -0
  376. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/logger/src/containers/mq/speaker.js +0 -0
  377. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/merge/README.md +0 -0
  378. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/merge/example/merge.js +0 -0
  379. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/merge/example/merge_2_literal objects.js +0 -0
  380. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/merge/example/merge_and_preserve_first.js +0 -0
  381. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/merge/src/main.js +0 -0
  382. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/routing/README.md +0 -0
  383. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/routing/build.json +0 -0
  384. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/shell.js +0 -0
  385. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/swig-filters/README.md +0 -0
  386. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/url/README.md +0 -0
  387. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/url/index.js +0 -0
  388. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/url/mocks.json +0 -0
  389. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/url/routing.json +0 -0
  390. /package/framework/{v0.1.6-alpha.9 → v0.1.6-alpha.90}/lib/url/test.js +0 -0
@@ -0,0 +1,744 @@
1
+ var utils = require('./utils'),
2
+ lexer = require('./lexer');
3
+
4
+ var _t = lexer.types,
5
+ _reserved = ['break', 'case', 'catch', 'continue', 'debugger', 'default', 'delete', 'do', 'else', 'finally', 'for', 'function', 'if', 'in', 'instanceof', 'new', 'return', 'switch', 'this', 'throw', 'try', 'typeof', 'var', 'void', 'while', 'with'];
6
+
7
+
8
+ /**
9
+ * Filters are simply functions that perform transformations on their first input argument.
10
+ * Filters are run at render time, so they may not directly modify the compiled template structure in any way.
11
+ * All of Swig's built-in filters are written in this same way. For more examples, reference the `filters.js` file in Swig's source.
12
+ *
13
+ * To disable auto-escaping on a custom filter, simply add a property to the filter method `safe = true;` and the output from this will not be escaped, no matter what the global settings are for Swig.
14
+ *
15
+ * @typedef {function} Filter
16
+ *
17
+ * @example
18
+ * // This filter will return 'bazbop' if the idx on the input is not 'foobar'
19
+ * swig.setFilter('foobar', function (input, idx) {
20
+ * return input[idx] === 'foobar' ? input[idx] : 'bazbop';
21
+ * });
22
+ * // myvar = ['foo', 'bar', 'baz', 'bop'];
23
+ * // => {{ myvar|foobar(3) }}
24
+ * // Since myvar[3] !== 'foobar', we render:
25
+ * // => bazbop
26
+ *
27
+ * @example
28
+ * // This filter will disable auto-escaping on its output:
29
+ * function bazbop (input) { return input; }
30
+ * bazbop.safe = true;
31
+ * swig.setFilter('bazbop', bazbop);
32
+ * // => {{ "<p>"|bazbop }}
33
+ * // => <p>
34
+ *
35
+ * @param {*} input Input argument, automatically sent from Swig's built-in parser.
36
+ * @param {...*} [args] All other arguments are defined by the Filter author.
37
+ * @return {*}
38
+ */
39
+
40
+ /*!
41
+ * Makes a string safe for a regular expression.
42
+ * @param {string} str
43
+ * @return {string}
44
+ * @private
45
+ */
46
+ function escapeRegExp(str) {
47
+ return str.replace(/[\-\/\\\^$*+?.()|\[\]{}]/g, '\\$&');
48
+ }
49
+
50
+ /**
51
+ * Parse strings of variables and tags into tokens for future compilation.
52
+ * @class
53
+ * @param {array} tokens Pre-split tokens read by the Lexer.
54
+ * @param {object} filters Keyed object of filters that may be applied to variables.
55
+ * @param {boolean} autoescape Whether or not this should be autoescaped.
56
+ * @param {number} line Beginning line number for the first token.
57
+ * @param {string} [filename] Name of the file being parsed.
58
+ * @private
59
+ */
60
+ function TokenParser(tokens, filters, autoescape, line, filename) {
61
+ this.out = [];
62
+ this.state = [];
63
+ this.filterApplyIdx = [];
64
+ this._parsers = {};
65
+ this.line = line;
66
+ this.filename = filename;
67
+ this.filters = filters;
68
+ this.escape = autoescape;
69
+
70
+ this.parse = function () {
71
+ var self = this;
72
+
73
+ if (self._parsers.start) {
74
+ self._parsers.start.call(self);
75
+ }
76
+ utils.each(tokens, function (token, i) {
77
+ var prevToken = tokens[i - 1];
78
+ self.isLast = (i === tokens.length - 1);
79
+ if (prevToken) {
80
+ while (prevToken.type === _t.WHITESPACE) {
81
+ i -= 1;
82
+ prevToken = tokens[i - 1];
83
+ }
84
+ }
85
+ self.prevToken = prevToken;
86
+ self.parseToken(token);
87
+ });
88
+ if (self._parsers.end) {
89
+ self._parsers.end.call(self);
90
+ }
91
+
92
+ if (self.escape) {
93
+ self.filterApplyIdx = [0];
94
+ if (typeof self.escape === 'string') {
95
+ self.parseToken({ type: _t.FILTER, match: 'e' });
96
+ self.parseToken({ type: _t.COMMA, match: ',' });
97
+ self.parseToken({ type: _t.STRING, match: String(autoescape) });
98
+ self.parseToken({ type: _t.PARENCLOSE, match: ')'});
99
+ } else {
100
+ self.parseToken({ type: _t.FILTEREMPTY, match: 'e' });
101
+ }
102
+ }
103
+
104
+ return self.out;
105
+ };
106
+ }
107
+
108
+ TokenParser.prototype = {
109
+ /**
110
+ * Set a custom method to be called when a token type is found.
111
+ *
112
+ * @example
113
+ * parser.on(types.STRING, function (token) {
114
+ * this.out.push(token.match);
115
+ * });
116
+ * @example
117
+ * parser.on('start', function () {
118
+ * this.out.push('something at the beginning of your args')
119
+ * });
120
+ * parser.on('end', function () {
121
+ * this.out.push('something at the end of your args');
122
+ * });
123
+ *
124
+ * @param {number} type Token type ID. Found in the Lexer.
125
+ * @param {Function} fn Callback function. Return true to continue executing the default parsing function.
126
+ * @return {undefined}
127
+ */
128
+ on: function (type, fn) {
129
+ this._parsers[type] = fn;
130
+ },
131
+
132
+ /**
133
+ * Parse a single token.
134
+ * @param {{match: string, type: number, line: number}} token Lexer token object.
135
+ * @return {undefined}
136
+ * @private
137
+ */
138
+ parseToken: function (token) {
139
+ var self = this,
140
+ fn = self._parsers[token.type] || self._parsers['*'],
141
+ match = token.match,
142
+ prevToken = self.prevToken,
143
+ prevTokenType = prevToken ? prevToken.type : null,
144
+ lastState = (self.state.length) ? self.state[self.state.length - 1] : null,
145
+ temp;
146
+
147
+ if (fn && typeof fn === 'function') {
148
+ if (!fn.call(this, token)) {
149
+ return;
150
+ }
151
+ }
152
+
153
+ if (lastState && prevToken &&
154
+ lastState === _t.FILTER &&
155
+ prevTokenType === _t.FILTER &&
156
+ token.type !== _t.PARENCLOSE &&
157
+ token.type !== _t.COMMA &&
158
+ token.type !== _t.OPERATOR &&
159
+ token.type !== _t.FILTER &&
160
+ token.type !== _t.FILTEREMPTY) {
161
+ self.out.push(', ');
162
+ }
163
+
164
+ if (lastState && lastState === _t.METHODOPEN) {
165
+ self.state.pop();
166
+ if (token.type !== _t.PARENCLOSE) {
167
+ self.out.push(', ');
168
+ }
169
+ }
170
+
171
+ switch (token.type) {
172
+ case _t.WHITESPACE:
173
+ break;
174
+
175
+ case _t.STRING:
176
+ self.filterApplyIdx.push(self.out.length);
177
+ self.out.push(match.replace(/\\/g, '\\\\'));
178
+ break;
179
+
180
+ case _t.NUMBER:
181
+ case _t.BOOL:
182
+ self.filterApplyIdx.push(self.out.length);
183
+ self.out.push(match);
184
+ break;
185
+
186
+ case _t.FILTER:
187
+ if (!self.filters.hasOwnProperty(match) || typeof self.filters[match] !== "function") {
188
+ utils.throwError('Invalid filter "' + match + '"', self.line, self.filename);
189
+ }
190
+ self.escape = self.filters[match].safe ? false : self.escape;
191
+ self.out.splice(self.filterApplyIdx[self.filterApplyIdx.length - 1], 0, '_filters["' + match + '"](');
192
+ self.state.push(token.type);
193
+ break;
194
+
195
+ case _t.FILTEREMPTY:
196
+ if (!self.filters.hasOwnProperty(match) || typeof self.filters[match] !== "function") {
197
+ utils.throwError('Invalid filter "' + match + '"', self.line, self.filename);
198
+ }
199
+ self.escape = self.filters[match].safe ? false : self.escape;
200
+ self.out.splice(self.filterApplyIdx[self.filterApplyIdx.length - 1], 0, '_filters["' + match + '"](');
201
+ self.out.push(')');
202
+ break;
203
+
204
+ case _t.FUNCTION:
205
+ case _t.FUNCTIONEMPTY:
206
+ self.out.push('((typeof _ctx.' + match + ' !== "undefined") ? _ctx.' + match +
207
+ ' : ((typeof ' + match + ' !== "undefined") ? ' + match +
208
+ ' : _fn))(');
209
+ self.escape = false;
210
+ if (token.type === _t.FUNCTIONEMPTY) {
211
+ self.out[self.out.length - 1] = self.out[self.out.length - 1] + ')';
212
+ } else {
213
+ self.state.push(token.type);
214
+ }
215
+ self.filterApplyIdx.push(self.out.length - 1);
216
+ break;
217
+
218
+ case _t.PARENOPEN:
219
+ self.state.push(token.type);
220
+ if (self.filterApplyIdx.length) {
221
+ self.out.splice(self.filterApplyIdx[self.filterApplyIdx.length - 1], 0, '(');
222
+ if (prevToken && prevTokenType === _t.VAR) {
223
+ temp = prevToken.match.split('.').slice(0, -1);
224
+ self.out.push(' || _fn).call(' + self.checkMatch(temp));
225
+ self.state.push(_t.METHODOPEN);
226
+ self.escape = false;
227
+ } else {
228
+ self.out.push(' || _fn)(');
229
+ }
230
+ self.filterApplyIdx.push(self.out.length - 3);
231
+ } else {
232
+ self.out.push('(');
233
+ self.filterApplyIdx.push(self.out.length - 1);
234
+ }
235
+ break;
236
+
237
+ case _t.PARENCLOSE:
238
+ temp = self.state.pop();
239
+ if (temp !== _t.PARENOPEN && temp !== _t.FUNCTION && temp !== _t.FILTER) {
240
+ utils.throwError('Mismatched nesting state', self.line, self.filename);
241
+ }
242
+ self.out.push(')');
243
+ // Once off the previous entry
244
+ self.filterApplyIdx.pop();
245
+ if (temp !== _t.FILTER) {
246
+ // Once for the open paren
247
+ self.filterApplyIdx.pop();
248
+ }
249
+ break;
250
+
251
+ case _t.COMMA:
252
+ if (lastState !== _t.FUNCTION &&
253
+ lastState !== _t.FILTER &&
254
+ lastState !== _t.ARRAYOPEN &&
255
+ lastState !== _t.CURLYOPEN &&
256
+ lastState !== _t.PARENOPEN &&
257
+ lastState !== _t.COLON) {
258
+ utils.throwError('Unexpected comma', self.line, self.filename);
259
+ }
260
+ if (lastState === _t.COLON) {
261
+ self.state.pop();
262
+ }
263
+ self.out.push(', ');
264
+ self.filterApplyIdx.pop();
265
+ break;
266
+
267
+ case _t.LOGIC:
268
+ case _t.COMPARATOR:
269
+ if (!prevToken ||
270
+ prevTokenType === _t.COMMA ||
271
+ prevTokenType === token.type ||
272
+ prevTokenType === _t.BRACKETOPEN ||
273
+ prevTokenType === _t.CURLYOPEN ||
274
+ prevTokenType === _t.PARENOPEN ||
275
+ prevTokenType === _t.FUNCTION) {
276
+ utils.throwError('Unexpected logic', self.line, self.filename);
277
+ }
278
+ self.out.push(token.match);
279
+ break;
280
+
281
+ case _t.NOT:
282
+ self.out.push(token.match);
283
+ break;
284
+
285
+ case _t.VAR:
286
+ self.parseVar(token, match, lastState);
287
+ break;
288
+
289
+ case _t.BRACKETOPEN:
290
+ if (!prevToken ||
291
+ (prevTokenType !== _t.VAR &&
292
+ prevTokenType !== _t.BRACKETCLOSE &&
293
+ prevTokenType !== _t.PARENCLOSE)) {
294
+ self.state.push(_t.ARRAYOPEN);
295
+ self.filterApplyIdx.push(self.out.length);
296
+ } else {
297
+ self.state.push(token.type);
298
+ }
299
+ self.out.push('[');
300
+ break;
301
+
302
+ case _t.BRACKETCLOSE:
303
+ temp = self.state.pop();
304
+ if (temp !== _t.BRACKETOPEN && temp !== _t.ARRAYOPEN) {
305
+ utils.throwError('Unexpected closing square bracket', self.line, self.filename);
306
+ }
307
+ self.out.push(']');
308
+ self.filterApplyIdx.pop();
309
+ break;
310
+
311
+ case _t.CURLYOPEN:
312
+ self.state.push(token.type);
313
+ self.out.push('{');
314
+ self.filterApplyIdx.push(self.out.length - 1);
315
+ break;
316
+
317
+ case _t.COLON:
318
+ if (lastState !== _t.CURLYOPEN) {
319
+ utils.throwError('Unexpected colon', self.line, self.filename);
320
+ }
321
+ self.state.push(token.type);
322
+ self.out.push(':');
323
+ self.filterApplyIdx.pop();
324
+ break;
325
+
326
+ case _t.CURLYCLOSE:
327
+ if (lastState === _t.COLON) {
328
+ self.state.pop();
329
+ }
330
+ if (self.state.pop() !== _t.CURLYOPEN) {
331
+ utils.throwError('Unexpected closing curly brace', self.line, self.filename);
332
+ }
333
+ self.out.push('}');
334
+
335
+ self.filterApplyIdx.pop();
336
+ break;
337
+
338
+ case _t.DOTKEY:
339
+ if (!prevToken || (
340
+ prevTokenType !== _t.VAR &&
341
+ prevTokenType !== _t.BRACKETCLOSE &&
342
+ prevTokenType !== _t.DOTKEY &&
343
+ prevTokenType !== _t.PARENCLOSE &&
344
+ prevTokenType !== _t.FUNCTIONEMPTY &&
345
+ prevTokenType !== _t.FILTEREMPTY &&
346
+ prevTokenType !== _t.CURLYCLOSE
347
+ )) {
348
+ utils.throwError('Unexpected key "' + match + '"', self.line, self.filename);
349
+ }
350
+ self.out.push('.' + match);
351
+ break;
352
+
353
+ case _t.OPERATOR:
354
+ self.out.push(' ' + match + ' ');
355
+ self.filterApplyIdx.pop();
356
+ break;
357
+ }
358
+ },
359
+
360
+ /**
361
+ * Parse variable token
362
+ * @param {{match: string, type: number, line: number}} token Lexer token object.
363
+ * @param {string} match Shortcut for token.match
364
+ * @param {number} lastState Lexer token type state.
365
+ * @return {undefined}
366
+ * @private
367
+ */
368
+ parseVar: function (token, match, lastState) {
369
+ var self = this;
370
+
371
+ match = match.split('.');
372
+
373
+ if (_reserved.indexOf(match[0]) !== -1) {
374
+ utils.throwError('Reserved keyword "' + match[0] + '" attempted to be used as a variable', self.line, self.filename);
375
+ }
376
+
377
+ self.filterApplyIdx.push(self.out.length);
378
+ if (lastState === _t.CURLYOPEN) {
379
+ if (match.length > 1) {
380
+ utils.throwError('Unexpected dot', self.line, self.filename);
381
+ }
382
+ self.out.push(match[0]);
383
+ return;
384
+ }
385
+
386
+ self.out.push(self.checkMatch(match));
387
+ },
388
+
389
+ /**
390
+ * Return contextual dot-check string for a match
391
+ * @param {string} match Shortcut for token.match
392
+ * @private
393
+ */
394
+ checkMatch: function (match) {
395
+ var temp = match[0], result;
396
+
397
+ function checkDot(ctx) {
398
+ var c = ctx + temp,
399
+ m = match,
400
+ build = '';
401
+
402
+ build = '(typeof ' + c + ' !== "undefined" && ' + c + ' !== null';
403
+ utils.each(m, function (v, i) {
404
+ if (i === 0) {
405
+ return;
406
+ }
407
+ build += ' && ' + c + '.' + v + ' !== undefined && ' + c + '.' + v + ' !== null';
408
+ c += '.' + v;
409
+ });
410
+ build += ')';
411
+
412
+ return build;
413
+ }
414
+
415
+ function buildDot(ctx) {
416
+ return '(' + checkDot(ctx) + ' ? ' + ctx + match.join('.') + ' : "")';
417
+ }
418
+ result = '(' + checkDot('_ctx.') + ' ? ' + buildDot('_ctx.') + ' : ' + buildDot('') + ')';
419
+ return '(' + result + ' !== null ? ' + result + ' : ' + '"" )';
420
+ }
421
+ };
422
+
423
+ /**
424
+ * Parse a source string into tokens that are ready for compilation.
425
+ *
426
+ * @example
427
+ * exports.parse('{{ tacos }}', {}, tags, filters);
428
+ * // => [{ compile: [Function], ... }]
429
+ *
430
+ * @params {object} swig The current Swig instance
431
+ * @param {string} source Swig template source.
432
+ * @param {object} opts Swig options object.
433
+ * @param {object} tags Keyed object of tags that can be parsed and compiled.
434
+ * @param {object} filters Keyed object of filters that may be applied to variables.
435
+ * @return {array} List of tokens ready for compilation.
436
+ */
437
+ exports.parse = function (swig, source, opts, tags, filters) {
438
+ source = source.replace(/\r\n/g, '\n');
439
+ var escape = opts.autoescape,
440
+ tagOpen = opts.tagControls[0],
441
+ tagClose = opts.tagControls[1],
442
+ varOpen = opts.varControls[0],
443
+ varClose = opts.varControls[1],
444
+ escapedTagOpen = escapeRegExp(tagOpen),
445
+ escapedTagClose = escapeRegExp(tagClose),
446
+ escapedVarOpen = escapeRegExp(varOpen),
447
+ escapedVarClose = escapeRegExp(varClose),
448
+ tagStrip = new RegExp('^' + escapedTagOpen + '-?\\s*-?|-?\\s*-?' + escapedTagClose + '$', 'g'),
449
+ tagStripBefore = new RegExp('^' + escapedTagOpen + '-'),
450
+ tagStripAfter = new RegExp('-' + escapedTagClose + '$'),
451
+ varStrip = new RegExp('^' + escapedVarOpen + '-?\\s*-?|-?\\s*-?' + escapedVarClose + '$', 'g'),
452
+ varStripBefore = new RegExp('^' + escapedVarOpen + '-'),
453
+ varStripAfter = new RegExp('-' + escapedVarClose + '$'),
454
+ cmtOpen = opts.cmtControls[0],
455
+ cmtClose = opts.cmtControls[1],
456
+ anyChar = '[\\s\\S]*?',
457
+ // Split the template source based on variable, tag, and comment blocks
458
+ // /(\{%[\s\S]*?%\}|\{\{[\s\S]*?\}\}|\{#[\s\S]*?#\})/
459
+ splitter = new RegExp(
460
+ '(' +
461
+ escapedTagOpen + anyChar + escapedTagClose + '|' +
462
+ escapedVarOpen + anyChar + escapedVarClose + '|' +
463
+ escapeRegExp(cmtOpen) + anyChar + escapeRegExp(cmtClose) +
464
+ ')'
465
+ ),
466
+ line = 1,
467
+ stack = [],
468
+ parent = null,
469
+ tokens = [],
470
+ blocks = {},
471
+ inRaw = false,
472
+ stripNext;
473
+
474
+ /**
475
+ * Parse a variable.
476
+ * @param {string} str String contents of the variable, between <i>{{</i> and <i>}}</i>
477
+ * @param {number} line The line number that this variable starts on.
478
+ * @return {VarToken} Parsed variable token object.
479
+ * @private
480
+ */
481
+ function parseVariable(str, line) {
482
+ var tokens = lexer.read(utils.strip(str)),
483
+ parser,
484
+ out;
485
+
486
+ parser = new TokenParser(tokens, filters, escape, line, opts.filename);
487
+ out = parser.parse().join('');
488
+
489
+ if (parser.state.length) {
490
+ utils.throwError('Unable to parse "' + str + '"', line, opts.filename);
491
+ }
492
+
493
+ /**
494
+ * A parsed variable token.
495
+ * @typedef {object} VarToken
496
+ * @property {function} compile Method for compiling this token.
497
+ */
498
+ return {
499
+ compile: function () {
500
+ return '_output += ' + out + ';\n';
501
+ }
502
+ };
503
+ }
504
+ exports.parseVariable = parseVariable;
505
+
506
+ /**
507
+ * Parse a tag.
508
+ * @param {string} str String contents of the tag, between <i>{%</i> and <i>%}</i>
509
+ * @param {number} line The line number that this tag starts on.
510
+ * @return {TagToken} Parsed token object.
511
+ * @private
512
+ */
513
+ function parseTag(str, line) {
514
+ var tokens, parser, chunks, tagName, tag, args, last;
515
+
516
+ if (utils.startsWith(str, 'end')) {
517
+ last = stack[stack.length - 1];
518
+ if (last && last.name === str.split(/\s+/)[0].replace(/^end/, '') && last.ends) {
519
+ switch (last.name) {
520
+ case 'autoescape':
521
+ escape = opts.autoescape;
522
+ break;
523
+ case 'raw':
524
+ inRaw = false;
525
+ break;
526
+ }
527
+ stack.pop();
528
+ return;
529
+ }
530
+
531
+ if (!inRaw) {
532
+ utils.throwError('Unexpected end of tag "' + str.replace(/^end/, '') + '"', line, opts.filename);
533
+ }
534
+ }
535
+
536
+ if (inRaw) {
537
+ return;
538
+ }
539
+
540
+ chunks = str.split(/\s+(.+)?/);
541
+ tagName = chunks.shift();
542
+
543
+ if (!tags.hasOwnProperty(tagName)) {
544
+ utils.throwError('Unexpected tag "' + str + '"', line, opts.filename);
545
+ }
546
+
547
+ tokens = lexer.read(utils.strip(chunks.join(' ')));
548
+ parser = new TokenParser(tokens, filters, false, line, opts.filename);
549
+ tag = tags[tagName];
550
+
551
+ /**
552
+ * Define custom parsing methods for your tag.
553
+ * @callback parse
554
+ *
555
+ * @example
556
+ * exports.parse = function (str, line, parser, types, options, swig) {
557
+ * parser.on('start', function () {
558
+ * // ...
559
+ * });
560
+ * parser.on(types.STRING, function (token) {
561
+ * // ...
562
+ * });
563
+ * };
564
+ *
565
+ * @param {string} str The full token string of the tag.
566
+ * @param {number} line The line number that this tag appears on.
567
+ * @param {TokenParser} parser A TokenParser instance.
568
+ * @param {TYPES} types Lexer token type enum.
569
+ * @param {TagToken[]} stack The current stack of open tags.
570
+ * @param {SwigOpts} options Swig Options Object.
571
+ * @param {object} swig The Swig instance (gives acces to loaders, parsers, etc)
572
+ */
573
+ if (!tag.parse(chunks[1], line, parser, _t, stack, opts, swig)) {
574
+ utils.throwError('Unexpected tag "' + tagName + '"', line, opts.filename);
575
+ }
576
+
577
+ parser.parse();
578
+ args = parser.out;
579
+
580
+ switch (tagName) {
581
+ case 'autoescape':
582
+ escape = (args[0] !== 'false') ? args[0] : false;
583
+ break;
584
+ case 'raw':
585
+ inRaw = true;
586
+ break;
587
+ }
588
+
589
+ /**
590
+ * A parsed tag token.
591
+ * @typedef {Object} TagToken
592
+ * @property {compile} [compile] Method for compiling this token.
593
+ * @property {array} [args] Array of arguments for the tag.
594
+ * @property {Token[]} [content=[]] An array of tokens that are children of this Token.
595
+ * @property {boolean} [ends] Whether or not this tag requires an end tag.
596
+ * @property {string} name The name of this tag.
597
+ */
598
+ return {
599
+ block: !!tags[tagName].block,
600
+ compile: tag.compile,
601
+ args: args,
602
+ content: [],
603
+ ends: tag.ends,
604
+ name: tagName
605
+ };
606
+ }
607
+
608
+ /**
609
+ * Strip the whitespace from the previous token, if it is a string.
610
+ * @param {object} token Parsed token.
611
+ * @return {object} If the token was a string, trailing whitespace will be stripped.
612
+ */
613
+ function stripPrevToken(token) {
614
+ if (typeof token === 'string') {
615
+ token = token.replace(/\s*$/, '');
616
+ }
617
+ return token;
618
+ }
619
+
620
+ /*!
621
+ * Loop over the source, split via the tag/var/comment regular expression splitter.
622
+ * Send each chunk to the appropriate parser.
623
+ */
624
+ utils.each(source.split(splitter), function (chunk) {
625
+ var token, lines, stripPrev, prevToken, prevChildToken;
626
+
627
+ if (!chunk) {
628
+ return;
629
+ }
630
+
631
+ // Is a variable?
632
+ if (!inRaw && utils.startsWith(chunk, varOpen) && utils.endsWith(chunk, varClose)) {
633
+ stripPrev = varStripBefore.test(chunk);
634
+ stripNext = varStripAfter.test(chunk);
635
+ token = parseVariable(chunk.replace(varStrip, ''), line);
636
+ // Is a tag?
637
+ } else if (utils.startsWith(chunk, tagOpen) && utils.endsWith(chunk, tagClose)) {
638
+ stripPrev = tagStripBefore.test(chunk);
639
+ stripNext = tagStripAfter.test(chunk);
640
+ token = parseTag(chunk.replace(tagStrip, ''), line);
641
+ if (token) {
642
+ if (token.name === 'extends') {
643
+ parent = token.args.join('').replace(/^\'|\'$/g, '').replace(/^\"|\"$/g, '');
644
+ } else if (token.block && !stack.length) {
645
+ blocks[token.args.join('')] = token;
646
+ }
647
+ }
648
+ if (inRaw && !token) {
649
+ token = chunk;
650
+ }
651
+ // Is a content string?
652
+ } else if (inRaw || (!utils.startsWith(chunk, cmtOpen) && !utils.endsWith(chunk, cmtClose))) {
653
+ token = (stripNext) ? chunk.replace(/^\s*/, '') : chunk;
654
+ stripNext = false;
655
+ } else if (utils.startsWith(chunk, cmtOpen) && utils.endsWith(chunk, cmtClose)) {
656
+ return;
657
+ }
658
+
659
+ // Did this tag ask to strip previous whitespace? <code>{%- ... %}</code> or <code>{{- ... }}</code>
660
+ if (stripPrev && tokens.length) {
661
+ prevToken = tokens.pop();
662
+ if (typeof prevToken === 'string') {
663
+ prevToken = stripPrevToken(prevToken);
664
+ } else if (prevToken.content && prevToken.content.length) {
665
+ prevChildToken = stripPrevToken(prevToken.content.pop());
666
+ prevToken.content.push(prevChildToken);
667
+ }
668
+ tokens.push(prevToken);
669
+ }
670
+
671
+ // This was a comment, so let's just keep going.
672
+ if (!token) {
673
+ return;
674
+ }
675
+
676
+ // If there's an open item in the stack, add this to its content.
677
+ if (stack.length) {
678
+ stack[stack.length - 1].content.push(token);
679
+ } else {
680
+ tokens.push(token);
681
+ }
682
+
683
+ // If the token is a tag that requires an end tag, open it on the stack.
684
+ if (token.name && token.ends) {
685
+ stack.push(token);
686
+ }
687
+
688
+ lines = chunk.match(/\n/g);
689
+ line += (lines) ? lines.length : 0;
690
+ });
691
+
692
+ return {
693
+ name: opts.filename,
694
+ parent: parent,
695
+ tokens: tokens,
696
+ blocks: blocks
697
+ };
698
+ };
699
+
700
+
701
+ /**
702
+ * Compile an array of tokens.
703
+ * @param {Token[]} template An array of template tokens.
704
+ * @param {Templates[]} parents Array of parent templates.
705
+ * @param {SwigOpts} [options] Swig options object.
706
+ * @param {string} [blockName] Name of the current block context.
707
+ * @return {string} Partial for a compiled JavaScript method that will output a rendered template.
708
+ */
709
+ exports.compile = function (template, parents, options, blockName) {
710
+ var out = '',
711
+ tokens = utils.isArray(template) ? template : template.tokens;
712
+
713
+ utils.each(tokens, function (token) {
714
+ var o;
715
+ if (typeof token === 'string') {
716
+ out += '_output += "' + token.replace(/\\/g, '\\\\').replace(/\n|\r/g, '\\n').replace(/"/g, '\\"') + '";\n';
717
+ return;
718
+ }
719
+
720
+ /**
721
+ * Compile callback for VarToken and TagToken objects.
722
+ * @callback compile
723
+ *
724
+ * @example
725
+ * exports.compile = function (compiler, args, content, parents, options, blockName) {
726
+ * if (args[0] === 'foo') {
727
+ * return compiler(content, parents, options, blockName) + '\n';
728
+ * }
729
+ * return '_output += "fallback";\n';
730
+ * };
731
+ *
732
+ * @param {parserCompiler} compiler
733
+ * @param {array} [args] Array of parsed arguments on the for the token.
734
+ * @param {array} [content] Array of content within the token.
735
+ * @param {array} [parents] Array of parent templates for the current template context.
736
+ * @param {SwigOpts} [options] Swig Options Object
737
+ * @param {string} [blockName] Name of the direct block parent, if any.
738
+ */
739
+ o = token.compile(exports.compile, token.args ? token.args.slice(0) : [], token.content ? token.content.slice(0) : [], parents, options, blockName);
740
+ out += o || '';
741
+ });
742
+
743
+ return out;
744
+ };