gina 0.7.12 → 0.7.13

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 (638) hide show
  1. package/CHANGELOG.md +23 -3
  2. package/README.md +35 -29
  3. package/ROADMAP.md +1 -0
  4. package/framework/v0.7.13/VERSION +1 -0
  5. package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/js/gina.js +277 -143
  6. package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/js/gina.min.js +626 -627
  7. package/framework/v0.7.13/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  8. package/framework/v0.7.13/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  9. package/framework/{v0.7.12 → v0.7.13}/core/config.js +13 -2
  10. package/framework/{v0.7.12 → v0.7.13}/core/config.param-bindings.js +102 -9
  11. package/framework/{v0.7.12 → v0.7.13}/core/server.isaac.js +17 -5
  12. package/framework/{v0.7.12 → v0.7.13}/core/server.js +59 -1
  13. package/framework/{v0.7.12 → v0.7.13}/lib/routing/src/main.js +210 -137
  14. package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/local-cas.js +11 -2
  15. package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/local-stream.js +27 -4
  16. package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/local.js +12 -3
  17. package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/s3.js +10 -2
  18. package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/util.js +42 -1
  19. package/framework/{v0.7.12 → v0.7.13}/package.json +1 -1
  20. package/gna.js +4 -4
  21. package/llms.txt +8 -8
  22. package/package.json +4 -4
  23. package/framework/v0.7.12/VERSION +0 -1
  24. package/framework/v0.7.12/core/asset/plugin/dist/vendor/gina/js/gina.min.js.br +0 -0
  25. package/framework/v0.7.12/core/asset/plugin/dist/vendor/gina/js/gina.min.js.gz +0 -0
  26. /package/framework/{v0.7.12 → v0.7.13}/AUTHORS +0 -0
  27. /package/framework/{v0.7.12 → v0.7.13}/LICENSE +0 -0
  28. /package/framework/{v0.7.12 → v0.7.13}/core/asset/html/nolayout.html +0 -0
  29. /package/framework/{v0.7.12 → v0.7.13}/core/asset/html/static.html +0 -0
  30. /package/framework/{v0.7.12 → v0.7.13}/core/asset/img/android-chrome-192x192.png +0 -0
  31. /package/framework/{v0.7.12 → v0.7.13}/core/asset/img/android-chrome-512x512.png +0 -0
  32. /package/framework/{v0.7.12 → v0.7.13}/core/asset/img/apple-touch-icon.png +0 -0
  33. /package/framework/{v0.7.12 → v0.7.13}/core/asset/img/favicon-16x16.png +0 -0
  34. /package/framework/{v0.7.12 → v0.7.13}/core/asset/img/favicon-32x32.png +0 -0
  35. /package/framework/{v0.7.12 → v0.7.13}/core/asset/img/favicon.ico +0 -0
  36. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/README.md +0 -0
  37. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.css +0 -0
  38. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/beemaster/beemaster.js +0 -0
  39. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/beemaster/index.html +0 -0
  40. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/css/gina.min.css +0 -0
  41. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.br +0 -0
  42. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/css/gina.min.css.gz +0 -0
  43. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/html/statusbar.html +0 -0
  44. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.br +0 -0
  45. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/html/statusbar.html.gz +0 -0
  46. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/inspector/have_heart_one-webfont.woff2 +0 -0
  47. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/inspector/index.html +0 -0
  48. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/inspector/inspector.css +0 -0
  49. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/inspector/inspector.js +0 -0
  50. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/inspector/logo.svg +0 -0
  51. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js +0 -0
  52. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.br +0 -0
  53. /package/framework/{v0.7.12 → v0.7.13}/core/asset/plugin/dist/vendor/gina/js/gina.onload.min.js.gz +0 -0
  54. /package/framework/{v0.7.12 → v0.7.13}/core/config.requirements-anchor.js +0 -0
  55. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/ai/index.js +0 -0
  56. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/ai/lib/connector.js +0 -0
  57. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/index.js +0 -0
  58. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/connector.js +0 -0
  59. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/connector.v3.js +0 -0
  60. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/connector.v4.js +0 -0
  61. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/n1ql.js +0 -0
  62. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/session-store.js +0 -0
  63. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/session-store.v3.js +0 -0
  64. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/session-store.v4.js +0 -0
  65. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/couchbase/lib/storage-store.js +0 -0
  66. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/duckdb/index.js +0 -0
  67. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/duckdb/lib/connector.js +0 -0
  68. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mongodb/index.js +0 -0
  69. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mongodb/lib/connector.js +0 -0
  70. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mongodb/lib/job-store.js +0 -0
  71. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mongodb/lib/pipeline-loader.js +0 -0
  72. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mongodb/lib/session-store.js +0 -0
  73. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mysql/index.js +0 -0
  74. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/mysql/lib/connector.js +0 -0
  75. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/param-redact.js +0 -0
  76. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/postgresql/index.js +0 -0
  77. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/postgresql/lib/connector.js +0 -0
  78. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/redis/index.js +0 -0
  79. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/redis/lib/connector.js +0 -0
  80. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/redis/lib/job-store.js +0 -0
  81. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/redis/lib/kv-store.js +0 -0
  82. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/redis/lib/render-cache-store.js +0 -0
  83. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/redis/lib/session-store.js +0 -0
  84. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/scylladb/index.js +0 -0
  85. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/scylladb/lib/connector.js +0 -0
  86. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/scylladb/lib/session-store.js +0 -0
  87. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/settle-once.js +0 -0
  88. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/sql-parser.js +0 -0
  89. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/sqlite/index.js +0 -0
  90. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/sqlite/lib/connector.js +0 -0
  91. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/sqlite/lib/job-store.js +0 -0
  92. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/sqlite/lib/kv-store.js +0 -0
  93. /package/framework/{v0.7.12 → v0.7.13}/core/connectors/sqlite/lib/session-store.js +0 -0
  94. /package/framework/{v0.7.12 → v0.7.13}/core/content.encoding +0 -0
  95. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.framework.js +0 -0
  96. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.js +0 -0
  97. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-json.js +0 -0
  98. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-nunjucks-async.js +0 -0
  99. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-nunjucks.js +0 -0
  100. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-stream.js +0 -0
  101. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-swig-async.js +0 -0
  102. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-swig.js +0 -0
  103. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-v1.js +0 -0
  104. /package/framework/{v0.7.12 → v0.7.13}/core/controller/controller.render-xml.js +0 -0
  105. /package/framework/{v0.7.12 → v0.7.13}/core/controller/index.js +0 -0
  106. /package/framework/{v0.7.12 → v0.7.13}/core/controller/inline-script.js +0 -0
  107. /package/framework/{v0.7.12 → v0.7.13}/core/controller/inspector-window-emit.js +0 -0
  108. /package/framework/{v0.7.12 → v0.7.13}/core/controller/layout-source.js +0 -0
  109. /package/framework/{v0.7.12 → v0.7.13}/core/controller/preload-hints.js +0 -0
  110. /package/framework/{v0.7.12 → v0.7.13}/core/controller/release-banner.js +0 -0
  111. /package/framework/{v0.7.12 → v0.7.13}/core/controller/render-data.js +0 -0
  112. /package/framework/{v0.7.12 → v0.7.13}/core/controller/render-session.js +0 -0
  113. /package/framework/{v0.7.12 → v0.7.13}/core/dev/index.js +0 -0
  114. /package/framework/{v0.7.12 → v0.7.13}/core/dev/lib/class.js +0 -0
  115. /package/framework/{v0.7.12 → v0.7.13}/core/dev/lib/factory.js +0 -0
  116. /package/framework/{v0.7.12 → v0.7.13}/core/dev/lib/tools.js +0 -0
  117. /package/framework/{v0.7.12 → v0.7.13}/core/gna.js +0 -0
  118. /package/framework/{v0.7.12 → v0.7.13}/core/locales/README.md +0 -0
  119. /package/framework/{v0.7.12 → v0.7.13}/core/locales/currency.json +0 -0
  120. /package/framework/{v0.7.12 → v0.7.13}/core/locales/dist/language/en.json +0 -0
  121. /package/framework/{v0.7.12 → v0.7.13}/core/locales/dist/language/fr.json +0 -0
  122. /package/framework/{v0.7.12 → v0.7.13}/core/locales/dist/region/en.json +0 -0
  123. /package/framework/{v0.7.12 → v0.7.13}/core/locales/dist/region/fr.json +0 -0
  124. /package/framework/{v0.7.12 → v0.7.13}/core/locales/index.js +0 -0
  125. /package/framework/{v0.7.12 → v0.7.13}/core/mime.types +0 -0
  126. /package/framework/{v0.7.12 → v0.7.13}/core/model/entity.js +0 -0
  127. /package/framework/{v0.7.12 → v0.7.13}/core/model/index.js +0 -0
  128. /package/framework/{v0.7.12 → v0.7.13}/core/model/template/entityFactory.js +0 -0
  129. /package/framework/{v0.7.12 → v0.7.13}/core/model/template/index.js +0 -0
  130. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/README.md +0 -0
  131. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/index.js +0 -0
  132. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/csrf/README.md +0 -0
  133. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/csrf/package.json +0 -0
  134. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/csrf/src/main.js +0 -0
  135. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/README.md +0 -0
  136. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/coep/README.md +0 -0
  137. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/coep/package.json +0 -0
  138. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/coep/src/main.js +0 -0
  139. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/coop/README.md +0 -0
  140. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/coop/package.json +0 -0
  141. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/coop/src/main.js +0 -0
  142. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/corp/README.md +0 -0
  143. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/corp/package.json +0 -0
  144. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/corp/src/main.js +0 -0
  145. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/csp/README.md +0 -0
  146. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/csp/package.json +0 -0
  147. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/csp/src/main.js +0 -0
  148. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/hide-powered-by/README.md +0 -0
  149. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/hide-powered-by/package.json +0 -0
  150. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/hide-powered-by/src/main.js +0 -0
  151. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/hsts/README.md +0 -0
  152. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/hsts/package.json +0 -0
  153. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/hsts/src/main.js +0 -0
  154. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/origin-agent-cluster/README.md +0 -0
  155. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/origin-agent-cluster/package.json +0 -0
  156. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/origin-agent-cluster/src/main.js +0 -0
  157. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/package.json +0 -0
  158. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/referrer-policy/README.md +0 -0
  159. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/referrer-policy/package.json +0 -0
  160. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/referrer-policy/src/main.js +0 -0
  161. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/src/main.js +0 -0
  162. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-content-type-options/README.md +0 -0
  163. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-content-type-options/package.json +0 -0
  164. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-content-type-options/src/main.js +0 -0
  165. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-dns-prefetch-control/README.md +0 -0
  166. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-dns-prefetch-control/package.json +0 -0
  167. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-dns-prefetch-control/src/main.js +0 -0
  168. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-download-options/README.md +0 -0
  169. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-download-options/package.json +0 -0
  170. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-download-options/src/main.js +0 -0
  171. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-frame-options/README.md +0 -0
  172. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-frame-options/package.json +0 -0
  173. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-frame-options/src/main.js +0 -0
  174. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/README.md +0 -0
  175. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/package.json +0 -0
  176. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-permitted-cross-domain-policies/src/main.js +0 -0
  177. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-xss-protection/README.md +0 -0
  178. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-xss-protection/package.json +0 -0
  179. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/security-headers/x-xss-protection/src/main.js +0 -0
  180. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/session/README.md +0 -0
  181. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/session/package.json +0 -0
  182. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/session/src/main.js +0 -0
  183. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/storage/README.md +0 -0
  184. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/storage/build.json +0 -0
  185. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/storage/package.json +0 -0
  186. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/storage/src/main.js +0 -0
  187. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/validator/README.md +0 -0
  188. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/validator/build.json +0 -0
  189. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/validator/package.json +0 -0
  190. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/validator/src/form-validator.js +0 -0
  191. /package/framework/{v0.7.12 → v0.7.13}/core/plugins/lib/validator/src/main.js +0 -0
  192. /package/framework/{v0.7.12 → v0.7.13}/core/router.js +0 -0
  193. /package/framework/{v0.7.12 → v0.7.13}/core/server.express.js +0 -0
  194. /package/framework/{v0.7.12 → v0.7.13}/core/server.isaac.early-answer.js +0 -0
  195. /package/framework/{v0.7.12 → v0.7.13}/core/server.isaac.rapid-reset.js +0 -0
  196. /package/framework/{v0.7.12 → v0.7.13}/core/server.route-candidates.js +0 -0
  197. /package/framework/{v0.7.12 → v0.7.13}/core/status.codes +0 -0
  198. /package/framework/{v0.7.12 → v0.7.13}/core/template/_gitignore +0 -0
  199. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/app.json +0 -0
  200. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/connectors.json +0 -0
  201. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/routing.json +0 -0
  202. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/settings.json +0 -0
  203. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/settings.server.json +0 -0
  204. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/templates.json +0 -0
  205. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/config/watchers.json +0 -0
  206. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/controllers/controller.content.js +0 -0
  207. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/controllers/controller.js +0 -0
  208. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/controllers/setup.js +0 -0
  209. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/index.js +0 -0
  210. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle/locales/en.json +0 -0
  211. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_namespace/controllers/controller.js +0 -0
  212. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/css/default.css +0 -0
  213. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/css/home.css +0 -0
  214. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/css/vendor/readme.md +0 -0
  215. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/favicon.ico +0 -0
  216. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/js/components/x-checklist.js +0 -0
  217. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/js/vendor/readme.md +0 -0
  218. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/manifest.webmanifest +0 -0
  219. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/readme.md +0 -0
  220. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_public/sw.js +0 -0
  221. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_templates/handlers/main.js +0 -0
  222. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_templates/html/content/homepage.html +0 -0
  223. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_templates/html/includes/error-msg-noscript.html +0 -0
  224. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_templates/html/includes/error-msg-outdated-browser.html +0 -0
  225. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_templates/html/includes/x-checklist.html +0 -0
  226. /package/framework/{v0.7.12 → v0.7.13}/core/template/boilerplate/bundle_templates/html/layouts/main.html +0 -0
  227. /package/framework/{v0.7.12 → v0.7.13}/core/template/command/gina.bat.tpl +0 -0
  228. /package/framework/{v0.7.12 → v0.7.13}/core/template/command/gina.tpl +0 -0
  229. /package/framework/{v0.7.12 → v0.7.13}/core/template/conf/env.json +0 -0
  230. /package/framework/{v0.7.12 → v0.7.13}/core/template/conf/manifest.json +0 -0
  231. /package/framework/{v0.7.12 → v0.7.13}/core/template/conf/package.json +0 -0
  232. /package/framework/{v0.7.12 → v0.7.13}/core/template/conf/settings.json +0 -0
  233. /package/framework/{v0.7.12 → v0.7.13}/core/template/conf/statics.json +0 -0
  234. /package/framework/{v0.7.12 → v0.7.13}/core/template/conf/templates.json +0 -0
  235. /package/framework/{v0.7.12 → v0.7.13}/core/template/error/client/json/401.json +0 -0
  236. /package/framework/{v0.7.12 → v0.7.13}/core/template/error/client/json/403.json +0 -0
  237. /package/framework/{v0.7.12 → v0.7.13}/core/template/error/client/json/404.json +0 -0
  238. /package/framework/{v0.7.12 → v0.7.13}/core/template/error/server/html/50x.html +0 -0
  239. /package/framework/{v0.7.12 → v0.7.13}/core/template/error/server/json/500.json +0 -0
  240. /package/framework/{v0.7.12 → v0.7.13}/core/template/error/server/json/503.json +0 -0
  241. /package/framework/{v0.7.12 → v0.7.13}/core/template/extensions/logger/config.json +0 -0
  242. /package/framework/{v0.7.12 → v0.7.13}/helpers/console.js +0 -0
  243. /package/framework/{v0.7.12 → v0.7.13}/helpers/context.js +0 -0
  244. /package/framework/{v0.7.12 → v0.7.13}/helpers/data/LICENSE +0 -0
  245. /package/framework/{v0.7.12 → v0.7.13}/helpers/data/README.md +0 -0
  246. /package/framework/{v0.7.12 → v0.7.13}/helpers/data/package.json +0 -0
  247. /package/framework/{v0.7.12 → v0.7.13}/helpers/data/src/main.js +0 -0
  248. /package/framework/{v0.7.12 → v0.7.13}/helpers/dateFormat.js +0 -0
  249. /package/framework/{v0.7.12 → v0.7.13}/helpers/index.js +0 -0
  250. /package/framework/{v0.7.12 → v0.7.13}/helpers/json/LICENSE +0 -0
  251. /package/framework/{v0.7.12 → v0.7.13}/helpers/json/README.md +0 -0
  252. /package/framework/{v0.7.12 → v0.7.13}/helpers/json/package.json +0 -0
  253. /package/framework/{v0.7.12 → v0.7.13}/helpers/json/src/main.js +0 -0
  254. /package/framework/{v0.7.12 → v0.7.13}/helpers/path.js +0 -0
  255. /package/framework/{v0.7.12 → v0.7.13}/helpers/plugins/README.md +0 -0
  256. /package/framework/{v0.7.12 → v0.7.13}/helpers/plugins/package.json +0 -0
  257. /package/framework/{v0.7.12 → v0.7.13}/helpers/plugins/src/api-error.js +0 -0
  258. /package/framework/{v0.7.12 → v0.7.13}/helpers/plugins/src/main.js +0 -0
  259. /package/framework/{v0.7.12 → v0.7.13}/helpers/prototypes.js +0 -0
  260. /package/framework/{v0.7.12 → v0.7.13}/helpers/task.js +0 -0
  261. /package/framework/{v0.7.12 → v0.7.13}/helpers/text.js +0 -0
  262. /package/framework/{v0.7.12 → v0.7.13}/lib/admin/package.json +0 -0
  263. /package/framework/{v0.7.12 → v0.7.13}/lib/admin/src/main.js +0 -0
  264. /package/framework/{v0.7.12 → v0.7.13}/lib/archiver/README.md +0 -0
  265. /package/framework/{v0.7.12 → v0.7.13}/lib/archiver/build.json +0 -0
  266. /package/framework/{v0.7.12 → v0.7.13}/lib/archiver/package.json +0 -0
  267. /package/framework/{v0.7.12 → v0.7.13}/lib/archiver/src/dep/jszip.min.js +0 -0
  268. /package/framework/{v0.7.12 → v0.7.13}/lib/archiver/src/main.js +0 -0
  269. /package/framework/{v0.7.12 → v0.7.13}/lib/async/package.json +0 -0
  270. /package/framework/{v0.7.12 → v0.7.13}/lib/async/src/main.js +0 -0
  271. /package/framework/{v0.7.12 → v0.7.13}/lib/audit/package.json +0 -0
  272. /package/framework/{v0.7.12 → v0.7.13}/lib/audit/src/main.js +0 -0
  273. /package/framework/{v0.7.12 → v0.7.13}/lib/audit-store.js +0 -0
  274. /package/framework/{v0.7.12 → v0.7.13}/lib/authn/package.json +0 -0
  275. /package/framework/{v0.7.12 → v0.7.13}/lib/authn/src/lockout.js +0 -0
  276. /package/framework/{v0.7.12 → v0.7.13}/lib/authn/src/main.js +0 -0
  277. /package/framework/{v0.7.12 → v0.7.13}/lib/authn/src/totp.js +0 -0
  278. /package/framework/{v0.7.12 → v0.7.13}/lib/authz-gate/package.json +0 -0
  279. /package/framework/{v0.7.12 → v0.7.13}/lib/authz-gate/src/main.js +0 -0
  280. /package/framework/{v0.7.12 → v0.7.13}/lib/cache/README.md +0 -0
  281. /package/framework/{v0.7.12 → v0.7.13}/lib/cache/build.json +0 -0
  282. /package/framework/{v0.7.12 → v0.7.13}/lib/cache/package.json +0 -0
  283. /package/framework/{v0.7.12 → v0.7.13}/lib/cache/src/main.js +0 -0
  284. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/aliases.json +0 -0
  285. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/audit/arguments.json +0 -0
  286. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/audit/help.txt +0 -0
  287. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/audit/verify.js +0 -0
  288. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/add.js +0 -0
  289. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/arguments.json +0 -0
  290. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/build.js +0 -0
  291. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/copy.js +0 -0
  292. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/cp.js +0 -0
  293. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/help.js +0 -0
  294. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/help.txt +0 -0
  295. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/inc/boot-lines.js +0 -0
  296. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/inc/name-rewrite.js +0 -0
  297. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/inc/name.js +0 -0
  298. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/inc/start-status.js +0 -0
  299. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/list.js +0 -0
  300. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/man.js +0 -0
  301. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/mcp-start.js +0 -0
  302. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/mcp.js +0 -0
  303. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/oas.js +0 -0
  304. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/openapi.js +0 -0
  305. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/remove.js +0 -0
  306. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/rename.js +0 -0
  307. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/restart.js +0 -0
  308. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/rm.js +0 -0
  309. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/start.js +0 -0
  310. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/status.js +0 -0
  311. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/stop.js +0 -0
  312. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/bundle/types.js +0 -0
  313. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/cache/arguments.json +0 -0
  314. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/cache/clear.js +0 -0
  315. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/cache/help.txt +0 -0
  316. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/cache/stats.js +0 -0
  317. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/add.js +0 -0
  318. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/arguments.json +0 -0
  319. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/help.js +0 -0
  320. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/help.txt +0 -0
  321. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/infer.js +0 -0
  322. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/list.js +0 -0
  323. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/migrate.js +0 -0
  324. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/models.js +0 -0
  325. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/remove.js +0 -0
  326. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/rm.js +0 -0
  327. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/connector/test.js +0 -0
  328. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/container/arguments.json +0 -0
  329. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/container/help.js +0 -0
  330. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/container/help.txt +0 -0
  331. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/container/man.js +0 -0
  332. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/container/ps.js +0 -0
  333. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/container/stop.js +0 -0
  334. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/add.js +0 -0
  335. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/arguments.json +0 -0
  336. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/help.txt +0 -0
  337. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/inc/args.js +0 -0
  338. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/inc/namespace.js +0 -0
  339. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/inc/reference-rewrite.js +0 -0
  340. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/inc/reference-scan.js +0 -0
  341. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/inc/scaffold.js +0 -0
  342. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/remove.js +0 -0
  343. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/rename.js +0 -0
  344. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/controller/rm.js +0 -0
  345. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/add.js +0 -0
  346. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/get.js +0 -0
  347. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/help.js +0 -0
  348. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/help.txt +0 -0
  349. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/inc/name.js +0 -0
  350. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/link-dev.js +0 -0
  351. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/list.js +0 -0
  352. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/remove.js +0 -0
  353. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/rm.js +0 -0
  354. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/set.js +0 -0
  355. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/unset.js +0 -0
  356. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/env/use.js +0 -0
  357. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/add.js +0 -0
  358. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/arguments.json +0 -0
  359. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/build.js +0 -0
  360. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/dot.js +0 -0
  361. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/get.js +0 -0
  362. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/help.js +0 -0
  363. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/help.txt +0 -0
  364. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/inc/child-failure.js +0 -0
  365. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/inc/listen-error.js +0 -0
  366. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/inc/ps-titles.js +0 -0
  367. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/init.js +0 -0
  368. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/link-node-modules.js +0 -0
  369. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/link.js +0 -0
  370. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/list.js +0 -0
  371. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/man.js +0 -0
  372. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/msg.json +0 -0
  373. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/open.js +0 -0
  374. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/remove.js +0 -0
  375. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/reset.js +0 -0
  376. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/restart.js +0 -0
  377. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/set.js +0 -0
  378. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/start.js +0 -0
  379. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/status.js +0 -0
  380. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/stop.js +0 -0
  381. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/tail.js +0 -0
  382. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/update.js +0 -0
  383. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/framework/version.js +0 -0
  384. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/gina-dev.1.md +0 -0
  385. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/gina-framework.1.md +0 -0
  386. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/gina.1.md +0 -0
  387. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/helper.js +0 -0
  388. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/add.js +0 -0
  389. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/arguments.json +0 -0
  390. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/export.js +0 -0
  391. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/help.js +0 -0
  392. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/help.txt +0 -0
  393. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/import.js +0 -0
  394. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/i18n/scan.js +0 -0
  395. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/_host.js +0 -0
  396. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/arguments.json +0 -0
  397. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/build.js +0 -0
  398. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/help.js +0 -0
  399. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/help.txt +0 -0
  400. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/list.js +0 -0
  401. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/man.js +0 -0
  402. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/rm.js +0 -0
  403. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/image/run.js +0 -0
  404. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/index.js +0 -0
  405. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/inspector/help.js +0 -0
  406. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/inspector/help.txt +0 -0
  407. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/inspector/open.js +0 -0
  408. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/man-render.js +0 -0
  409. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/minion/arguments.json +0 -0
  410. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/minion/help.js +0 -0
  411. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/minion/help.txt +0 -0
  412. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/minion/kill.js +0 -0
  413. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/minion/list.js +0 -0
  414. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/msg.json +0 -0
  415. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/port/help.js +0 -0
  416. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/port/help.txt +0 -0
  417. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/port/inc/scan.js +0 -0
  418. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/port/list.js +0 -0
  419. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/port/reset.js +0 -0
  420. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/port/set.js +0 -0
  421. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/add.js +0 -0
  422. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/arguments.json +0 -0
  423. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/backup.js +0 -0
  424. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/build.js +0 -0
  425. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/help.js +0 -0
  426. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/help.txt +0 -0
  427. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/import.js +0 -0
  428. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/inc/name.js +0 -0
  429. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/list.js +0 -0
  430. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/man.js +0 -0
  431. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/move.js +0 -0
  432. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/remove.js +0 -0
  433. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/rename.js +0 -0
  434. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/restart.js +0 -0
  435. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/restore.js +0 -0
  436. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/rm.js +0 -0
  437. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/start.js +0 -0
  438. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/status.js +0 -0
  439. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/project/stop.js +0 -0
  440. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/protocol/arguments.json +0 -0
  441. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/protocol/help.js +0 -0
  442. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/protocol/help.txt +0 -0
  443. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/protocol/list.js +0 -0
  444. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/protocol/remove.js +0 -0
  445. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/protocol/set.js +0 -0
  446. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/add.js +0 -0
  447. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/help.js +0 -0
  448. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/help.txt +0 -0
  449. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/inc/name.js +0 -0
  450. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/link-local.js +0 -0
  451. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/link-production.js +0 -0
  452. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/list.js +0 -0
  453. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/remove.js +0 -0
  454. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/rm.js +0 -0
  455. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/scope/use.js +0 -0
  456. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/secrets/arguments.json +0 -0
  457. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/secrets/check.js +0 -0
  458. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/secrets/help.js +0 -0
  459. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/secrets/help.txt +0 -0
  460. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/secrets/scan.js +0 -0
  461. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/service/help.js +0 -0
  462. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/service/help.txt +0 -0
  463. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/service/list.js +0 -0
  464. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/service/man.js +0 -0
  465. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/service/start.js +0 -0
  466. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/storage/arguments.json +0 -0
  467. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/storage/gc.js +0 -0
  468. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/storage/help.txt +0 -0
  469. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/storage/stats.js +0 -0
  470. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/storage/verify.js +0 -0
  471. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd/view/add.js +0 -0
  472. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd-status-format/package.json +0 -0
  473. /package/framework/{v0.7.12 → v0.7.13}/lib/cmd-status-format/src/main.js +0 -0
  474. /package/framework/{v0.7.12 → v0.7.13}/lib/collection/README.md +0 -0
  475. /package/framework/{v0.7.12 → v0.7.13}/lib/collection/build.json +0 -0
  476. /package/framework/{v0.7.12 → v0.7.13}/lib/collection/package.json +0 -0
  477. /package/framework/{v0.7.12 → v0.7.13}/lib/collection/src/main.js +0 -0
  478. /package/framework/{v0.7.12 → v0.7.13}/lib/conf-view/package.json +0 -0
  479. /package/framework/{v0.7.12 → v0.7.13}/lib/conf-view/src/main.js +0 -0
  480. /package/framework/{v0.7.12 → v0.7.13}/lib/config.js +0 -0
  481. /package/framework/{v0.7.12 → v0.7.13}/lib/connector-config/package.json +0 -0
  482. /package/framework/{v0.7.12 → v0.7.13}/lib/connector-config/src/main.js +0 -0
  483. /package/framework/{v0.7.12 → v0.7.13}/lib/connector-error/package.json +0 -0
  484. /package/framework/{v0.7.12 → v0.7.13}/lib/connector-error/src/main.js +0 -0
  485. /package/framework/{v0.7.12 → v0.7.13}/lib/connector-registry/package.json +0 -0
  486. /package/framework/{v0.7.12 → v0.7.13}/lib/connector-registry/src/main.js +0 -0
  487. /package/framework/{v0.7.12 → v0.7.13}/lib/cron/README.md +0 -0
  488. /package/framework/{v0.7.12 → v0.7.13}/lib/cron/package.json +0 -0
  489. /package/framework/{v0.7.12 → v0.7.13}/lib/cron/src/main.js +0 -0
  490. /package/framework/{v0.7.12 → v0.7.13}/lib/domain/LICENSE +0 -0
  491. /package/framework/{v0.7.12 → v0.7.13}/lib/domain/README.md +0 -0
  492. /package/framework/{v0.7.12 → v0.7.13}/lib/domain/package.json +0 -0
  493. /package/framework/{v0.7.12 → v0.7.13}/lib/domain/src/main.js +0 -0
  494. /package/framework/{v0.7.12 → v0.7.13}/lib/dto/package.json +0 -0
  495. /package/framework/{v0.7.12 → v0.7.13}/lib/dto/src/main.js +0 -0
  496. /package/framework/{v0.7.12 → v0.7.13}/lib/dto-pipe/package.json +0 -0
  497. /package/framework/{v0.7.12 → v0.7.13}/lib/dto-pipe/src/main.js +0 -0
  498. /package/framework/{v0.7.12 → v0.7.13}/lib/dto-types/package.json +0 -0
  499. /package/framework/{v0.7.12 → v0.7.13}/lib/dto-types/src/main.js +0 -0
  500. /package/framework/{v0.7.12 → v0.7.13}/lib/duration/package.json +0 -0
  501. /package/framework/{v0.7.12 → v0.7.13}/lib/duration/src/main.js +0 -0
  502. /package/framework/{v0.7.12 → v0.7.13}/lib/error-ref/package.json +0 -0
  503. /package/framework/{v0.7.12 → v0.7.13}/lib/error-ref/src/main.js +0 -0
  504. /package/framework/{v0.7.12 → v0.7.13}/lib/generator/index.js +0 -0
  505. /package/framework/{v0.7.12 → v0.7.13}/lib/i18n/package.json +0 -0
  506. /package/framework/{v0.7.12 → v0.7.13}/lib/i18n/src/main.js +0 -0
  507. /package/framework/{v0.7.12 → v0.7.13}/lib/idempotency/package.json +0 -0
  508. /package/framework/{v0.7.12 → v0.7.13}/lib/idempotency/src/main.js +0 -0
  509. /package/framework/{v0.7.12 → v0.7.13}/lib/image-build/package.json +0 -0
  510. /package/framework/{v0.7.12 → v0.7.13}/lib/image-build/src/main.js +0 -0
  511. /package/framework/{v0.7.12 → v0.7.13}/lib/index.js +0 -0
  512. /package/framework/{v0.7.12 → v0.7.13}/lib/inherits/LICENSE +0 -0
  513. /package/framework/{v0.7.12 → v0.7.13}/lib/inherits/README.md +0 -0
  514. /package/framework/{v0.7.12 → v0.7.13}/lib/inherits/package.json +0 -0
  515. /package/framework/{v0.7.12 → v0.7.13}/lib/inherits/src/main.js +0 -0
  516. /package/framework/{v0.7.12 → v0.7.13}/lib/inspector-events/package.json +0 -0
  517. /package/framework/{v0.7.12 → v0.7.13}/lib/inspector-events/src/main.js +0 -0
  518. /package/framework/{v0.7.12 → v0.7.13}/lib/inspector-redact/package.json +0 -0
  519. /package/framework/{v0.7.12 → v0.7.13}/lib/inspector-redact/src/main.js +0 -0
  520. /package/framework/{v0.7.12 → v0.7.13}/lib/instrument/package.json +0 -0
  521. /package/framework/{v0.7.12 → v0.7.13}/lib/instrument/src/main.js +0 -0
  522. /package/framework/{v0.7.12 → v0.7.13}/lib/job/package.json +0 -0
  523. /package/framework/{v0.7.12 → v0.7.13}/lib/job/src/main.js +0 -0
  524. /package/framework/{v0.7.12 → v0.7.13}/lib/job-store.js +0 -0
  525. /package/framework/{v0.7.12 → v0.7.13}/lib/json-config-header/package.json +0 -0
  526. /package/framework/{v0.7.12 → v0.7.13}/lib/json-config-header/src/main.js +0 -0
  527. /package/framework/{v0.7.12 → v0.7.13}/lib/kv/package.json +0 -0
  528. /package/framework/{v0.7.12 → v0.7.13}/lib/kv/src/main.js +0 -0
  529. /package/framework/{v0.7.12 → v0.7.13}/lib/kv-store.js +0 -0
  530. /package/framework/{v0.7.12 → v0.7.13}/lib/lane/package.json +0 -0
  531. /package/framework/{v0.7.12 → v0.7.13}/lib/lane/src/main.js +0 -0
  532. /package/framework/{v0.7.12 → v0.7.13}/lib/loading-state/package.json +0 -0
  533. /package/framework/{v0.7.12 → v0.7.13}/lib/loading-state/src/main.js +0 -0
  534. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/README.md +0 -0
  535. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/package.json +0 -0
  536. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/containers/default/index.js +0 -0
  537. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/containers/file/index.js +0 -0
  538. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/containers/mq/index.js +0 -0
  539. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/containers/mq/listener.js +0 -0
  540. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/containers/mq/speaker.js +0 -0
  541. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/helper.js +0 -0
  542. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/main.js +0 -0
  543. /package/framework/{v0.7.12 → v0.7.13}/lib/logger/src/redact.js +0 -0
  544. /package/framework/{v0.7.12 → v0.7.13}/lib/maintenance/package.json +0 -0
  545. /package/framework/{v0.7.12 → v0.7.13}/lib/maintenance/src/main.js +0 -0
  546. /package/framework/{v0.7.12 → v0.7.13}/lib/math/index.js +0 -0
  547. /package/framework/{v0.7.12 → v0.7.13}/lib/mcp-dispatch/package.json +0 -0
  548. /package/framework/{v0.7.12 → v0.7.13}/lib/mcp-dispatch/src/main.js +0 -0
  549. /package/framework/{v0.7.12 → v0.7.13}/lib/mcp-http/package.json +0 -0
  550. /package/framework/{v0.7.12 → v0.7.13}/lib/mcp-http/src/main.js +0 -0
  551. /package/framework/{v0.7.12 → v0.7.13}/lib/mcp-server/package.json +0 -0
  552. /package/framework/{v0.7.12 → v0.7.13}/lib/mcp-server/src/main.js +0 -0
  553. /package/framework/{v0.7.12 → v0.7.13}/lib/merge/README.md +0 -0
  554. /package/framework/{v0.7.12 → v0.7.13}/lib/merge/package.json +0 -0
  555. /package/framework/{v0.7.12 → v0.7.13}/lib/merge/src/main.js +0 -0
  556. /package/framework/{v0.7.12 → v0.7.13}/lib/message-validator/package.json +0 -0
  557. /package/framework/{v0.7.12 → v0.7.13}/lib/message-validator/src/main.js +0 -0
  558. /package/framework/{v0.7.12 → v0.7.13}/lib/metrics/package.json +0 -0
  559. /package/framework/{v0.7.12 → v0.7.13}/lib/metrics/src/main.js +0 -0
  560. /package/framework/{v0.7.12 → v0.7.13}/lib/model.js +0 -0
  561. /package/framework/{v0.7.12 → v0.7.13}/lib/money/package.json +0 -0
  562. /package/framework/{v0.7.12 → v0.7.13}/lib/money/src/main.js +0 -0
  563. /package/framework/{v0.7.12 → v0.7.13}/lib/multipart/package.json +0 -0
  564. /package/framework/{v0.7.12 → v0.7.13}/lib/multipart/src/main.js +0 -0
  565. /package/framework/{v0.7.12 → v0.7.13}/lib/net-locality/package.json +0 -0
  566. /package/framework/{v0.7.12 → v0.7.13}/lib/net-locality/src/main.js +0 -0
  567. /package/framework/{v0.7.12 → v0.7.13}/lib/nunjucks-filters/README.md +0 -0
  568. /package/framework/{v0.7.12 → v0.7.13}/lib/nunjucks-filters/package.json +0 -0
  569. /package/framework/{v0.7.12 → v0.7.13}/lib/nunjucks-filters/src/main.js +0 -0
  570. /package/framework/{v0.7.12 → v0.7.13}/lib/nunjucks-resolver/package.json +0 -0
  571. /package/framework/{v0.7.12 → v0.7.13}/lib/nunjucks-resolver/src/main.js +0 -0
  572. /package/framework/{v0.7.12 → v0.7.13}/lib/priority/package.json +0 -0
  573. /package/framework/{v0.7.12 → v0.7.13}/lib/priority/src/main.js +0 -0
  574. /package/framework/{v0.7.12 → v0.7.13}/lib/proc.js +0 -0
  575. /package/framework/{v0.7.12 → v0.7.13}/lib/push/package.json +0 -0
  576. /package/framework/{v0.7.12 → v0.7.13}/lib/push/src/main.js +0 -0
  577. /package/framework/{v0.7.12 → v0.7.13}/lib/rate-limit/package.json +0 -0
  578. /package/framework/{v0.7.12 → v0.7.13}/lib/rate-limit/src/main.js +0 -0
  579. /package/framework/{v0.7.12 → v0.7.13}/lib/release-watch/package.json +0 -0
  580. /package/framework/{v0.7.12 → v0.7.13}/lib/release-watch/src/main.js +0 -0
  581. /package/framework/{v0.7.12 → v0.7.13}/lib/render-cache/package.json +0 -0
  582. /package/framework/{v0.7.12 → v0.7.13}/lib/render-cache/src/main.js +0 -0
  583. /package/framework/{v0.7.12 → v0.7.13}/lib/render-cache-store.js +0 -0
  584. /package/framework/{v0.7.12 → v0.7.13}/lib/routing/README.md +0 -0
  585. /package/framework/{v0.7.12 → v0.7.13}/lib/routing/build.json +0 -0
  586. /package/framework/{v0.7.12 → v0.7.13}/lib/routing/package.json +0 -0
  587. /package/framework/{v0.7.12 → v0.7.13}/lib/routing-introspect/package.json +0 -0
  588. /package/framework/{v0.7.12 → v0.7.13}/lib/routing-introspect/src/main.js +0 -0
  589. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/package.json +0 -0
  590. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/backends/env.js +0 -0
  591. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/backends/exec.js +0 -0
  592. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/backends/file.js +0 -0
  593. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/declaration.js +0 -0
  594. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/env-file.js +0 -0
  595. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/main.js +0 -0
  596. /package/framework/{v0.7.12 → v0.7.13}/lib/secrets/src/sources.js +0 -0
  597. /package/framework/{v0.7.12 → v0.7.13}/lib/security-headers-emitter/package.json +0 -0
  598. /package/framework/{v0.7.12 → v0.7.13}/lib/security-headers-emitter/src/main.js +0 -0
  599. /package/framework/{v0.7.12 → v0.7.13}/lib/session-lifetime/package.json +0 -0
  600. /package/framework/{v0.7.12 → v0.7.13}/lib/session-lifetime/src/main.js +0 -0
  601. /package/framework/{v0.7.12 → v0.7.13}/lib/session-store.js +0 -0
  602. /package/framework/{v0.7.12 → v0.7.13}/lib/shell.js +0 -0
  603. /package/framework/{v0.7.12 → v0.7.13}/lib/sqlite-driver.js +0 -0
  604. /package/framework/{v0.7.12 → v0.7.13}/lib/sri/package.json +0 -0
  605. /package/framework/{v0.7.12 → v0.7.13}/lib/sri/src/main.js +0 -0
  606. /package/framework/{v0.7.12 → v0.7.13}/lib/stall-watchdog/package.json +0 -0
  607. /package/framework/{v0.7.12 → v0.7.13}/lib/stall-watchdog/src/detector.js +0 -0
  608. /package/framework/{v0.7.12 → v0.7.13}/lib/stall-watchdog/src/frames.js +0 -0
  609. /package/framework/{v0.7.12 → v0.7.13}/lib/stall-watchdog/src/main.js +0 -0
  610. /package/framework/{v0.7.12 → v0.7.13}/lib/stall-watchdog/src/worker.js +0 -0
  611. /package/framework/{v0.7.12 → v0.7.13}/lib/state.js +0 -0
  612. /package/framework/{v0.7.12 → v0.7.13}/lib/storage/package.json +0 -0
  613. /package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/main.js +0 -0
  614. /package/framework/{v0.7.12 → v0.7.13}/lib/storage/src/meta-store.js +0 -0
  615. /package/framework/{v0.7.12 → v0.7.13}/lib/storage-store.js +0 -0
  616. /package/framework/{v0.7.12 → v0.7.13}/lib/swig-filters/README.md +0 -0
  617. /package/framework/{v0.7.12 → v0.7.13}/lib/swig-filters/package.json +0 -0
  618. /package/framework/{v0.7.12 → v0.7.13}/lib/swig-filters/src/main.js +0 -0
  619. /package/framework/{v0.7.12 → v0.7.13}/lib/swig-resolver/package.json +0 -0
  620. /package/framework/{v0.7.12 → v0.7.13}/lib/swig-resolver/src/main.js +0 -0
  621. /package/framework/{v0.7.12 → v0.7.13}/lib/template-loaders/package.json +0 -0
  622. /package/framework/{v0.7.12 → v0.7.13}/lib/template-loaders/src/loaders/http.js +0 -0
  623. /package/framework/{v0.7.12 → v0.7.13}/lib/template-loaders/src/loaders/memory.js +0 -0
  624. /package/framework/{v0.7.12 → v0.7.13}/lib/template-loaders/src/main.js +0 -0
  625. /package/framework/{v0.7.12 → v0.7.13}/lib/url/README.md +0 -0
  626. /package/framework/{v0.7.12 → v0.7.13}/lib/url/index.js +0 -0
  627. /package/framework/{v0.7.12 → v0.7.13}/lib/url/routing.json +0 -0
  628. /package/framework/{v0.7.12 → v0.7.13}/lib/uuid/package.json +0 -0
  629. /package/framework/{v0.7.12 → v0.7.13}/lib/uuid/src/main.js +0 -0
  630. /package/framework/{v0.7.12 → v0.7.13}/lib/validator.js +0 -0
  631. /package/framework/{v0.7.12 → v0.7.13}/lib/watcher/package.json +0 -0
  632. /package/framework/{v0.7.12 → v0.7.13}/lib/watcher/src/main.js +0 -0
  633. /package/framework/{v0.7.12 → v0.7.13}/lib/ws-framing/package.json +0 -0
  634. /package/framework/{v0.7.12 → v0.7.13}/lib/ws-framing/src/main.js +0 -0
  635. /package/framework/{v0.7.12 → v0.7.13}/lib/ws-query/package.json +0 -0
  636. /package/framework/{v0.7.12 → v0.7.13}/lib/ws-query/src/main.js +0 -0
  637. /package/framework/{v0.7.12 → v0.7.13}/lib/ws-session/package.json +0 -0
  638. /package/framework/{v0.7.12 → v0.7.13}/lib/ws-session/src/main.js +0 -0
@@ -402,10 +402,13 @@ function Routing() {
402
402
  * Parse routing for mathcing url
403
403
  *
404
404
  * A DELETE rule that declares `requirements` is matched here, by the DELETE branch, rather
405
- * than by `fitsWithRequirements`: each placeholder's regex is tested against its URL segment
406
- * — a placeholder without a requirement accepts any non-empty segment (#B956) — and a matched
407
- * value is written to `request[method]` and, for a placeholder the rule binds in `param`, to
408
- * `request.params` (#B955).
405
+ * than by `fitsWithRequirements`. A placeholder's name is its letters, digits and underscores
406
+ * and its value the whole segment (#B1149); a placeholder scores only when the rule binds it in
407
+ * `param`, as on GET: one without a requirement then accepts any non-empty segment (#B956,
408
+ * #B1144), and one with a regex requirement is tested against its URL segment (#B1155). A
409
+ * matched value is written to `request[method]` and to `request.params` (#B955). A segment
410
+ * holding two or more placeholders, or text before its placeholder, matches only as written
411
+ * (#B692).
409
412
  *
410
413
  * @param {object} params - `params` is the same `request.routing` that can be retried in controller with: req.routing
411
414
  * @param {string} url
@@ -478,7 +481,22 @@ function Routing() {
478
481
  ++score;
479
482
  continue;
480
483
  }
481
- let _key = uRo[p].substring(1);
484
+ // #B692 — a segment holding two or more placeholders (`:from-:to`) never matches a
485
+ // value, here as in fitsWithRequirements: it scores only when it equals the URL's
486
+ // segment (above). Read below, it would be keyed by its first name and match any
487
+ // value that name's requirement accepts; up to 0.7.12, keyed `from-:to`, it matched
488
+ // any non-empty segment.
489
+ if ( (uRo[p].match(/\:\w+/g) || []).length > 1 ) {
490
+ continue;
491
+ }
492
+ // #B1149 — a placeholder's name is its letters, digits and underscores, as
493
+ // fitsWithRequirements reads it on GET (`/\:\w+/`): `:id.json` names `id`, and its
494
+ // value is the whole segment. The key was the whole rest of the segment
495
+ // (`uRo[p].substring(1)`), so a requirement on `id` was never applied to
496
+ // `/feed/:id.json`, which then matched any segment and bound `id.json`. A segment
497
+ // that does not start with a name keeps that key: it scores only when it equals the
498
+ // URL's segment (above).
499
+ let _key = /^:\w/.test(uRo[p]) ? uRo[p].match(/^:(\w+)/)[1] : uRo[p].substring(1);
482
500
  // #B650 — a requirement counts only when the rule declares it itself.
483
501
  // was: if ( typeof(params.requirements[_key]) == 'undefined' ) {
484
502
  if ( !hasOwn(params.requirements, _key) || typeof(params.requirements[_key]) == 'undefined' ) {
@@ -489,6 +507,12 @@ function Routing() {
489
507
  // every request. A static segment that differs from the URL's is still
490
508
  // skipped unscored (the `/^:/` test), so such a rule still does not match.
491
509
  if ( /^:/.test(uRo[p]) && uRe[p] ) {
510
+ // #B1144 — and only when the rule binds the placeholder in its own
511
+ // `param`, as fitsWithRequirements requires on GET: an unbound one scored
512
+ // here, so a DELETE route answered where its GET twin matches nothing.
513
+ if ( !hasOwn(params.param, _key) || typeof(params.param[_key]) == 'undefined' ) {
514
+ continue;
515
+ }
492
516
  ++score;
493
517
  request[method][_key] = uRe[p];
494
518
  if ( hasOwn(params.param, _key) && typeof(request.params) != 'undefined' ) {
@@ -520,10 +544,20 @@ function Routing() {
520
544
  if (
521
545
  /^:/.test(uRo[p])
522
546
  && typeof(condition) != 'undefined'
547
+ // #B1155 — and only when the rule binds the placeholder in its own `param`, as
548
+ // fitsWithRequirements requires on GET and as an unrequired placeholder needs
549
+ // above (#B1144). The requirement alone scored it, so a DELETE route answered
550
+ // where its GET twin matches nothing, and the value reached `request[method]`
551
+ // only, never `request.params`. Checked before the expression is compiled.
552
+ && hasOwn(params.param, _key)
553
+ && typeof(params.param[_key]) != 'undefined'
523
554
  && new RegExp(condition, conditionFlags).test(uRe[p])
524
555
  ) {
556
+ // #B1149 — the write is keyed by the placeholder's name (`_key`), as the
557
+ // requirement above is.
558
+ // was: request[method][uRo[p].substring(1)] = uRe[p];
525
559
  ++score;
526
- request[method][uRo[p].substring(1)] = uRe[p];
560
+ request[method][_key] = uRe[p];
527
561
  // #B955 — the matched URL value reaches `request.params` too, as the GET
528
562
  // path's `fitsWithRequirements` writes it, for a placeholder the rule binds
529
563
  // in `param` (the same gate as there). This branch wrote `request[method]`
@@ -594,7 +628,12 @@ function Routing() {
594
628
  var requiremements = Object.getOwnPropertyNames(params.requirements);
595
629
  var r = 0;
596
630
  // In order to filter variables
597
- var uRoVars = uRo.join(',').match(/\:[-_a-z0-9]+/g);
631
+ // #B1153 — the placeholder names in the router's own grammar: letters, digits and
632
+ // underscores, in any case. The class held no capital, so `:userId` was read as `:user`
633
+ // (a validator's `query.data` lost the `:userId` it referenced) and a URL whose names all
634
+ // hold capitals (`/u/:ID`) gave null, whose `indexOf` threw.
635
+ // was: var uRoVars = uRo.join(',').match(/\:[-_a-z0-9]+/g);
636
+ var uRoVars = uRo.join(',').match(/\:\w+/g) || [];
598
637
  // var uRoVarCount = (uRoVars) ? uRoVars.length : 0;
599
638
  while ( r < requiremements.length ) {
600
639
  // requirement name as `key`
@@ -610,7 +649,9 @@ function Routing() {
610
649
  break;
611
650
  }
612
651
  // updating uRoVars
613
- uRoVars = uRo.join(',').match(/\:[-_a-z0-9]+/g);
652
+ // #B1153 — the same grammar as above.
653
+ // was: uRoVars = uRo.join(',').match(/\:[-_a-z0-9]+/g);
654
+ uRoVars = uRo.join(',').match(/\:\w+/g) || [];
614
655
  /**
615
656
  * "requirements" : {
616
657
  * "email": "validator::{ isEmail: true, isString: [7] }"
@@ -644,7 +685,9 @@ function Routing() {
644
685
  // :variable only
645
686
  if (!/^\:/.test(uRo[p])) continue;
646
687
 
647
- let pName = uRo[p].replace(/^\:/, '');
688
+ // #B1153 — the name, in the same grammar as `uRoVars`.
689
+ // was: let pName = uRo[p].replace(/^\:/, '');
690
+ let pName = ( uRo[p].match(/^\:(\w+)/) || [] )[1] || '';
648
691
  if ( pName != '' && typeof(uRe[p]) != 'undefined' ) {
649
692
  _data[ pName ] = uRe[p];
650
693
  // Updating params
@@ -762,7 +805,13 @@ function Routing() {
762
805
  //var isValid = new Validator('routing', { email: "contact@gina.io"}, null, {email: {isEmail: true}} ).isEmail().valid;
763
806
  var matched = -1
764
807
  , _param = urlVar.match(/\:\w+/g)
765
- , regex = new RegExp(urlVar, 'g')
808
+ // #B1148 — the segment as written, its regular-expression characters escaped: the
809
+ // rewrites below replace that text literally. Compiled as written, a segment that is not
810
+ // a valid regular expression (`:id)`, `[:id`) threw « Invalid regular expression » on
811
+ // every request that reached the rule: a 500 naming the rule, and the route loop tried
812
+ // no later rule.
813
+ // was: , regex = new RegExp(urlVar, 'g')
814
+ , regex = new RegExp(urlVar.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g')
766
815
  , re = null
767
816
  , flags = null
768
817
  , key = null
@@ -778,7 +827,12 @@ function Routing() {
778
827
  , requestMethod = request.method.toLowerCase()
779
828
  ;
780
829
 
781
- if (!_param.length) return false;
830
+ // #B1146 — a segment holding a `:` with no name after it (`/t/12:`) holds no placeholder,
831
+ // so the rule matches that segment only as written. `match()` returns null there, and
832
+ // reading its `length` threw on every request that reached the rule: a 500, and the route
833
+ // loop tried no later rule.
834
+ // was: if (!_param.length) return false;
835
+ if (!_param || !_param.length) return false;
782
836
 
783
837
  // #B688 — the path, namespace and title rewrites take the URL value through a FUNCTION
784
838
  // replacer. A string replacement expanded `$`-patterns found in the value (`` $` `` the
@@ -893,7 +947,12 @@ function Routing() {
893
947
  */
894
948
  _data = {}; _ruleObj = {}; _rule = {}; str = '';
895
949
  urlVar.replace( new RegExp('[^'+ key +']','g'), function(){ str += arguments[0] });
896
- _data[key] = urlVal.replace( new RegExp(str, 'g'), '');
950
+ // #B1148 — the segment's other characters are escaped, as `urlVar` is for the rewrites
951
+ // above: compiled as written, a segment that is not a valid regular expression (`:id)`,
952
+ // `[:id`) threw here, a 500 naming the rule, when its placeholder had a `validator::`
953
+ // requirement.
954
+ // was: _data[key] = urlVal.replace( new RegExp(str, 'g'), '');
955
+ _data[key] = urlVal.replace( new RegExp(str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&'), 'g'), '');
897
956
  try {
898
957
  //_ruleObj = JSON.parse(regex.split(/::/).splice(1)[0].replace(/([^\W+ true false])+(\w+)/g, '"$&"'));
899
958
  _ruleObj = JSON.parse(
@@ -966,132 +1025,142 @@ function Routing() {
966
1025
 
967
1026
  } else { // slow one
968
1027
 
969
- // No requirements defined — multi-param routes without requirements are not matchable
970
- if ( typeof(params.requirements) == 'undefined' ) return false;
1028
+ // #B692 — a URL segment that holds two or more placeholders (`/shop/item-:sku-:lang`)
1029
+ // never matches. The block below took `params.url`, the request path, as its template and
1030
+ // compared the request with itself, so it matched only the segment's own literal text;
1031
+ // with requirements, a decodable %-escape (`/shop/item-1%202-fr`) made it read `key[0]` on
1032
+ // a null `key` and throw: a 500, and the route loop tried no later rule. A boot warning
1033
+ // lists such segments (core/config.param-bindings.js, findMultiPlaceholderSegments).
1034
+ return false;
971
1035
 
972
- // In order to support rules defined like :
973
- // { params.url } => `/section/:name/page:number`
974
- // { request.url } => `/section/plante/page4`
1036
+ // was (the block, commented out line by line):
975
1037
  //
976
- // with keys = [ ":name", ":number" ]
977
-
978
- var keys = _param
979
- , tplUrl = params.url
980
- , url = request.url
981
- , values = {}
982
- , strVal = ''
983
- , started = false
984
- , i = 0
985
- ;
986
-
987
- for (var c = 0, posLen = url.length; c < posLen; ++c) {
988
- if (url.charAt(c) == tplUrl.charAt(i) && !started) {
989
- ++i
990
- continue
991
- } else if (strVal == '') { // start
992
-
993
- started = true;
994
- strVal += url.charAt(c);
995
- } else if (c > (tplUrl.indexOf(keys[0]) + keys[0].length)) {
996
-
997
- regex = params.requirements[keys[0]];
998
- urlVal = strVal.substring(0, strVal.length);
999
-
1000
- if (/^\//.test(regex)) {
1001
- re = regex.match(/\/(.*)\//).pop();
1002
- flags = regex.replace('/' + re + '/', '');
1003
-
1004
- tested = new RegExp(re, flags).test(urlVal)
1005
-
1006
- } else if ( /^validator\:\:/.test(regex) ) {
1007
- /**
1008
- * "requirements" : {
1009
- * "id" : "/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i",
1010
- * "email": "validator::{ isEmail: true, isString: [7] }"
1011
- * }
1012
- *
1013
- * e.g.: tested = new Validator('routing', _data, null, {email: {isEmail: true}} ).isEmail().valid;
1014
- */
1015
- _data = {}; _ruleObj = {}; _rule = {}; str = '';
1016
- urlVar.replace( new RegExp('[^'+ key[0] +']','g'), function(){ str += arguments[0] });
1017
- _data[key[0]] = urlVal.replace( new RegExp(str, 'g'), '');
1018
- _ruleObj = JSON.parse(regex.split(/::/).splice(1)[0].replace(/([^\W+ true false])+(\w+)/g, '"$&"'));
1019
- _rule[key[0]] = _ruleObj;
1020
- _validator = new Validator('routing', _data, null, _rule );
1021
-
1022
- for (let rule in _ruleObj) {
1023
- if (Array.isArray(_ruleObj[rule])) { // has args
1024
- _validator[key[0]][rule].apply(_validator[key[0]], _ruleObj[rule])
1025
- } else {
1026
- _validator[key[0]][rule](_ruleObj[rule])
1027
- }
1028
- }
1029
- tested = _validator.isValid();
1030
- } else {
1031
- tested = new RegExp(params.requirements[key[0]]).test(urlVal)
1032
- }
1033
-
1034
- if (tested) {
1035
- values[keys[0].substring(1)] = urlVal
1036
- } else {
1037
- return false
1038
- }
1039
-
1040
- strVal = '';
1041
- started = false;
1042
- i = (tplUrl.indexOf(keys[0]) + keys[0].length);
1043
- c -= 1;
1044
-
1045
- keys.splice(0, 1)
1046
- } else {
1047
- strVal += url.charAt(c);
1048
- ++i
1049
- }
1050
-
1051
- if (c == posLen - 1) {
1052
-
1053
- regex = params.requirements[keys[0]];
1054
- urlVal = strVal.substring(0, strVal.length);
1055
-
1056
- if (/^\//.test(regex)) {
1057
- re = regex.match(/\/(.*)\//).pop();
1058
- flags = regex.replace('/' + re + '/', '');
1059
-
1060
- tested = new RegExp(re, flags).test(urlVal)
1061
-
1062
- } else {
1063
- tested = new RegExp(params.requirements[key]).test(urlVal)
1064
- }
1065
-
1066
- if (tested) {
1067
- values[keys[0].substring(1)] = urlVal
1068
- } else {
1069
- return false
1070
- }
1071
- }
1072
- }
1073
-
1074
- if (values.count() == keys.length) {
1075
- key = null;
1076
- for (key in values) {
1077
- switch (values[key]) {
1078
- case 'null':
1079
- values[key] = null;
1080
- break;
1081
- case 'false':
1082
- values[key] = false;
1083
- break;
1084
- case 'true':
1085
- //case 'on':
1086
- values[key] = true;
1087
- break
1088
- default:
1089
- break;
1090
- }
1091
- request.params[key] = values[key];
1092
- }
1093
- return true
1094
- }
1038
+ // // No requirements defined — multi-param routes without requirements are not matchable
1039
+ // if ( typeof(params.requirements) == 'undefined' ) return false;
1040
+ //
1041
+ // // In order to support rules defined like :
1042
+ // // { params.url } => `/section/:name/page:number`
1043
+ // // { request.url } => `/section/plante/page4`
1044
+ // //
1045
+ // // with keys = [ ":name", ":number" ]
1046
+ //
1047
+ // var keys = _param
1048
+ // , tplUrl = params.url
1049
+ // , url = request.url
1050
+ // , values = {}
1051
+ // , strVal = ''
1052
+ // , started = false
1053
+ // , i = 0
1054
+ // ;
1055
+ //
1056
+ // for (var c = 0, posLen = url.length; c < posLen; ++c) {
1057
+ // if (url.charAt(c) == tplUrl.charAt(i) && !started) {
1058
+ // ++i
1059
+ // continue
1060
+ // } else if (strVal == '') { // start
1061
+ //
1062
+ // started = true;
1063
+ // strVal += url.charAt(c);
1064
+ // } else if (c > (tplUrl.indexOf(keys[0]) + keys[0].length)) {
1065
+ //
1066
+ // regex = params.requirements[keys[0]];
1067
+ // urlVal = strVal.substring(0, strVal.length);
1068
+ //
1069
+ // if (/^\//.test(regex)) {
1070
+ // re = regex.match(/\/(.*)\//).pop();
1071
+ // flags = regex.replace('/' + re + '/', '');
1072
+ //
1073
+ // tested = new RegExp(re, flags).test(urlVal)
1074
+ //
1075
+ // } else if ( /^validator\:\:/.test(regex) ) {
1076
+ // /**
1077
+ // * "requirements" : {
1078
+ // * "id" : "/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i",
1079
+ // * "email": "validator::{ isEmail: true, isString: [7] }"
1080
+ // * }
1081
+ // *
1082
+ // * e.g.: tested = new Validator('routing', _data, null, {email: {isEmail: true}} ).isEmail().valid;
1083
+ // */
1084
+ // _data = {}; _ruleObj = {}; _rule = {}; str = '';
1085
+ // urlVar.replace( new RegExp('[^'+ key[0] +']','g'), function(){ str += arguments[0] });
1086
+ // _data[key[0]] = urlVal.replace( new RegExp(str, 'g'), '');
1087
+ // _ruleObj = JSON.parse(regex.split(/::/).splice(1)[0].replace(/([^\W+ true false])+(\w+)/g, '"$&"'));
1088
+ // _rule[key[0]] = _ruleObj;
1089
+ // _validator = new Validator('routing', _data, null, _rule );
1090
+ //
1091
+ // for (let rule in _ruleObj) {
1092
+ // if (Array.isArray(_ruleObj[rule])) { // has args
1093
+ // _validator[key[0]][rule].apply(_validator[key[0]], _ruleObj[rule])
1094
+ // } else {
1095
+ // _validator[key[0]][rule](_ruleObj[rule])
1096
+ // }
1097
+ // }
1098
+ // tested = _validator.isValid();
1099
+ // } else {
1100
+ // tested = new RegExp(params.requirements[key[0]]).test(urlVal)
1101
+ // }
1102
+ //
1103
+ // if (tested) {
1104
+ // values[keys[0].substring(1)] = urlVal
1105
+ // } else {
1106
+ // return false
1107
+ // }
1108
+ //
1109
+ // strVal = '';
1110
+ // started = false;
1111
+ // i = (tplUrl.indexOf(keys[0]) + keys[0].length);
1112
+ // c -= 1;
1113
+ //
1114
+ // keys.splice(0, 1)
1115
+ // } else {
1116
+ // strVal += url.charAt(c);
1117
+ // ++i
1118
+ // }
1119
+ //
1120
+ // if (c == posLen - 1) {
1121
+ //
1122
+ // regex = params.requirements[keys[0]];
1123
+ // urlVal = strVal.substring(0, strVal.length);
1124
+ //
1125
+ // if (/^\//.test(regex)) {
1126
+ // re = regex.match(/\/(.*)\//).pop();
1127
+ // flags = regex.replace('/' + re + '/', '');
1128
+ //
1129
+ // tested = new RegExp(re, flags).test(urlVal)
1130
+ //
1131
+ // } else {
1132
+ // tested = new RegExp(params.requirements[key]).test(urlVal)
1133
+ // }
1134
+ //
1135
+ // if (tested) {
1136
+ // values[keys[0].substring(1)] = urlVal
1137
+ // } else {
1138
+ // return false
1139
+ // }
1140
+ // }
1141
+ // }
1142
+ //
1143
+ // if (values.count() == keys.length) {
1144
+ // key = null;
1145
+ // for (key in values) {
1146
+ // switch (values[key]) {
1147
+ // case 'null':
1148
+ // values[key] = null;
1149
+ // break;
1150
+ // case 'false':
1151
+ // values[key] = false;
1152
+ // break;
1153
+ // case 'true':
1154
+ // //case 'on':
1155
+ // values[key] = true;
1156
+ // break
1157
+ // default:
1158
+ // break;
1159
+ // }
1160
+ // request.params[key] = values[key];
1161
+ // }
1162
+ // return true
1163
+ // }
1095
1164
  }
1096
1165
 
1097
1166
  return false
@@ -1875,7 +1944,11 @@ function Routing() {
1875
1944
  if (
1876
1945
  /\:/.test(route.url)
1877
1946
  // Avoiding : `/bundle/path?redirect=https://bundle-dev-scope-v1.docmain.com:3132/bundle/referrer-path`
1878
- && !/\:d+\//.test(route.url)
1947
+ // #B1152 — a port (`host:3132/`) is `\d`: the pattern read a literal `d`, so a value
1948
+ // holding `host:port/` was reported as a missing placeholder and an unfilled `/x/:d/y`
1949
+ // was not.
1950
+ // was: && !/\:d+\//.test(route.url)
1951
+ && !/\:\d+\//.test(route.url)
1879
1952
  && !/\:\/\//.test(route.url)
1880
1953
  ) {
1881
1954
  var paramList = route.url
@@ -690,7 +690,9 @@ module.exports = function createLocalCasDriver(name, conf, metaStore) {
690
690
  * the REAL error reported, and any reference this call took is rolled
691
691
  * back, so a caller that got no key never leaves a refcount behind.
692
692
  *
693
- * @param {object} stream - Any readable stream.
693
+ * @param {object} stream - A readable stream that has not ended; one that has
694
+ * already ended or been destroyed is refused
695
+ * (`err.code` `STORAGE_STREAM_SPENT`, #B1060).
694
696
  * @param {object} [meta] - Client-supplied, untrusted.
695
697
  * @param {string} [meta.originalName] - Filename; stored verbatim in metadata.
696
698
  * Unlike `sharded`, it contributes NOTHING
@@ -700,7 +702,9 @@ module.exports = function createLocalCasDriver(name, conf, metaStore) {
700
702
  * @returns {void}
701
703
  *
702
704
  * @example
703
- * driver.put(req, { originalName: 'invoice.pdf' }, function (err, res) {
705
+ * // gina has already read the request body when the action runs: pass a
706
+ * // stream of the uploaded file, never `req` itself (#B1060)
707
+ * driver.put(fs.createReadStream(req.files[0].path), { originalName: 'invoice.pdf' }, function (err, res) {
704
708
  * if (err) { return next(err); }
705
709
  * record.blobKey = res.key; // identical bytes => identical key
706
710
  * if (res.deduplicated) { } // no new bytes were stored
@@ -715,6 +719,11 @@ module.exports = function createLocalCasDriver(name, conf, metaStore) {
715
719
  if ( !stream || typeof stream.pipe !== 'function' ) {
716
720
  return fn(new Error('[storage:' + name + '] put() requires a readable stream'));
717
721
  }
722
+ // #B1060 — a source that has already ended or been destroyed has no
723
+ // bytes left: refuse it before anything opens (it used to store an
724
+ // empty object under the digest of no bytes).
725
+ var spentErr = util.spentStreamError(stream, name, 'put');
726
+ if ( spentErr ) { return fn(spentErr); }
718
727
 
719
728
  var now = new Date();
720
729
  var tmpId = util.ulid(now.getTime());
@@ -597,7 +597,9 @@ module.exports = function createLocalStreamDriver(name, conf, metaStore) {
597
597
  * size is measured from the published file on disk, never from the
598
598
  * client and never from an in-flight counter (#B142).
599
599
  *
600
- * @param {object} stream - Any readable stream.
600
+ * @param {object} stream - A readable stream that has not ended; one that has
601
+ * already ended or been destroyed is refused
602
+ * (`err.code` `STORAGE_STREAM_SPENT`, #B1060).
601
603
  * @param {object} [meta] - Client-supplied, untrusted.
602
604
  * @param {string} [meta.originalName] - Filename; stored verbatim in metadata, and
603
605
  * the only source of the path extension.
@@ -606,7 +608,9 @@ module.exports = function createLocalStreamDriver(name, conf, metaStore) {
606
608
  * @returns {void}
607
609
  *
608
610
  * @example
609
- * driver.put(req, { originalName: 'talk.mp4' }, function (err, res) {
611
+ * // gina has already read the request body when the action runs: pass a
612
+ * // stream of the uploaded file, never `req` itself (#B1060)
613
+ * driver.put(fs.createReadStream(req.files[0].path), { originalName: 'talk.mp4' }, function (err, res) {
610
614
  * if (err) { return next(err); }
611
615
  * record.assetKey = res.key; // opaque — store it, never parse it
612
616
  * });
@@ -620,6 +624,11 @@ module.exports = function createLocalStreamDriver(name, conf, metaStore) {
620
624
  if ( !stream || typeof stream.pipe !== 'function' ) {
621
625
  return fn(new Error('[storage:' + name + '] put() requires a readable stream'));
622
626
  }
627
+ // #B1060 — a source that has already ended or been destroyed has no
628
+ // bytes left: refuse it before anything opens (it used to store an
629
+ // empty object).
630
+ var spentErr = util.spentStreamError(stream, name, 'put');
631
+ if ( spentErr ) { return fn(spentErr); }
623
632
 
624
633
  var now = new Date();
625
634
  var id = util.ulid(now.getTime());
@@ -841,6 +850,11 @@ module.exports = function createLocalStreamDriver(name, conf, metaStore) {
841
850
  * `expectedSize` IS an error — that is where a lying `expectedSize` is
842
851
  * actually stopped, since the declared value is only advisory.
843
852
  *
853
+ * A source that has ALREADY ended or been destroyed when the call is
854
+ * made is refused (`err.code` `STORAGE_STREAM_SPENT`) before the data
855
+ * file opens (#B1060): it used to answer `{length: 0}` with no error
856
+ * (ended) or never call back and keep the file open (destroyed).
857
+ *
844
858
  * Durability order is load-bearing: the data is fsynced BEFORE the
845
859
  * marker is created, so a surviving marker implies durable bytes. The
846
860
  * marker's own durability is deliberately not guaranteed — a lost
@@ -849,14 +863,18 @@ module.exports = function createLocalStreamDriver(name, conf, metaStore) {
849
863
  *
850
864
  * @param {string} uploadId - The session id from `createUpload`.
851
865
  * @param {number} offset - Byte offset this segment starts at; integer >= 0.
852
- * @param {object} stream - Any readable stream carrying the segment's bytes.
866
+ * @param {object} stream - A readable stream carrying the segment's bytes, not yet
867
+ * ended; one that has already ended or been destroyed is refused
868
+ * (`err.code` `STORAGE_STREAM_SPENT`, #B1060).
853
869
  * @param {function} fn - `fn(err, {offset, length, received})` — `length` is what
854
870
  * THIS call made durable, `received` the session's total
855
871
  * covered bytes afterwards.
856
872
  * @returns {void}
857
873
  *
858
874
  * @example
859
- * driver.writeSegment(uploadId, 8388608, req, function (err, r) {
875
+ * // the segment arrives as a multipart file part; gina has already read the
876
+ * // request itself, so pass a stream of the part's temporary file (#B1060)
877
+ * driver.writeSegment(uploadId, 8388608, fs.createReadStream(req.files[0].path), function (err, r) {
860
878
  * if (err) { return next(err); }
861
879
  * res.setHeader('x-received', r.received);
862
880
  * });
@@ -868,6 +886,11 @@ module.exports = function createLocalStreamDriver(name, conf, metaStore) {
868
886
  if ( !stream || typeof stream.pipe !== 'function' ) {
869
887
  return fn(new Error('[storage:' + name + '] writeSegment() requires a readable stream'));
870
888
  }
889
+ // #B1060 — an ended source answered {length: 0} with no error, and a
890
+ // destroyed one never called back and kept the data file open:
891
+ // refuse either before the file opens.
892
+ var spentErr = util.spentStreamError(stream, name, 'writeSegment');
893
+ if ( spentErr ) { return fn(spentErr); }
871
894
  var s = resolveSession(uploadId);
872
895
  if ( s.error ) { return fn(s.error); }
873
896
  if ( !Number.isInteger(offset) || offset < 0 ) {
@@ -39,7 +39,7 @@
39
39
  * var driver = createLocalDriver('assets',
40
40
  * { root: '/var/data/assets', strategy: 'sharded', maxObjectSize: 52428800 },
41
41
  * metaStore);
42
- * driver.put(req, { originalName: 'a.pdf' }, function (err, res) { });
42
+ * driver.put(fs.createReadStream(req.files[0].path), { originalName: 'a.pdf' }, function (err, res) { });
43
43
  */
44
44
 
45
45
  var fs = require('fs');
@@ -226,7 +226,9 @@ module.exports = function createLocalDriver(name, conf, metaStore) {
226
226
  * object's size is its buffer length — the same bytes the store
227
227
  * persists in the same transaction.
228
228
  *
229
- * @param {object} stream - Any readable stream.
229
+ * @param {object} stream - A readable stream that has not ended; one that has
230
+ * already ended or been destroyed is refused
231
+ * (`err.code` `STORAGE_STREAM_SPENT`, #B1060).
230
232
  * @param {object} [meta] - Client-supplied, untrusted.
231
233
  * @param {string} [meta.originalName] - Filename; stored verbatim in metadata,
232
234
  * and the only source of the path extension.
@@ -235,7 +237,9 @@ module.exports = function createLocalDriver(name, conf, metaStore) {
235
237
  * @returns {void}
236
238
  *
237
239
  * @example
238
- * driver.put(req, { originalName: 'invoice.pdf' }, function (err, res) {
240
+ * // gina has already read the request body when the action runs: pass a
241
+ * // stream of the uploaded file, never `req` itself (#B1060)
242
+ * driver.put(fs.createReadStream(req.files[0].path), { originalName: 'invoice.pdf' }, function (err, res) {
239
243
  * if (err) { return next(err); }
240
244
  * record.storageKey = res.key; // opaque — store it, never parse it
241
245
  * });
@@ -249,6 +253,11 @@ module.exports = function createLocalDriver(name, conf, metaStore) {
249
253
  if ( !stream || typeof stream.pipe !== 'function' ) {
250
254
  return fn(new Error('[storage:' + name + '] put() requires a readable stream'));
251
255
  }
256
+ // #B1060 — a source that has already ended or been destroyed has no
257
+ // bytes left: refuse it before anything opens (it used to store an
258
+ // empty object, or never call back with size tiering on).
259
+ var spentErr = util.spentStreamError(stream, name, 'put');
260
+ if ( spentErr ) { return fn(spentErr); }
252
261
 
253
262
  var now = new Date();
254
263
  var id = util.ulid(now.getTime());