@tachybase/plugin-print-template 0.23.8

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 (759) hide show
  1. package/.turbo/turbo-build.log +14 -0
  2. package/README.md +1 -0
  3. package/client.d.ts +2 -0
  4. package/client.js +1 -0
  5. package/dist/client/index.d.ts +7 -0
  6. package/dist/client/index.js +1 -0
  7. package/dist/externalVersion.js +7 -0
  8. package/dist/index.d.ts +2 -0
  9. package/dist/index.js +39 -0
  10. package/dist/node_modules/bullmq/LICENSE +21 -0
  11. package/dist/node_modules/bullmq/dist/cjs/classes/async-fifo-queue.js +129 -0
  12. package/dist/node_modules/bullmq/dist/cjs/classes/backoffs.js +48 -0
  13. package/dist/node_modules/bullmq/dist/cjs/classes/child-pool.js +71 -0
  14. package/dist/node_modules/bullmq/dist/cjs/classes/child-processor.js +154 -0
  15. package/dist/node_modules/bullmq/dist/cjs/classes/child.js +210 -0
  16. package/dist/node_modules/bullmq/dist/cjs/classes/errors/delayed-error.js +20 -0
  17. package/dist/node_modules/bullmq/dist/cjs/classes/errors/index.js +8 -0
  18. package/dist/node_modules/bullmq/dist/cjs/classes/errors/rate-limit-error.js +19 -0
  19. package/dist/node_modules/bullmq/dist/cjs/classes/errors/unrecoverable-error.js +20 -0
  20. package/dist/node_modules/bullmq/dist/cjs/classes/errors/waiting-children-error.js +20 -0
  21. package/dist/node_modules/bullmq/dist/cjs/classes/flow-producer.js +339 -0
  22. package/dist/node_modules/bullmq/dist/cjs/classes/index.js +25 -0
  23. package/dist/node_modules/bullmq/dist/cjs/classes/job-scheduler.js +221 -0
  24. package/dist/node_modules/bullmq/dist/cjs/classes/job.js +893 -0
  25. package/dist/node_modules/bullmq/dist/cjs/classes/main-base.js +44 -0
  26. package/dist/node_modules/bullmq/dist/cjs/classes/main-worker.d.ts +1 -0
  27. package/dist/node_modules/bullmq/dist/cjs/classes/main-worker.js +10 -0
  28. package/dist/node_modules/bullmq/dist/cjs/classes/main.d.ts +1 -0
  29. package/dist/node_modules/bullmq/dist/cjs/classes/main.js +10 -0
  30. package/dist/node_modules/bullmq/dist/cjs/classes/queue-base.js +155 -0
  31. package/dist/node_modules/bullmq/dist/cjs/classes/queue-events-producer.js +42 -0
  32. package/dist/node_modules/bullmq/dist/cjs/classes/queue-events.js +125 -0
  33. package/dist/node_modules/bullmq/dist/cjs/classes/queue-getters.js +450 -0
  34. package/dist/node_modules/bullmq/dist/cjs/classes/queue-keys.js +43 -0
  35. package/dist/node_modules/bullmq/dist/cjs/classes/queue.js +635 -0
  36. package/dist/node_modules/bullmq/dist/cjs/classes/redis-connection.js +270 -0
  37. package/dist/node_modules/bullmq/dist/cjs/classes/repeat.js +204 -0
  38. package/dist/node_modules/bullmq/dist/cjs/classes/sandbox.js +75 -0
  39. package/dist/node_modules/bullmq/dist/cjs/classes/scripts.js +1035 -0
  40. package/dist/node_modules/bullmq/dist/cjs/classes/worker.js +819 -0
  41. package/dist/node_modules/bullmq/dist/cjs/commands/addDelayedJob-6.lua +119 -0
  42. package/dist/node_modules/bullmq/dist/cjs/commands/addJobScheduler-2.lua +91 -0
  43. package/dist/node_modules/bullmq/dist/cjs/commands/addLog-2.lua +30 -0
  44. package/dist/node_modules/bullmq/dist/cjs/commands/addParentJob-4.lua +104 -0
  45. package/dist/node_modules/bullmq/dist/cjs/commands/addPrioritizedJob-8.lua +117 -0
  46. package/dist/node_modules/bullmq/dist/cjs/commands/addRepeatableJob-2.lua +84 -0
  47. package/dist/node_modules/bullmq/dist/cjs/commands/addStandardJob-8.lua +122 -0
  48. package/dist/node_modules/bullmq/dist/cjs/commands/changeDelay-4.lua +55 -0
  49. package/dist/node_modules/bullmq/dist/cjs/commands/changePriority-7.lua +68 -0
  50. package/dist/node_modules/bullmq/dist/cjs/commands/cleanJobsInSet-3.lua +55 -0
  51. package/dist/node_modules/bullmq/dist/cjs/commands/drain-5.lua +41 -0
  52. package/dist/node_modules/bullmq/dist/cjs/commands/extendLock-2.lua +23 -0
  53. package/dist/node_modules/bullmq/dist/cjs/commands/extendLocks-1.lua +44 -0
  54. package/dist/node_modules/bullmq/dist/cjs/commands/getCounts-1.lua +36 -0
  55. package/dist/node_modules/bullmq/dist/cjs/commands/getCountsPerPriority-4.lua +35 -0
  56. package/dist/node_modules/bullmq/dist/cjs/commands/getJobScheduler-1.lua +19 -0
  57. package/dist/node_modules/bullmq/dist/cjs/commands/getRanges-1.lua +70 -0
  58. package/dist/node_modules/bullmq/dist/cjs/commands/getRateLimitTtl-1.lua +20 -0
  59. package/dist/node_modules/bullmq/dist/cjs/commands/getState-8.lua +65 -0
  60. package/dist/node_modules/bullmq/dist/cjs/commands/getStateV2-8.lua +58 -0
  61. package/dist/node_modules/bullmq/dist/cjs/commands/includes/addBaseMarkerIfNeeded.lua +9 -0
  62. package/dist/node_modules/bullmq/dist/cjs/commands/includes/addDelayMarkerIfNeeded.lua +15 -0
  63. package/dist/node_modules/bullmq/dist/cjs/commands/includes/addJobInTargetList.lua +11 -0
  64. package/dist/node_modules/bullmq/dist/cjs/commands/includes/addJobWithPriority.lua +14 -0
  65. package/dist/node_modules/bullmq/dist/cjs/commands/includes/batches.lua +18 -0
  66. package/dist/node_modules/bullmq/dist/cjs/commands/includes/checkItemInList.lua +12 -0
  67. package/dist/node_modules/bullmq/dist/cjs/commands/includes/cleanList.lua +47 -0
  68. package/dist/node_modules/bullmq/dist/cjs/commands/includes/cleanSet.lua +66 -0
  69. package/dist/node_modules/bullmq/dist/cjs/commands/includes/collectMetrics.lua +46 -0
  70. package/dist/node_modules/bullmq/dist/cjs/commands/includes/deduplicateJob.lua +24 -0
  71. package/dist/node_modules/bullmq/dist/cjs/commands/includes/destructureJobKey.lua +12 -0
  72. package/dist/node_modules/bullmq/dist/cjs/commands/includes/findPage.lua +70 -0
  73. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getDelayedScore.lua +25 -0
  74. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getJobsInZset.lua +13 -0
  75. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getNextDelayedTimestamp.lua +12 -0
  76. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getOrSetMaxEvents.lua +11 -0
  77. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getRateLimitTTL.lua +17 -0
  78. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getTargetQueueList.lua +22 -0
  79. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getTimestamp.lua +19 -0
  80. package/dist/node_modules/bullmq/dist/cjs/commands/includes/getZSetItems.lua +7 -0
  81. package/dist/node_modules/bullmq/dist/cjs/commands/includes/handleDuplicatedJob.lua +26 -0
  82. package/dist/node_modules/bullmq/dist/cjs/commands/includes/isLocked.lua +33 -0
  83. package/dist/node_modules/bullmq/dist/cjs/commands/includes/isQueueMaxed.lua +15 -0
  84. package/dist/node_modules/bullmq/dist/cjs/commands/includes/isQueuePaused.lua +7 -0
  85. package/dist/node_modules/bullmq/dist/cjs/commands/includes/isQueuePausedOrMaxed.lua +18 -0
  86. package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveJobFromPriorityToActive.lua +13 -0
  87. package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveParentFromWaitingChildrenToFailed.lua +53 -0
  88. package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveParentToWaitIfNeeded.lua +55 -0
  89. package/dist/node_modules/bullmq/dist/cjs/commands/includes/prepareJobForProcessing.lua +50 -0
  90. package/dist/node_modules/bullmq/dist/cjs/commands/includes/promoteDelayedJobs.lua +40 -0
  91. package/dist/node_modules/bullmq/dist/cjs/commands/includes/pushBackJobWithPriority.lua +9 -0
  92. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeDeduplicationKey.lua +11 -0
  93. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeDeduplicationKeyIfNeeded.lua +14 -0
  94. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJob.lua +17 -0
  95. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobFromAnyState.lua +35 -0
  96. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobKeys.lua +8 -0
  97. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobs.lua +13 -0
  98. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobsByMaxAge.lua +16 -0
  99. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobsByMaxCount.lua +15 -0
  100. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobsOnFail.lua +36 -0
  101. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeListJobs.lua +17 -0
  102. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeLock.lua +19 -0
  103. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeParentDependencyKey.lua +90 -0
  104. package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeZSetJobs.lua +27 -0
  105. package/dist/node_modules/bullmq/dist/cjs/commands/includes/storeJob.lua +36 -0
  106. package/dist/node_modules/bullmq/dist/cjs/commands/includes/trimEvents.lua +15 -0
  107. package/dist/node_modules/bullmq/dist/cjs/commands/includes/updateExistingJobsParent.lua +27 -0
  108. package/dist/node_modules/bullmq/dist/cjs/commands/includes/updateJobFields.lua +11 -0
  109. package/dist/node_modules/bullmq/dist/cjs/commands/includes/updateParentDepsIfNeeded.lua +13 -0
  110. package/dist/node_modules/bullmq/dist/cjs/commands/isFinished-3.lua +48 -0
  111. package/dist/node_modules/bullmq/dist/cjs/commands/isJobInList-1.lua +16 -0
  112. package/dist/node_modules/bullmq/dist/cjs/commands/isMaxed-2.lua +17 -0
  113. package/dist/node_modules/bullmq/dist/cjs/commands/moveJobFromActiveToWait-10.lua +60 -0
  114. package/dist/node_modules/bullmq/dist/cjs/commands/moveJobsToWait-8.lua +73 -0
  115. package/dist/node_modules/bullmq/dist/cjs/commands/moveStalledJobsToWait-9.lua +156 -0
  116. package/dist/node_modules/bullmq/dist/cjs/commands/moveToActive-11.lua +93 -0
  117. package/dist/node_modules/bullmq/dist/cjs/commands/moveToDelayed-8.lua +77 -0
  118. package/dist/node_modules/bullmq/dist/cjs/commands/moveToFinished-14.lua +283 -0
  119. package/dist/node_modules/bullmq/dist/cjs/commands/moveToWaitingChildren-5.lua +68 -0
  120. package/dist/node_modules/bullmq/dist/cjs/commands/obliterate-2.lua +118 -0
  121. package/dist/node_modules/bullmq/dist/cjs/commands/paginate-1.lua +49 -0
  122. package/dist/node_modules/bullmq/dist/cjs/commands/pause-7.lua +42 -0
  123. package/dist/node_modules/bullmq/dist/cjs/commands/promote-9.lua +62 -0
  124. package/dist/node_modules/bullmq/dist/cjs/commands/releaseLock-1.lua +19 -0
  125. package/dist/node_modules/bullmq/dist/cjs/commands/removeChildDependency-1.lua +34 -0
  126. package/dist/node_modules/bullmq/dist/cjs/commands/removeJob-2.lua +92 -0
  127. package/dist/node_modules/bullmq/dist/cjs/commands/removeJobScheduler-3.lua +43 -0
  128. package/dist/node_modules/bullmq/dist/cjs/commands/removeRepeatable-3.lua +58 -0
  129. package/dist/node_modules/bullmq/dist/cjs/commands/reprocessJob-8.lua +49 -0
  130. package/dist/node_modules/bullmq/dist/cjs/commands/retryJob-11.lua +82 -0
  131. package/dist/node_modules/bullmq/dist/cjs/commands/saveStacktrace-1.lua +19 -0
  132. package/dist/node_modules/bullmq/dist/cjs/commands/updateData-1.lua +20 -0
  133. package/dist/node_modules/bullmq/dist/cjs/commands/updateProgress-3.lua +33 -0
  134. package/dist/node_modules/bullmq/dist/cjs/commands/updateRepeatableJobMillis-1.lua +28 -0
  135. package/dist/node_modules/bullmq/dist/cjs/enums/child-command.js +10 -0
  136. package/dist/node_modules/bullmq/dist/cjs/enums/error-code.js +15 -0
  137. package/dist/node_modules/bullmq/dist/cjs/enums/index.js +9 -0
  138. package/dist/node_modules/bullmq/dist/cjs/enums/metrics-time.js +15 -0
  139. package/dist/node_modules/bullmq/dist/cjs/enums/parent-command.js +16 -0
  140. package/dist/node_modules/bullmq/dist/cjs/enums/telemetry-attributes.js +48 -0
  141. package/dist/node_modules/bullmq/dist/cjs/index.js +1 -0
  142. package/dist/node_modules/bullmq/dist/cjs/interfaces/advanced-options.js +3 -0
  143. package/dist/node_modules/bullmq/dist/cjs/interfaces/backoff-options.js +3 -0
  144. package/dist/node_modules/bullmq/dist/cjs/interfaces/base-job-options.js +3 -0
  145. package/dist/node_modules/bullmq/dist/cjs/interfaces/child-message.js +3 -0
  146. package/dist/node_modules/bullmq/dist/cjs/interfaces/connection.js +3 -0
  147. package/dist/node_modules/bullmq/dist/cjs/interfaces/debounce-options.js +3 -0
  148. package/dist/node_modules/bullmq/dist/cjs/interfaces/flow-job.js +3 -0
  149. package/dist/node_modules/bullmq/dist/cjs/interfaces/index.js +32 -0
  150. package/dist/node_modules/bullmq/dist/cjs/interfaces/ioredis-events.js +3 -0
  151. package/dist/node_modules/bullmq/dist/cjs/interfaces/job-json.js +3 -0
  152. package/dist/node_modules/bullmq/dist/cjs/interfaces/job-scheduler-json.js +3 -0
  153. package/dist/node_modules/bullmq/dist/cjs/interfaces/keep-jobs.js +3 -0
  154. package/dist/node_modules/bullmq/dist/cjs/interfaces/metrics-options.js +3 -0
  155. package/dist/node_modules/bullmq/dist/cjs/interfaces/metrics.js +3 -0
  156. package/dist/node_modules/bullmq/dist/cjs/interfaces/minimal-job.js +3 -0
  157. package/dist/node_modules/bullmq/dist/cjs/interfaces/parent-message.js +3 -0
  158. package/dist/node_modules/bullmq/dist/cjs/interfaces/parent.js +3 -0
  159. package/dist/node_modules/bullmq/dist/cjs/interfaces/queue-options.js +9 -0
  160. package/dist/node_modules/bullmq/dist/cjs/interfaces/rate-limiter-options.js +3 -0
  161. package/dist/node_modules/bullmq/dist/cjs/interfaces/redis-options.js +3 -0
  162. package/dist/node_modules/bullmq/dist/cjs/interfaces/redis-streams.js +3 -0
  163. package/dist/node_modules/bullmq/dist/cjs/interfaces/repeat-options.js +3 -0
  164. package/dist/node_modules/bullmq/dist/cjs/interfaces/repeatable-job.js +3 -0
  165. package/dist/node_modules/bullmq/dist/cjs/interfaces/repeatable-options.js +3 -0
  166. package/dist/node_modules/bullmq/dist/cjs/interfaces/sandboxed-job-processor.js +3 -0
  167. package/dist/node_modules/bullmq/dist/cjs/interfaces/sandboxed-job.js +3 -0
  168. package/dist/node_modules/bullmq/dist/cjs/interfaces/sandboxed-options.js +3 -0
  169. package/dist/node_modules/bullmq/dist/cjs/interfaces/telemetry.js +3 -0
  170. package/dist/node_modules/bullmq/dist/cjs/interfaces/worker-options.js +3 -0
  171. package/dist/node_modules/bullmq/dist/cjs/scripts/addDelayedJob-6.js +373 -0
  172. package/dist/node_modules/bullmq/dist/cjs/scripts/addJobScheduler-2.js +237 -0
  173. package/dist/node_modules/bullmq/dist/cjs/scripts/addLog-2.js +33 -0
  174. package/dist/node_modules/bullmq/dist/cjs/scripts/addParentJob-4.js +340 -0
  175. package/dist/node_modules/bullmq/dist/cjs/scripts/addPrioritizedJob-8.js +350 -0
  176. package/dist/node_modules/bullmq/dist/cjs/scripts/addRepeatableJob-2.js +230 -0
  177. package/dist/node_modules/bullmq/dist/cjs/scripts/addStandardJob-8.js +354 -0
  178. package/dist/node_modules/bullmq/dist/cjs/scripts/changeDelay-4.js +107 -0
  179. package/dist/node_modules/bullmq/dist/cjs/scripts/changePriority-7.js +122 -0
  180. package/dist/node_modules/bullmq/dist/cjs/scripts/cleanJobsInSet-3.js +350 -0
  181. package/dist/node_modules/bullmq/dist/cjs/scripts/drain-5.js +258 -0
  182. package/dist/node_modules/bullmq/dist/cjs/scripts/extendLock-2.js +30 -0
  183. package/dist/node_modules/bullmq/dist/cjs/scripts/extendLocks-1.js +46 -0
  184. package/dist/node_modules/bullmq/dist/cjs/scripts/getCounts-1.js +42 -0
  185. package/dist/node_modules/bullmq/dist/cjs/scripts/getCountsPerPriority-4.js +46 -0
  186. package/dist/node_modules/bullmq/dist/cjs/scripts/getJobScheduler-1.js +23 -0
  187. package/dist/node_modules/bullmq/dist/cjs/scripts/getRanges-1.js +73 -0
  188. package/dist/node_modules/bullmq/dist/cjs/scripts/getRateLimitTtl-1.js +39 -0
  189. package/dist/node_modules/bullmq/dist/cjs/scripts/getState-8.js +73 -0
  190. package/dist/node_modules/bullmq/dist/cjs/scripts/getStateV2-8.js +57 -0
  191. package/dist/node_modules/bullmq/dist/cjs/scripts/index.js +49 -0
  192. package/dist/node_modules/bullmq/dist/cjs/scripts/isFinished-3.js +49 -0
  193. package/dist/node_modules/bullmq/dist/cjs/scripts/isJobInList-1.js +32 -0
  194. package/dist/node_modules/bullmq/dist/cjs/scripts/isMaxed-2.js +34 -0
  195. package/dist/node_modules/bullmq/dist/cjs/scripts/moveJobFromActiveToWait-10.js +110 -0
  196. package/dist/node_modules/bullmq/dist/cjs/scripts/moveJobsToWait-8.js +118 -0
  197. package/dist/node_modules/bullmq/dist/cjs/scripts/moveStalledJobsToWait-9.js +529 -0
  198. package/dist/node_modules/bullmq/dist/cjs/scripts/moveToActive-11.js +233 -0
  199. package/dist/node_modules/bullmq/dist/cjs/scripts/moveToDelayed-8.js +156 -0
  200. package/dist/node_modules/bullmq/dist/cjs/scripts/moveToFinished-14.js +798 -0
  201. package/dist/node_modules/bullmq/dist/cjs/scripts/moveToWaitingChildren-5.js +83 -0
  202. package/dist/node_modules/bullmq/dist/cjs/scripts/obliterate-2.js +327 -0
  203. package/dist/node_modules/bullmq/dist/cjs/scripts/paginate-1.js +110 -0
  204. package/dist/node_modules/bullmq/dist/cjs/scripts/pause-7.js +67 -0
  205. package/dist/node_modules/bullmq/dist/cjs/scripts/promote-9.js +105 -0
  206. package/dist/node_modules/bullmq/dist/cjs/scripts/releaseLock-1.js +25 -0
  207. package/dist/node_modules/bullmq/dist/cjs/scripts/removeChildDependency-1.js +165 -0
  208. package/dist/node_modules/bullmq/dist/cjs/scripts/removeJob-2.js +292 -0
  209. package/dist/node_modules/bullmq/dist/cjs/scripts/removeJobScheduler-3.js +49 -0
  210. package/dist/node_modules/bullmq/dist/cjs/scripts/removeRepeatable-3.js +63 -0
  211. package/dist/node_modules/bullmq/dist/cjs/scripts/reprocessJob-8.js +96 -0
  212. package/dist/node_modules/bullmq/dist/cjs/scripts/retryJob-11.js +193 -0
  213. package/dist/node_modules/bullmq/dist/cjs/scripts/saveStacktrace-1.js +27 -0
  214. package/dist/node_modules/bullmq/dist/cjs/scripts/updateData-1.js +26 -0
  215. package/dist/node_modules/bullmq/dist/cjs/scripts/updateProgress-3.js +46 -0
  216. package/dist/node_modules/bullmq/dist/cjs/scripts/updateRepeatableJobMillis-1.js +33 -0
  217. package/dist/node_modules/bullmq/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -0
  218. package/dist/node_modules/bullmq/dist/cjs/types/backoff-strategy.js +3 -0
  219. package/dist/node_modules/bullmq/dist/cjs/types/finished-status.js +3 -0
  220. package/dist/node_modules/bullmq/dist/cjs/types/index.js +12 -0
  221. package/dist/node_modules/bullmq/dist/cjs/types/job-json-sandbox.js +3 -0
  222. package/dist/node_modules/bullmq/dist/cjs/types/job-options.js +3 -0
  223. package/dist/node_modules/bullmq/dist/cjs/types/job-scheduler-template-options.js +3 -0
  224. package/dist/node_modules/bullmq/dist/cjs/types/job-type.js +3 -0
  225. package/dist/node_modules/bullmq/dist/cjs/types/minimal-queue.js +3 -0
  226. package/dist/node_modules/bullmq/dist/cjs/types/repeat-strategy.js +3 -0
  227. package/dist/node_modules/bullmq/dist/cjs/utils.js +288 -0
  228. package/dist/node_modules/bullmq/dist/cjs/version.js +5 -0
  229. package/dist/node_modules/bullmq/dist/esm/classes/async-fifo-queue.d.ts +37 -0
  230. package/dist/node_modules/bullmq/dist/esm/classes/async-fifo-queue.js +125 -0
  231. package/dist/node_modules/bullmq/dist/esm/classes/backoffs.d.ts +10 -0
  232. package/dist/node_modules/bullmq/dist/esm/classes/backoffs.js +44 -0
  233. package/dist/node_modules/bullmq/dist/esm/classes/child-pool.d.ts +23 -0
  234. package/dist/node_modules/bullmq/dist/esm/classes/child-pool.js +67 -0
  235. package/dist/node_modules/bullmq/dist/esm/classes/child-processor.d.ts +37 -0
  236. package/dist/node_modules/bullmq/dist/esm/classes/child-processor.js +150 -0
  237. package/dist/node_modules/bullmq/dist/esm/classes/child.d.ts +35 -0
  238. package/dist/node_modules/bullmq/dist/esm/classes/child.js +206 -0
  239. package/dist/node_modules/bullmq/dist/esm/classes/errors/delayed-error.d.ts +11 -0
  240. package/dist/node_modules/bullmq/dist/esm/classes/errors/delayed-error.js +16 -0
  241. package/dist/node_modules/bullmq/dist/esm/classes/errors/index.d.ts +4 -0
  242. package/dist/node_modules/bullmq/dist/esm/classes/errors/index.js +5 -0
  243. package/dist/node_modules/bullmq/dist/esm/classes/errors/rate-limit-error.d.ts +10 -0
  244. package/dist/node_modules/bullmq/dist/esm/classes/errors/rate-limit-error.js +15 -0
  245. package/dist/node_modules/bullmq/dist/esm/classes/errors/unrecoverable-error.d.ts +11 -0
  246. package/dist/node_modules/bullmq/dist/esm/classes/errors/unrecoverable-error.js +16 -0
  247. package/dist/node_modules/bullmq/dist/esm/classes/errors/waiting-children-error.d.ts +11 -0
  248. package/dist/node_modules/bullmq/dist/esm/classes/errors/waiting-children-error.js +16 -0
  249. package/dist/node_modules/bullmq/dist/esm/classes/flow-producer.d.ts +179 -0
  250. package/dist/node_modules/bullmq/dist/esm/classes/flow-producer.js +335 -0
  251. package/dist/node_modules/bullmq/dist/esm/classes/index.d.ts +19 -0
  252. package/dist/node_modules/bullmq/dist/esm/classes/index.js +22 -0
  253. package/dist/node_modules/bullmq/dist/esm/classes/job-scheduler.d.ts +24 -0
  254. package/dist/node_modules/bullmq/dist/esm/classes/job-scheduler.js +216 -0
  255. package/dist/node_modules/bullmq/dist/esm/classes/job.d.ts +425 -0
  256. package/dist/node_modules/bullmq/dist/esm/classes/job.js +889 -0
  257. package/dist/node_modules/bullmq/dist/esm/classes/main-base.d.ts +4 -0
  258. package/dist/node_modules/bullmq/dist/esm/classes/main-base.js +42 -0
  259. package/dist/node_modules/bullmq/dist/esm/classes/main-worker.d.ts +1 -0
  260. package/dist/node_modules/bullmq/dist/esm/classes/main-worker.js +8 -0
  261. package/dist/node_modules/bullmq/dist/esm/classes/main.d.ts +1 -0
  262. package/dist/node_modules/bullmq/dist/esm/classes/main.js +8 -0
  263. package/dist/node_modules/bullmq/dist/esm/classes/queue-base.d.ts +83 -0
  264. package/dist/node_modules/bullmq/dist/esm/classes/queue-base.js +151 -0
  265. package/dist/node_modules/bullmq/dist/esm/classes/queue-events-producer.d.ts +21 -0
  266. package/dist/node_modules/bullmq/dist/esm/classes/queue-events-producer.js +38 -0
  267. package/dist/node_modules/bullmq/dist/esm/classes/queue-events.d.ts +201 -0
  268. package/dist/node_modules/bullmq/dist/esm/classes/queue-events.js +121 -0
  269. package/dist/node_modules/bullmq/dist/esm/classes/queue-getters.d.ts +235 -0
  270. package/dist/node_modules/bullmq/dist/esm/classes/queue-getters.js +447 -0
  271. package/dist/node_modules/bullmq/dist/esm/classes/queue-keys.d.ts +10 -0
  272. package/dist/node_modules/bullmq/dist/esm/classes/queue-keys.js +39 -0
  273. package/dist/node_modules/bullmq/dist/esm/classes/queue.d.ts +406 -0
  274. package/dist/node_modules/bullmq/dist/esm/classes/queue.js +631 -0
  275. package/dist/node_modules/bullmq/dist/esm/classes/redis-connection.d.ts +46 -0
  276. package/dist/node_modules/bullmq/dist/esm/classes/redis-connection.js +266 -0
  277. package/dist/node_modules/bullmq/dist/esm/classes/repeat.d.ts +25 -0
  278. package/dist/node_modules/bullmq/dist/esm/classes/repeat.js +199 -0
  279. package/dist/node_modules/bullmq/dist/esm/classes/sandbox.d.ts +4 -0
  280. package/dist/node_modules/bullmq/dist/esm/classes/sandbox.js +73 -0
  281. package/dist/node_modules/bullmq/dist/esm/classes/scripts.d.ts +160 -0
  282. package/dist/node_modules/bullmq/dist/esm/classes/scripts.js +1031 -0
  283. package/dist/node_modules/bullmq/dist/esm/classes/worker.d.ts +231 -0
  284. package/dist/node_modules/bullmq/dist/esm/classes/worker.js +815 -0
  285. package/dist/node_modules/bullmq/dist/esm/commands/addDelayedJob-6.lua +119 -0
  286. package/dist/node_modules/bullmq/dist/esm/commands/addJobScheduler-2.lua +91 -0
  287. package/dist/node_modules/bullmq/dist/esm/commands/addLog-2.lua +30 -0
  288. package/dist/node_modules/bullmq/dist/esm/commands/addParentJob-4.lua +104 -0
  289. package/dist/node_modules/bullmq/dist/esm/commands/addPrioritizedJob-8.lua +117 -0
  290. package/dist/node_modules/bullmq/dist/esm/commands/addRepeatableJob-2.lua +84 -0
  291. package/dist/node_modules/bullmq/dist/esm/commands/addStandardJob-8.lua +122 -0
  292. package/dist/node_modules/bullmq/dist/esm/commands/changeDelay-4.lua +55 -0
  293. package/dist/node_modules/bullmq/dist/esm/commands/changePriority-7.lua +68 -0
  294. package/dist/node_modules/bullmq/dist/esm/commands/cleanJobsInSet-3.lua +55 -0
  295. package/dist/node_modules/bullmq/dist/esm/commands/drain-5.lua +41 -0
  296. package/dist/node_modules/bullmq/dist/esm/commands/extendLock-2.lua +23 -0
  297. package/dist/node_modules/bullmq/dist/esm/commands/extendLocks-1.lua +44 -0
  298. package/dist/node_modules/bullmq/dist/esm/commands/getCounts-1.lua +36 -0
  299. package/dist/node_modules/bullmq/dist/esm/commands/getCountsPerPriority-4.lua +35 -0
  300. package/dist/node_modules/bullmq/dist/esm/commands/getJobScheduler-1.lua +19 -0
  301. package/dist/node_modules/bullmq/dist/esm/commands/getRanges-1.lua +70 -0
  302. package/dist/node_modules/bullmq/dist/esm/commands/getRateLimitTtl-1.lua +20 -0
  303. package/dist/node_modules/bullmq/dist/esm/commands/getState-8.lua +65 -0
  304. package/dist/node_modules/bullmq/dist/esm/commands/getStateV2-8.lua +58 -0
  305. package/dist/node_modules/bullmq/dist/esm/commands/includes/addBaseMarkerIfNeeded.lua +9 -0
  306. package/dist/node_modules/bullmq/dist/esm/commands/includes/addDelayMarkerIfNeeded.lua +15 -0
  307. package/dist/node_modules/bullmq/dist/esm/commands/includes/addJobInTargetList.lua +11 -0
  308. package/dist/node_modules/bullmq/dist/esm/commands/includes/addJobWithPriority.lua +14 -0
  309. package/dist/node_modules/bullmq/dist/esm/commands/includes/batches.lua +18 -0
  310. package/dist/node_modules/bullmq/dist/esm/commands/includes/checkItemInList.lua +12 -0
  311. package/dist/node_modules/bullmq/dist/esm/commands/includes/cleanList.lua +47 -0
  312. package/dist/node_modules/bullmq/dist/esm/commands/includes/cleanSet.lua +66 -0
  313. package/dist/node_modules/bullmq/dist/esm/commands/includes/collectMetrics.lua +46 -0
  314. package/dist/node_modules/bullmq/dist/esm/commands/includes/deduplicateJob.lua +24 -0
  315. package/dist/node_modules/bullmq/dist/esm/commands/includes/destructureJobKey.lua +12 -0
  316. package/dist/node_modules/bullmq/dist/esm/commands/includes/findPage.lua +70 -0
  317. package/dist/node_modules/bullmq/dist/esm/commands/includes/getDelayedScore.lua +25 -0
  318. package/dist/node_modules/bullmq/dist/esm/commands/includes/getJobsInZset.lua +13 -0
  319. package/dist/node_modules/bullmq/dist/esm/commands/includes/getNextDelayedTimestamp.lua +12 -0
  320. package/dist/node_modules/bullmq/dist/esm/commands/includes/getOrSetMaxEvents.lua +11 -0
  321. package/dist/node_modules/bullmq/dist/esm/commands/includes/getRateLimitTTL.lua +17 -0
  322. package/dist/node_modules/bullmq/dist/esm/commands/includes/getTargetQueueList.lua +22 -0
  323. package/dist/node_modules/bullmq/dist/esm/commands/includes/getTimestamp.lua +19 -0
  324. package/dist/node_modules/bullmq/dist/esm/commands/includes/getZSetItems.lua +7 -0
  325. package/dist/node_modules/bullmq/dist/esm/commands/includes/handleDuplicatedJob.lua +26 -0
  326. package/dist/node_modules/bullmq/dist/esm/commands/includes/isLocked.lua +33 -0
  327. package/dist/node_modules/bullmq/dist/esm/commands/includes/isQueueMaxed.lua +15 -0
  328. package/dist/node_modules/bullmq/dist/esm/commands/includes/isQueuePaused.lua +7 -0
  329. package/dist/node_modules/bullmq/dist/esm/commands/includes/isQueuePausedOrMaxed.lua +18 -0
  330. package/dist/node_modules/bullmq/dist/esm/commands/includes/moveJobFromPriorityToActive.lua +13 -0
  331. package/dist/node_modules/bullmq/dist/esm/commands/includes/moveParentFromWaitingChildrenToFailed.lua +53 -0
  332. package/dist/node_modules/bullmq/dist/esm/commands/includes/moveParentToWaitIfNeeded.lua +55 -0
  333. package/dist/node_modules/bullmq/dist/esm/commands/includes/prepareJobForProcessing.lua +50 -0
  334. package/dist/node_modules/bullmq/dist/esm/commands/includes/promoteDelayedJobs.lua +40 -0
  335. package/dist/node_modules/bullmq/dist/esm/commands/includes/pushBackJobWithPriority.lua +9 -0
  336. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeDeduplicationKey.lua +11 -0
  337. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeDeduplicationKeyIfNeeded.lua +14 -0
  338. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJob.lua +17 -0
  339. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobFromAnyState.lua +35 -0
  340. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobKeys.lua +8 -0
  341. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobs.lua +13 -0
  342. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobsByMaxAge.lua +16 -0
  343. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobsByMaxCount.lua +15 -0
  344. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobsOnFail.lua +36 -0
  345. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeListJobs.lua +17 -0
  346. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeLock.lua +19 -0
  347. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeParentDependencyKey.lua +90 -0
  348. package/dist/node_modules/bullmq/dist/esm/commands/includes/removeZSetJobs.lua +27 -0
  349. package/dist/node_modules/bullmq/dist/esm/commands/includes/storeJob.lua +36 -0
  350. package/dist/node_modules/bullmq/dist/esm/commands/includes/trimEvents.lua +15 -0
  351. package/dist/node_modules/bullmq/dist/esm/commands/includes/updateExistingJobsParent.lua +27 -0
  352. package/dist/node_modules/bullmq/dist/esm/commands/includes/updateJobFields.lua +11 -0
  353. package/dist/node_modules/bullmq/dist/esm/commands/includes/updateParentDepsIfNeeded.lua +13 -0
  354. package/dist/node_modules/bullmq/dist/esm/commands/isFinished-3.lua +48 -0
  355. package/dist/node_modules/bullmq/dist/esm/commands/isJobInList-1.lua +16 -0
  356. package/dist/node_modules/bullmq/dist/esm/commands/isMaxed-2.lua +17 -0
  357. package/dist/node_modules/bullmq/dist/esm/commands/moveJobFromActiveToWait-10.lua +60 -0
  358. package/dist/node_modules/bullmq/dist/esm/commands/moveJobsToWait-8.lua +73 -0
  359. package/dist/node_modules/bullmq/dist/esm/commands/moveStalledJobsToWait-9.lua +156 -0
  360. package/dist/node_modules/bullmq/dist/esm/commands/moveToActive-11.lua +93 -0
  361. package/dist/node_modules/bullmq/dist/esm/commands/moveToDelayed-8.lua +77 -0
  362. package/dist/node_modules/bullmq/dist/esm/commands/moveToFinished-14.lua +283 -0
  363. package/dist/node_modules/bullmq/dist/esm/commands/moveToWaitingChildren-5.lua +68 -0
  364. package/dist/node_modules/bullmq/dist/esm/commands/obliterate-2.lua +118 -0
  365. package/dist/node_modules/bullmq/dist/esm/commands/paginate-1.lua +49 -0
  366. package/dist/node_modules/bullmq/dist/esm/commands/pause-7.lua +42 -0
  367. package/dist/node_modules/bullmq/dist/esm/commands/promote-9.lua +62 -0
  368. package/dist/node_modules/bullmq/dist/esm/commands/releaseLock-1.lua +19 -0
  369. package/dist/node_modules/bullmq/dist/esm/commands/removeChildDependency-1.lua +34 -0
  370. package/dist/node_modules/bullmq/dist/esm/commands/removeJob-2.lua +92 -0
  371. package/dist/node_modules/bullmq/dist/esm/commands/removeJobScheduler-3.lua +43 -0
  372. package/dist/node_modules/bullmq/dist/esm/commands/removeRepeatable-3.lua +58 -0
  373. package/dist/node_modules/bullmq/dist/esm/commands/reprocessJob-8.lua +49 -0
  374. package/dist/node_modules/bullmq/dist/esm/commands/retryJob-11.lua +82 -0
  375. package/dist/node_modules/bullmq/dist/esm/commands/saveStacktrace-1.lua +19 -0
  376. package/dist/node_modules/bullmq/dist/esm/commands/updateData-1.lua +20 -0
  377. package/dist/node_modules/bullmq/dist/esm/commands/updateProgress-3.lua +33 -0
  378. package/dist/node_modules/bullmq/dist/esm/commands/updateRepeatableJobMillis-1.lua +28 -0
  379. package/dist/node_modules/bullmq/dist/esm/enums/child-command.d.ts +5 -0
  380. package/dist/node_modules/bullmq/dist/esm/enums/child-command.js +7 -0
  381. package/dist/node_modules/bullmq/dist/esm/enums/error-code.d.ts +10 -0
  382. package/dist/node_modules/bullmq/dist/esm/enums/error-code.js +12 -0
  383. package/dist/node_modules/bullmq/dist/esm/enums/index.d.ts +5 -0
  384. package/dist/node_modules/bullmq/dist/esm/enums/index.js +6 -0
  385. package/dist/node_modules/bullmq/dist/esm/enums/metrics-time.d.ts +10 -0
  386. package/dist/node_modules/bullmq/dist/esm/enums/metrics-time.js +12 -0
  387. package/dist/node_modules/bullmq/dist/esm/enums/parent-command.d.ts +11 -0
  388. package/dist/node_modules/bullmq/dist/esm/enums/parent-command.js +13 -0
  389. package/dist/node_modules/bullmq/dist/esm/enums/telemetry-attributes.d.ts +42 -0
  390. package/dist/node_modules/bullmq/dist/esm/enums/telemetry-attributes.js +45 -0
  391. package/dist/node_modules/bullmq/dist/esm/index.d.ts +5 -0
  392. package/dist/node_modules/bullmq/dist/esm/index.js +6 -0
  393. package/dist/node_modules/bullmq/dist/esm/interfaces/advanced-options.d.ts +18 -0
  394. package/dist/node_modules/bullmq/dist/esm/interfaces/advanced-options.js +2 -0
  395. package/dist/node_modules/bullmq/dist/esm/interfaces/backoff-options.d.ts +15 -0
  396. package/dist/node_modules/bullmq/dist/esm/interfaces/backoff-options.js +2 -0
  397. package/dist/node_modules/bullmq/dist/esm/interfaces/base-job-options.d.ts +100 -0
  398. package/dist/node_modules/bullmq/dist/esm/interfaces/base-job-options.js +2 -0
  399. package/dist/node_modules/bullmq/dist/esm/interfaces/child-message.d.ts +6 -0
  400. package/dist/node_modules/bullmq/dist/esm/interfaces/child-message.js +2 -0
  401. package/dist/node_modules/bullmq/dist/esm/interfaces/connection.d.ts +8 -0
  402. package/dist/node_modules/bullmq/dist/esm/interfaces/connection.js +2 -0
  403. package/dist/node_modules/bullmq/dist/esm/interfaces/debounce-options.d.ts +13 -0
  404. package/dist/node_modules/bullmq/dist/esm/interfaces/debounce-options.js +2 -0
  405. package/dist/node_modules/bullmq/dist/esm/interfaces/flow-job.d.ts +19 -0
  406. package/dist/node_modules/bullmq/dist/esm/interfaces/flow-job.js +2 -0
  407. package/dist/node_modules/bullmq/dist/esm/interfaces/index.d.ts +28 -0
  408. package/dist/node_modules/bullmq/dist/esm/interfaces/index.js +29 -0
  409. package/dist/node_modules/bullmq/dist/esm/interfaces/ioredis-events.d.ts +8 -0
  410. package/dist/node_modules/bullmq/dist/esm/interfaces/ioredis-events.js +2 -0
  411. package/dist/node_modules/bullmq/dist/esm/interfaces/job-json.d.ts +47 -0
  412. package/dist/node_modules/bullmq/dist/esm/interfaces/job-json.js +2 -0
  413. package/dist/node_modules/bullmq/dist/esm/interfaces/job-scheduler-json.d.ts +16 -0
  414. package/dist/node_modules/bullmq/dist/esm/interfaces/job-scheduler-json.js +2 -0
  415. package/dist/node_modules/bullmq/dist/esm/interfaces/keep-jobs.d.ts +17 -0
  416. package/dist/node_modules/bullmq/dist/esm/interfaces/keep-jobs.js +2 -0
  417. package/dist/node_modules/bullmq/dist/esm/interfaces/metrics-options.d.ts +12 -0
  418. package/dist/node_modules/bullmq/dist/esm/interfaces/metrics-options.js +2 -0
  419. package/dist/node_modules/bullmq/dist/esm/interfaces/metrics.d.ts +9 -0
  420. package/dist/node_modules/bullmq/dist/esm/interfaces/metrics.js +2 -0
  421. package/dist/node_modules/bullmq/dist/esm/interfaces/minimal-job.d.ts +133 -0
  422. package/dist/node_modules/bullmq/dist/esm/interfaces/minimal-job.js +2 -0
  423. package/dist/node_modules/bullmq/dist/esm/interfaces/parent-message.d.ts +8 -0
  424. package/dist/node_modules/bullmq/dist/esm/interfaces/parent-message.js +2 -0
  425. package/dist/node_modules/bullmq/dist/esm/interfaces/parent.d.ts +20 -0
  426. package/dist/node_modules/bullmq/dist/esm/interfaces/parent.js +2 -0
  427. package/dist/node_modules/bullmq/dist/esm/interfaces/queue-options.d.ts +97 -0
  428. package/dist/node_modules/bullmq/dist/esm/interfaces/queue-options.js +6 -0
  429. package/dist/node_modules/bullmq/dist/esm/interfaces/rate-limiter-options.d.ts +12 -0
  430. package/dist/node_modules/bullmq/dist/esm/interfaces/rate-limiter-options.js +2 -0
  431. package/dist/node_modules/bullmq/dist/esm/interfaces/redis-options.d.ts +8 -0
  432. package/dist/node_modules/bullmq/dist/esm/interfaces/redis-options.js +2 -0
  433. package/dist/node_modules/bullmq/dist/esm/interfaces/redis-streams.d.ts +4 -0
  434. package/dist/node_modules/bullmq/dist/esm/interfaces/redis-streams.js +2 -0
  435. package/dist/node_modules/bullmq/dist/esm/interfaces/repeat-options.d.ts +51 -0
  436. package/dist/node_modules/bullmq/dist/esm/interfaces/repeat-options.js +2 -0
  437. package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-job.d.ts +10 -0
  438. package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-job.js +2 -0
  439. package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-options.d.ts +7 -0
  440. package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-options.js +2 -0
  441. package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job-processor.d.ts +5 -0
  442. package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job-processor.js +2 -0
  443. package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job.d.ts +13 -0
  444. package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job.js +2 -0
  445. package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-options.d.ts +28 -0
  446. package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-options.js +2 -0
  447. package/dist/node_modules/bullmq/dist/esm/interfaces/telemetry.d.ts +150 -0
  448. package/dist/node_modules/bullmq/dist/esm/interfaces/telemetry.js +2 -0
  449. package/dist/node_modules/bullmq/dist/esm/interfaces/worker-options.d.ts +133 -0
  450. package/dist/node_modules/bullmq/dist/esm/interfaces/worker-options.js +2 -0
  451. package/dist/node_modules/bullmq/dist/esm/scripts/addDelayedJob-6.d.ts +5 -0
  452. package/dist/node_modules/bullmq/dist/esm/scripts/addDelayedJob-6.js +370 -0
  453. package/dist/node_modules/bullmq/dist/esm/scripts/addJobScheduler-2.d.ts +5 -0
  454. package/dist/node_modules/bullmq/dist/esm/scripts/addJobScheduler-2.js +234 -0
  455. package/dist/node_modules/bullmq/dist/esm/scripts/addLog-2.d.ts +5 -0
  456. package/dist/node_modules/bullmq/dist/esm/scripts/addLog-2.js +30 -0
  457. package/dist/node_modules/bullmq/dist/esm/scripts/addParentJob-4.d.ts +5 -0
  458. package/dist/node_modules/bullmq/dist/esm/scripts/addParentJob-4.js +337 -0
  459. package/dist/node_modules/bullmq/dist/esm/scripts/addPrioritizedJob-8.d.ts +5 -0
  460. package/dist/node_modules/bullmq/dist/esm/scripts/addPrioritizedJob-8.js +347 -0
  461. package/dist/node_modules/bullmq/dist/esm/scripts/addRepeatableJob-2.d.ts +5 -0
  462. package/dist/node_modules/bullmq/dist/esm/scripts/addRepeatableJob-2.js +227 -0
  463. package/dist/node_modules/bullmq/dist/esm/scripts/addStandardJob-8.d.ts +5 -0
  464. package/dist/node_modules/bullmq/dist/esm/scripts/addStandardJob-8.js +351 -0
  465. package/dist/node_modules/bullmq/dist/esm/scripts/changeDelay-4.d.ts +5 -0
  466. package/dist/node_modules/bullmq/dist/esm/scripts/changeDelay-4.js +104 -0
  467. package/dist/node_modules/bullmq/dist/esm/scripts/changePriority-7.d.ts +5 -0
  468. package/dist/node_modules/bullmq/dist/esm/scripts/changePriority-7.js +119 -0
  469. package/dist/node_modules/bullmq/dist/esm/scripts/cleanJobsInSet-3.d.ts +5 -0
  470. package/dist/node_modules/bullmq/dist/esm/scripts/cleanJobsInSet-3.js +347 -0
  471. package/dist/node_modules/bullmq/dist/esm/scripts/drain-5.d.ts +5 -0
  472. package/dist/node_modules/bullmq/dist/esm/scripts/drain-5.js +255 -0
  473. package/dist/node_modules/bullmq/dist/esm/scripts/extendLock-2.d.ts +5 -0
  474. package/dist/node_modules/bullmq/dist/esm/scripts/extendLock-2.js +27 -0
  475. package/dist/node_modules/bullmq/dist/esm/scripts/extendLocks-1.d.ts +5 -0
  476. package/dist/node_modules/bullmq/dist/esm/scripts/extendLocks-1.js +43 -0
  477. package/dist/node_modules/bullmq/dist/esm/scripts/getCounts-1.d.ts +5 -0
  478. package/dist/node_modules/bullmq/dist/esm/scripts/getCounts-1.js +39 -0
  479. package/dist/node_modules/bullmq/dist/esm/scripts/getCountsPerPriority-4.d.ts +5 -0
  480. package/dist/node_modules/bullmq/dist/esm/scripts/getCountsPerPriority-4.js +43 -0
  481. package/dist/node_modules/bullmq/dist/esm/scripts/getJobScheduler-1.d.ts +5 -0
  482. package/dist/node_modules/bullmq/dist/esm/scripts/getJobScheduler-1.js +20 -0
  483. package/dist/node_modules/bullmq/dist/esm/scripts/getRanges-1.d.ts +5 -0
  484. package/dist/node_modules/bullmq/dist/esm/scripts/getRanges-1.js +70 -0
  485. package/dist/node_modules/bullmq/dist/esm/scripts/getRateLimitTtl-1.d.ts +5 -0
  486. package/dist/node_modules/bullmq/dist/esm/scripts/getRateLimitTtl-1.js +36 -0
  487. package/dist/node_modules/bullmq/dist/esm/scripts/getState-8.d.ts +5 -0
  488. package/dist/node_modules/bullmq/dist/esm/scripts/getState-8.js +70 -0
  489. package/dist/node_modules/bullmq/dist/esm/scripts/getStateV2-8.d.ts +5 -0
  490. package/dist/node_modules/bullmq/dist/esm/scripts/getStateV2-8.js +54 -0
  491. package/dist/node_modules/bullmq/dist/esm/scripts/index.d.ts +45 -0
  492. package/dist/node_modules/bullmq/dist/esm/scripts/index.js +46 -0
  493. package/dist/node_modules/bullmq/dist/esm/scripts/isFinished-3.d.ts +5 -0
  494. package/dist/node_modules/bullmq/dist/esm/scripts/isFinished-3.js +46 -0
  495. package/dist/node_modules/bullmq/dist/esm/scripts/isJobInList-1.d.ts +5 -0
  496. package/dist/node_modules/bullmq/dist/esm/scripts/isJobInList-1.js +29 -0
  497. package/dist/node_modules/bullmq/dist/esm/scripts/isMaxed-2.d.ts +5 -0
  498. package/dist/node_modules/bullmq/dist/esm/scripts/isMaxed-2.js +31 -0
  499. package/dist/node_modules/bullmq/dist/esm/scripts/moveJobFromActiveToWait-10.d.ts +5 -0
  500. package/dist/node_modules/bullmq/dist/esm/scripts/moveJobFromActiveToWait-10.js +107 -0
  501. package/dist/node_modules/bullmq/dist/esm/scripts/moveJobsToWait-8.d.ts +5 -0
  502. package/dist/node_modules/bullmq/dist/esm/scripts/moveJobsToWait-8.js +115 -0
  503. package/dist/node_modules/bullmq/dist/esm/scripts/moveStalledJobsToWait-9.d.ts +5 -0
  504. package/dist/node_modules/bullmq/dist/esm/scripts/moveStalledJobsToWait-9.js +526 -0
  505. package/dist/node_modules/bullmq/dist/esm/scripts/moveToActive-11.d.ts +5 -0
  506. package/dist/node_modules/bullmq/dist/esm/scripts/moveToActive-11.js +230 -0
  507. package/dist/node_modules/bullmq/dist/esm/scripts/moveToDelayed-8.d.ts +5 -0
  508. package/dist/node_modules/bullmq/dist/esm/scripts/moveToDelayed-8.js +153 -0
  509. package/dist/node_modules/bullmq/dist/esm/scripts/moveToFinished-14.d.ts +5 -0
  510. package/dist/node_modules/bullmq/dist/esm/scripts/moveToFinished-14.js +795 -0
  511. package/dist/node_modules/bullmq/dist/esm/scripts/moveToWaitingChildren-5.d.ts +5 -0
  512. package/dist/node_modules/bullmq/dist/esm/scripts/moveToWaitingChildren-5.js +80 -0
  513. package/dist/node_modules/bullmq/dist/esm/scripts/obliterate-2.d.ts +5 -0
  514. package/dist/node_modules/bullmq/dist/esm/scripts/obliterate-2.js +324 -0
  515. package/dist/node_modules/bullmq/dist/esm/scripts/paginate-1.d.ts +5 -0
  516. package/dist/node_modules/bullmq/dist/esm/scripts/paginate-1.js +107 -0
  517. package/dist/node_modules/bullmq/dist/esm/scripts/pause-7.d.ts +5 -0
  518. package/dist/node_modules/bullmq/dist/esm/scripts/pause-7.js +64 -0
  519. package/dist/node_modules/bullmq/dist/esm/scripts/promote-9.d.ts +5 -0
  520. package/dist/node_modules/bullmq/dist/esm/scripts/promote-9.js +102 -0
  521. package/dist/node_modules/bullmq/dist/esm/scripts/releaseLock-1.d.ts +5 -0
  522. package/dist/node_modules/bullmq/dist/esm/scripts/releaseLock-1.js +22 -0
  523. package/dist/node_modules/bullmq/dist/esm/scripts/removeChildDependency-1.d.ts +5 -0
  524. package/dist/node_modules/bullmq/dist/esm/scripts/removeChildDependency-1.js +162 -0
  525. package/dist/node_modules/bullmq/dist/esm/scripts/removeJob-2.d.ts +5 -0
  526. package/dist/node_modules/bullmq/dist/esm/scripts/removeJob-2.js +289 -0
  527. package/dist/node_modules/bullmq/dist/esm/scripts/removeJobScheduler-3.d.ts +5 -0
  528. package/dist/node_modules/bullmq/dist/esm/scripts/removeJobScheduler-3.js +46 -0
  529. package/dist/node_modules/bullmq/dist/esm/scripts/removeRepeatable-3.d.ts +5 -0
  530. package/dist/node_modules/bullmq/dist/esm/scripts/removeRepeatable-3.js +60 -0
  531. package/dist/node_modules/bullmq/dist/esm/scripts/reprocessJob-8.d.ts +5 -0
  532. package/dist/node_modules/bullmq/dist/esm/scripts/reprocessJob-8.js +93 -0
  533. package/dist/node_modules/bullmq/dist/esm/scripts/retryJob-11.d.ts +5 -0
  534. package/dist/node_modules/bullmq/dist/esm/scripts/retryJob-11.js +190 -0
  535. package/dist/node_modules/bullmq/dist/esm/scripts/saveStacktrace-1.d.ts +5 -0
  536. package/dist/node_modules/bullmq/dist/esm/scripts/saveStacktrace-1.js +24 -0
  537. package/dist/node_modules/bullmq/dist/esm/scripts/updateData-1.d.ts +5 -0
  538. package/dist/node_modules/bullmq/dist/esm/scripts/updateData-1.js +23 -0
  539. package/dist/node_modules/bullmq/dist/esm/scripts/updateProgress-3.d.ts +5 -0
  540. package/dist/node_modules/bullmq/dist/esm/scripts/updateProgress-3.js +43 -0
  541. package/dist/node_modules/bullmq/dist/esm/scripts/updateRepeatableJobMillis-1.d.ts +5 -0
  542. package/dist/node_modules/bullmq/dist/esm/scripts/updateRepeatableJobMillis-1.js +30 -0
  543. package/dist/node_modules/bullmq/dist/esm/tsconfig.tsbuildinfo +1 -0
  544. package/dist/node_modules/bullmq/dist/esm/types/backoff-strategy.d.ts +2 -0
  545. package/dist/node_modules/bullmq/dist/esm/types/backoff-strategy.js +2 -0
  546. package/dist/node_modules/bullmq/dist/esm/types/finished-status.d.ts +2 -0
  547. package/dist/node_modules/bullmq/dist/esm/types/finished-status.js +2 -0
  548. package/dist/node_modules/bullmq/dist/esm/types/index.d.ts +8 -0
  549. package/dist/node_modules/bullmq/dist/esm/types/index.js +9 -0
  550. package/dist/node_modules/bullmq/dist/esm/types/job-json-sandbox.d.ts +5 -0
  551. package/dist/node_modules/bullmq/dist/esm/types/job-json-sandbox.js +2 -0
  552. package/dist/node_modules/bullmq/dist/esm/types/job-options.d.ts +81 -0
  553. package/dist/node_modules/bullmq/dist/esm/types/job-options.js +2 -0
  554. package/dist/node_modules/bullmq/dist/esm/types/job-scheduler-template-options.d.ts +2 -0
  555. package/dist/node_modules/bullmq/dist/esm/types/job-scheduler-template-options.js +2 -0
  556. package/dist/node_modules/bullmq/dist/esm/types/job-type.d.ts +3 -0
  557. package/dist/node_modules/bullmq/dist/esm/types/job-type.js +2 -0
  558. package/dist/node_modules/bullmq/dist/esm/types/minimal-queue.d.ts +2 -0
  559. package/dist/node_modules/bullmq/dist/esm/types/minimal-queue.js +2 -0
  560. package/dist/node_modules/bullmq/dist/esm/types/repeat-strategy.d.ts +2 -0
  561. package/dist/node_modules/bullmq/dist/esm/types/repeat-strategy.js +2 -0
  562. package/dist/node_modules/bullmq/dist/esm/utils.d.ts +72 -0
  563. package/dist/node_modules/bullmq/dist/esm/utils.js +263 -0
  564. package/dist/node_modules/bullmq/dist/esm/version.d.ts +1 -0
  565. package/dist/node_modules/bullmq/dist/esm/version.js +2 -0
  566. package/dist/node_modules/bullmq/node_modules/.bin/semver +17 -0
  567. package/dist/node_modules/bullmq/node_modules/.bin/uuid +17 -0
  568. package/dist/node_modules/bullmq/package.json +1 -0
  569. package/dist/node_modules/docxtemplater/build/docxtemplater.js +5019 -0
  570. package/dist/node_modules/docxtemplater/build/docxtemplater.min.js +1 -0
  571. package/dist/node_modules/docxtemplater/docxtemplater.d.ts +140 -0
  572. package/dist/node_modules/docxtemplater/docxtemplater.test-d.ts +318 -0
  573. package/dist/node_modules/docxtemplater/expressions-ie11.d.ts +19 -0
  574. package/dist/node_modules/docxtemplater/expressions-ie11.js +170 -0
  575. package/dist/node_modules/docxtemplater/expressions.d.ts +25 -0
  576. package/dist/node_modules/docxtemplater/expressions.js +322 -0
  577. package/dist/node_modules/docxtemplater/inspect-module.d.ts +29 -0
  578. package/dist/node_modules/docxtemplater/js/browser-versions/fs.js +3 -0
  579. package/dist/node_modules/docxtemplater/js/browser-versions/xmldom.js +7 -0
  580. package/dist/node_modules/docxtemplater/js/collect-content-types.js +28 -0
  581. package/dist/node_modules/docxtemplater/js/content-types.js +16 -0
  582. package/dist/node_modules/docxtemplater/js/debugger-module.js +60 -0
  583. package/dist/node_modules/docxtemplater/js/doc-utils.js +450 -0
  584. package/dist/node_modules/docxtemplater/js/docxtemplater.d.ts +140 -0
  585. package/dist/node_modules/docxtemplater/js/docxtemplater.js +1 -0
  586. package/dist/node_modules/docxtemplater/js/docxtemplater.test-d.ts +318 -0
  587. package/dist/node_modules/docxtemplater/js/error-logger.js +34 -0
  588. package/dist/node_modules/docxtemplater/js/errors.js +406 -0
  589. package/dist/node_modules/docxtemplater/js/expressions-ie11.d.ts +19 -0
  590. package/dist/node_modules/docxtemplater/js/expressions-ie11.js +165 -0
  591. package/dist/node_modules/docxtemplater/js/expressions.d.ts +25 -0
  592. package/dist/node_modules/docxtemplater/js/expressions.js +283 -0
  593. package/dist/node_modules/docxtemplater/js/file-type-config.js +89 -0
  594. package/dist/node_modules/docxtemplater/js/filetypes.js +24 -0
  595. package/dist/node_modules/docxtemplater/js/get-resolved-id.js +14 -0
  596. package/dist/node_modules/docxtemplater/js/inspect-module.d.ts +29 -0
  597. package/dist/node_modules/docxtemplater/js/inspect-module.js +253 -0
  598. package/dist/node_modules/docxtemplater/js/join-uncorrupt.js +109 -0
  599. package/dist/node_modules/docxtemplater/js/lexer.js +470 -0
  600. package/dist/node_modules/docxtemplater/js/memory-test.js +38 -0
  601. package/dist/node_modules/docxtemplater/js/merge-sort.js +32 -0
  602. package/dist/node_modules/docxtemplater/js/module-wrapper.js +44 -0
  603. package/dist/node_modules/docxtemplater/js/modules/common.js +69 -0
  604. package/dist/node_modules/docxtemplater/js/modules/expand-pair-trait.js +257 -0
  605. package/dist/node_modules/docxtemplater/js/modules/fix-doc-pr-corruption.js +85 -0
  606. package/dist/node_modules/docxtemplater/js/modules/loop.js +470 -0
  607. package/dist/node_modules/docxtemplater/js/modules/rawxml.js +109 -0
  608. package/dist/node_modules/docxtemplater/js/modules/render.js +176 -0
  609. package/dist/node_modules/docxtemplater/js/modules/space-preserve.js +107 -0
  610. package/dist/node_modules/docxtemplater/js/parser.js +203 -0
  611. package/dist/node_modules/docxtemplater/js/postrender.js +110 -0
  612. package/dist/node_modules/docxtemplater/js/prefix-matcher.js +48 -0
  613. package/dist/node_modules/docxtemplater/js/proof-state-module.js +27 -0
  614. package/dist/node_modules/docxtemplater/js/render.js +64 -0
  615. package/dist/node_modules/docxtemplater/js/resolve.js +82 -0
  616. package/dist/node_modules/docxtemplater/js/scope-manager.js +229 -0
  617. package/dist/node_modules/docxtemplater/js/test-text.js +12 -0
  618. package/dist/node_modules/docxtemplater/js/tests/assertion-module.js +163 -0
  619. package/dist/node_modules/docxtemplater/js/tests/data/raw-xml-pptx.js +3 -0
  620. package/dist/node_modules/docxtemplater/js/tests/e2e/async.js +167 -0
  621. package/dist/node_modules/docxtemplater/js/tests/e2e/base.js +1133 -0
  622. package/dist/node_modules/docxtemplater/js/tests/e2e/doc-props.js +68 -0
  623. package/dist/node_modules/docxtemplater/js/tests/e2e/errors.js +1216 -0
  624. package/dist/node_modules/docxtemplater/js/tests/e2e/fixtures.js +2031 -0
  625. package/dist/node_modules/docxtemplater/js/tests/e2e/integration.js +1258 -0
  626. package/dist/node_modules/docxtemplater/js/tests/e2e/lexer-parser-render.js +139 -0
  627. package/dist/node_modules/docxtemplater/js/tests/e2e/modules.js +796 -0
  628. package/dist/node_modules/docxtemplater/js/tests/e2e/pptx.js +140 -0
  629. package/dist/node_modules/docxtemplater/js/tests/e2e/speed.js +281 -0
  630. package/dist/node_modules/docxtemplater/js/tests/e2e/table.js +215 -0
  631. package/dist/node_modules/docxtemplater/js/tests/e2e/text.js +98 -0
  632. package/dist/node_modules/docxtemplater/js/tests/e2e/v3.js +279 -0
  633. package/dist/node_modules/docxtemplater/js/tests/e2e/xml-templater.js +478 -0
  634. package/dist/node_modules/docxtemplater/js/tests/filenames.js +1 -0
  635. package/dist/node_modules/docxtemplater/js/tests/index.js +122 -0
  636. package/dist/node_modules/docxtemplater/js/tests/printy.js +47 -0
  637. package/dist/node_modules/docxtemplater/js/tests/string-repeat.js +36 -0
  638. package/dist/node_modules/docxtemplater/js/tests/unit/doc-utils.js +77 -0
  639. package/dist/node_modules/docxtemplater/js/tests/unit/expressions.js +124 -0
  640. package/dist/node_modules/docxtemplater/js/tests/unit/merge-sort.js +69 -0
  641. package/dist/node_modules/docxtemplater/js/tests/unit/scope-manager.js +76 -0
  642. package/dist/node_modules/docxtemplater/js/tests/unit/xml-matcher.js +72 -0
  643. package/dist/node_modules/docxtemplater/js/tests/utils.js +873 -0
  644. package/dist/node_modules/docxtemplater/js/tests/xml-prettify.js +219 -0
  645. package/dist/node_modules/docxtemplater/js/text.d.ts +16 -0
  646. package/dist/node_modules/docxtemplater/js/text.js +88 -0
  647. package/dist/node_modules/docxtemplater/js/traits.js +347 -0
  648. package/dist/node_modules/docxtemplater/js/uintarray-to-string.js +132 -0
  649. package/dist/node_modules/docxtemplater/js/utils.js +12 -0
  650. package/dist/node_modules/docxtemplater/js/xml-matcher.js +13 -0
  651. package/dist/node_modules/docxtemplater/js/xml-templater.js +242 -0
  652. package/dist/node_modules/docxtemplater/package.json +1 -0
  653. package/dist/node_modules/docxtemplater/text.d.ts +16 -0
  654. package/dist/node_modules/docxtemplater/text.js +88 -0
  655. package/dist/node_modules/docxtemplater/webpack.config.js +55 -0
  656. package/dist/node_modules/pizzip/.babelrc +5 -0
  657. package/dist/node_modules/pizzip/.codeclimate.yml +14 -0
  658. package/dist/node_modules/pizzip/.editorconfig +13 -0
  659. package/dist/node_modules/pizzip/.eslintcache +1 -0
  660. package/dist/node_modules/pizzip/.eslintrc +203 -0
  661. package/dist/node_modules/pizzip/.ignored.log +8 -0
  662. package/dist/node_modules/pizzip/.jshintignore +2 -0
  663. package/dist/node_modules/pizzip/.jshintrc +12 -0
  664. package/dist/node_modules/pizzip/.prettierrc.yaml +1 -0
  665. package/dist/node_modules/pizzip/.travis.yml +19 -0
  666. package/dist/node_modules/pizzip/LICENSE.markdown +647 -0
  667. package/dist/node_modules/pizzip/README.markdown +30 -0
  668. package/dist/node_modules/pizzip/dist/pizzip-utils-ie.js +50 -0
  669. package/dist/node_modules/pizzip/dist/pizzip-utils-ie.min.js +1 -0
  670. package/dist/node_modules/pizzip/dist/pizzip-utils.js +58 -0
  671. package/dist/node_modules/pizzip/dist/pizzip-utils.min.js +1 -0
  672. package/dist/node_modules/pizzip/dist/pizzip.js +321 -0
  673. package/dist/node_modules/pizzip/dist/pizzip.min.js +2 -0
  674. package/dist/node_modules/pizzip/dist/pizzip.min.js.LICENSE.txt +1 -0
  675. package/dist/node_modules/pizzip/es6/arrayReader.js +59 -0
  676. package/dist/node_modules/pizzip/es6/base64.js +69 -0
  677. package/dist/node_modules/pizzip/es6/compressedObject.js +28 -0
  678. package/dist/node_modules/pizzip/es6/compressions.js +13 -0
  679. package/dist/node_modules/pizzip/es6/crc32.js +102 -0
  680. package/dist/node_modules/pizzip/es6/dataReader.js +115 -0
  681. package/dist/node_modules/pizzip/es6/defaults.js +11 -0
  682. package/dist/node_modules/pizzip/es6/deprecatedPublicUtils.js +103 -0
  683. package/dist/node_modules/pizzip/es6/flate.js +19 -0
  684. package/dist/node_modules/pizzip/es6/index.d.ts +384 -0
  685. package/dist/node_modules/pizzip/es6/index.js +89 -0
  686. package/dist/node_modules/pizzip/es6/index.test-d.ts +99 -0
  687. package/dist/node_modules/pizzip/es6/license_header.js +11 -0
  688. package/dist/node_modules/pizzip/es6/load.js +39 -0
  689. package/dist/node_modules/pizzip/es6/nodeBuffer.js +10 -0
  690. package/dist/node_modules/pizzip/es6/nodeBufferReader.js +24 -0
  691. package/dist/node_modules/pizzip/es6/object.js +924 -0
  692. package/dist/node_modules/pizzip/es6/signature.js +7 -0
  693. package/dist/node_modules/pizzip/es6/stringReader.js +40 -0
  694. package/dist/node_modules/pizzip/es6/stringWriter.js +30 -0
  695. package/dist/node_modules/pizzip/es6/support.js +37 -0
  696. package/dist/node_modules/pizzip/es6/uint8ArrayReader.js +29 -0
  697. package/dist/node_modules/pizzip/es6/uint8ArrayWriter.js +36 -0
  698. package/dist/node_modules/pizzip/es6/utf8.js +241 -0
  699. package/dist/node_modules/pizzip/es6/utils.js +381 -0
  700. package/dist/node_modules/pizzip/es6/zipEntries.js +317 -0
  701. package/dist/node_modules/pizzip/es6/zipEntry.js +349 -0
  702. package/dist/node_modules/pizzip/js/arrayReader.js +49 -0
  703. package/dist/node_modules/pizzip/js/base64.js +53 -0
  704. package/dist/node_modules/pizzip/js/compressedObject.js +28 -0
  705. package/dist/node_modules/pizzip/js/compressions.js +14 -0
  706. package/dist/node_modules/pizzip/js/crc32.js +33 -0
  707. package/dist/node_modules/pizzip/js/dataReader.js +112 -0
  708. package/dist/node_modules/pizzip/js/defaults.js +12 -0
  709. package/dist/node_modules/pizzip/js/deprecatedPublicUtils.js +104 -0
  710. package/dist/node_modules/pizzip/js/flate.js +15 -0
  711. package/dist/node_modules/pizzip/js/index.d.ts +384 -0
  712. package/dist/node_modules/pizzip/js/index.js +3 -0
  713. package/dist/node_modules/pizzip/js/index.test-d.ts +99 -0
  714. package/dist/node_modules/pizzip/js/license_header.js +12 -0
  715. package/dist/node_modules/pizzip/js/load.js +38 -0
  716. package/dist/node_modules/pizzip/js/nodeBuffer.js +11 -0
  717. package/dist/node_modules/pizzip/js/nodeBufferReader.js +21 -0
  718. package/dist/node_modules/pizzip/js/object.js +803 -0
  719. package/dist/node_modules/pizzip/js/signature.js +8 -0
  720. package/dist/node_modules/pizzip/js/stringReader.js +37 -0
  721. package/dist/node_modules/pizzip/js/stringWriter.js +29 -0
  722. package/dist/node_modules/pizzip/js/support.js +31 -0
  723. package/dist/node_modules/pizzip/js/uint8ArrayReader.js +26 -0
  724. package/dist/node_modules/pizzip/js/uint8ArrayWriter.js +35 -0
  725. package/dist/node_modules/pizzip/js/utf8.js +221 -0
  726. package/dist/node_modules/pizzip/js/utils.js +353 -0
  727. package/dist/node_modules/pizzip/js/zipEntries.js +266 -0
  728. package/dist/node_modules/pizzip/js/zipEntry.js +293 -0
  729. package/dist/node_modules/pizzip/package.json +1 -0
  730. package/dist/node_modules/pizzip/symlink.sh +4 -0
  731. package/dist/node_modules/pizzip/utils/.jshintignore +2 -0
  732. package/dist/node_modules/pizzip/utils/.jshintrc +13 -0
  733. package/dist/node_modules/pizzip/utils/.travis.yml +10 -0
  734. package/dist/node_modules/pizzip/utils/LICENSE.markdown +651 -0
  735. package/dist/node_modules/pizzip/utils/README.markdown +21 -0
  736. package/dist/node_modules/pizzip/utils/dist/pizzip-utils-ie.js +50 -0
  737. package/dist/node_modules/pizzip/utils/dist/pizzip-utils-ie.min.js +1 -0
  738. package/dist/node_modules/pizzip/utils/dist/pizzip-utils.js +58 -0
  739. package/dist/node_modules/pizzip/utils/dist/pizzip-utils.min.js +1 -0
  740. package/dist/node_modules/pizzip/utils/es6/index.js +105 -0
  741. package/dist/node_modules/pizzip/utils/es6/index_IE.js +43 -0
  742. package/dist/node_modules/pizzip/utils/es6/license_header.js +8 -0
  743. package/dist/node_modules/pizzip/utils/index.d.ts +5 -0
  744. package/dist/node_modules/pizzip/utils/index.js +1 -0
  745. package/dist/node_modules/pizzip/utils/index.test-d.ts +15 -0
  746. package/dist/node_modules/pizzip/utils/webpack.config.js +39 -0
  747. package/dist/node_modules/pizzip/vendor/FileSaver.js +247 -0
  748. package/dist/node_modules/pizzip/webpack.config.js +30 -0
  749. package/dist/server/actions/printTemplates.d.ts +6 -0
  750. package/dist/server/actions/printTemplates.js +126 -0
  751. package/dist/server/actions/producer.d.ts +3 -0
  752. package/dist/server/actions/producer.js +81 -0
  753. package/dist/server/index.d.ts +1 -0
  754. package/dist/server/index.js +33 -0
  755. package/dist/server/plugin.d.ts +8 -0
  756. package/dist/server/plugin.js +120 -0
  757. package/package.json +26 -0
  758. package/server.d.ts +2 -0
  759. package/server.js +1 -0
@@ -0,0 +1,2031 @@
1
+ "use strict";
2
+
3
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
4
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
6
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
8
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
9
+ var _require = require("lodash"),
10
+ assign = _require.assign;
11
+ var expressionParser = require("../../expressions.js");
12
+ var expressionParserIE11 = require("../../expressions-ie11.js");
13
+ var Errors = require("../../errors.js");
14
+ var _require2 = require("../utils.js"),
15
+ wrapMultiError = _require2.wrapMultiError;
16
+ var nbsp = String.fromCharCode(160);
17
+ var _require3 = require("../utils.js"),
18
+ expect = _require3.expect;
19
+ expressionParser.filters.upper = function (str) {
20
+ if (!str) {
21
+ return str;
22
+ }
23
+ return str.toUpperCase();
24
+ };
25
+ expressionParser.filters.sum = function (num1, num2) {
26
+ return num1 + num2;
27
+ };
28
+ var noInternals = {
29
+ lexed: null,
30
+ parsed: null,
31
+ postparsed: null
32
+ };
33
+ var xmlSpacePreserveTag = {
34
+ type: "tag",
35
+ position: "start",
36
+ value: '<w:t xml:space="preserve">',
37
+ text: true,
38
+ tag: "w:t"
39
+ };
40
+ var startText = {
41
+ type: "tag",
42
+ position: "start",
43
+ value: "<w:t>",
44
+ text: true,
45
+ tag: "w:t"
46
+ };
47
+ var endText = {
48
+ type: "tag",
49
+ value: "</w:t>",
50
+ text: true,
51
+ position: "end",
52
+ tag: "w:t"
53
+ };
54
+ var startParagraph = {
55
+ type: "tag",
56
+ value: "<w:p>",
57
+ text: false,
58
+ position: "start",
59
+ tag: "w:p"
60
+ };
61
+ var endParagraph = {
62
+ type: "tag",
63
+ value: "</w:p>",
64
+ text: false,
65
+ position: "end",
66
+ tag: "w:p"
67
+ };
68
+ var tableRowStart = {
69
+ type: "tag",
70
+ position: "start",
71
+ text: false,
72
+ value: "<w:tr>",
73
+ tag: "w:tr"
74
+ };
75
+ var tableRowEnd = {
76
+ type: "tag",
77
+ value: "</w:tr>",
78
+ text: false,
79
+ position: "end",
80
+ tag: "w:tr"
81
+ };
82
+ var tableColStart = {
83
+ type: "tag",
84
+ position: "start",
85
+ text: false,
86
+ value: "<w:tc>",
87
+ tag: "w:tc"
88
+ };
89
+ var tableColEnd = {
90
+ type: "tag",
91
+ value: "</w:tc>",
92
+ text: false,
93
+ position: "end",
94
+ tag: "w:tc"
95
+ };
96
+ var delimiters = {
97
+ start: {
98
+ type: "delimiter",
99
+ position: "start"
100
+ },
101
+ end: {
102
+ type: "delimiter",
103
+ position: "end"
104
+ }
105
+ };
106
+ function content(value) {
107
+ return {
108
+ type: "content",
109
+ value: value,
110
+ position: "insidetag"
111
+ };
112
+ }
113
+ function externalContent(value) {
114
+ return {
115
+ type: "content",
116
+ value: value,
117
+ position: "outsidetag"
118
+ };
119
+ }
120
+ var fixtures = [{
121
+ it: "should handle {user} with tag",
122
+ contentText: "Hi {user}",
123
+ scope: {
124
+ user: "Foo"
125
+ },
126
+ resultText: "Hi Foo",
127
+ xmllexed: [{
128
+ position: "start",
129
+ tag: "w:t",
130
+ text: true,
131
+ type: "tag",
132
+ value: "<w:t>"
133
+ }, {
134
+ type: "content",
135
+ value: "Hi {user}"
136
+ }, {
137
+ position: "end",
138
+ tag: "w:t",
139
+ text: true,
140
+ type: "tag",
141
+ value: "</w:t>"
142
+ }],
143
+ lexed: [startText, content("Hi "), delimiters.start, content("user"), delimiters.end, endText],
144
+ parsed: [startText, content("Hi "), {
145
+ type: "placeholder",
146
+ value: "user"
147
+ }, endText],
148
+ postparsed: [xmlSpacePreserveTag, content("Hi "), {
149
+ type: "placeholder",
150
+ value: "user"
151
+ }, endText]
152
+ }, {
153
+ it: "should handle {.} with tag",
154
+ contentText: "Hi {.}",
155
+ scope: "Foo",
156
+ resultText: "Hi Foo",
157
+ lexed: [startText, content("Hi "), delimiters.start, content("."), delimiters.end, endText],
158
+ parsed: [startText, content("Hi "), {
159
+ type: "placeholder",
160
+ value: "."
161
+ }, endText],
162
+ postparsed: [xmlSpacePreserveTag, content("Hi "), {
163
+ type: "placeholder",
164
+ value: "."
165
+ }, endText]
166
+ }, _objectSpread(_objectSpread({
167
+ it: "should handle {userGreeting} with lambda function",
168
+ contentText: "{#users}{userGreeting}{/}",
169
+ resultText: "How is it going, John ? 1How is it going, Mary ? 1"
170
+ }, noInternals), {}, {
171
+ scope: {
172
+ userGreeting: function userGreeting(scope, sm) {
173
+ return "How is it going, " + scope.name + " ? " + sm.scopeLindex.length;
174
+ },
175
+ users: [{
176
+ name: "John"
177
+ }, {
178
+ name: "Mary"
179
+ }]
180
+ }
181
+ }), _objectSpread(_objectSpread({
182
+ it: "should not add a new paragraph after a table if there is a bookmarkEnd after the table"
183
+ }, noInternals), {}, {
184
+ content: "\n <w:tbl>\n <w:tr>\n <w:tc>\n <w:p>\n <w:r>\n <w:t>{#users}{name}</w:t>\n </w:r>\n </w:p>\n </w:tc>\n <w:tc>\n <w:p w14:paraId=\"618916E2\" w14:textId=\"77777777\" w:rsidR=\"00FB7E94\" w:rsidRPr=\"00F32895\" w:rsidRDefault=\"00FB7E94\" w:rsidP=\"00A141BC\">\n <w:r>\n\t\t\t <w:t>{/}</w:t>\n </w:r>\n </w:p>\n </w:tc>\n </w:tr>\n </w:tbl>\n <w:bookmarkEnd w:id=\"0\"/>\n <w:p>\n <w:r>\n <w:t>After Text </w:t>\n </w:r>\n </w:p>\n\t\t",
185
+ scope: {
186
+ users: [{
187
+ name: "John"
188
+ }]
189
+ },
190
+ result: "\n <w:tbl>\n <w:tr>\n <w:tc>\n <w:p>\n <w:r>\n <w:t xml:space=\"preserve\">John</w:t>\n </w:r>\n </w:p>\n </w:tc>\n <w:tc>\n <w:p w14:paraId=\"618916E2\" w14:textId=\"77777777\" w:rsidR=\"00FB7E94\" w:rsidRPr=\"00F32895\" w:rsidRDefault=\"00FB7E94\" w:rsidP=\"00A141BC\">\n <w:r>\n\t\t\t <w:t/>\n </w:r>\n </w:p>\n </w:tc>\n </w:tr>\n </w:tbl>\n <w:bookmarkEnd w:id=\"0\"/>\n <w:p>\n <w:r>\n <w:t>After Text </w:t>\n </w:r>\n </w:p>\n\t\t"
191
+ }), _objectSpread(_objectSpread({
192
+ it: "should handle non breaking space in tag"
193
+ }, noInternals), {}, {
194
+ contentText: "{:foo".concat(nbsp).concat(nbsp, "bar").concat(nbsp, "bar} {:zing").concat(nbsp).concat(nbsp).concat(nbsp, "bang}"),
195
+ resultText: "Hey Ho",
196
+ options: {
197
+ modules: function modules() {
198
+ return [{
199
+ name: "FooModule",
200
+ parse: function parse(placeHolderContent, options) {
201
+ if (options.match(":foo ", placeHolderContent)) {
202
+ return {
203
+ type: "placeholder",
204
+ value: options.getValue(":foo ", placeHolderContent)
205
+ };
206
+ }
207
+ if (options.match(/^:zing +(.*)/, placeHolderContent)) {
208
+ return {
209
+ type: "placeholder",
210
+ value: options.getValue(/^:zing +(.*)/, placeHolderContent)
211
+ };
212
+ }
213
+ }
214
+ }];
215
+ },
216
+ parser: function parser(tag) {
217
+ return {
218
+ get: function get() {
219
+ if (tag === "bar bar") {
220
+ return "Hey";
221
+ }
222
+ if (tag === "bang") {
223
+ return "Ho";
224
+ }
225
+ return "Bad";
226
+ }
227
+ };
228
+ }
229
+ }
230
+ }), _objectSpread(_objectSpread({
231
+ it: "should be possible to implement a parser that loads nested data using {user.name}",
232
+ resultText: "Hello John, your age is 33. Date : 17/01/2000"
233
+ }, noInternals), {}, {
234
+ contentText: "Hello {user.name}, your age is {user.age}. Date : {date}",
235
+ options: {
236
+ parser: function parser(tag) {
237
+ var splitted = tag.split(".");
238
+ return {
239
+ get: function get(scope) {
240
+ if (tag === ".") {
241
+ return scope;
242
+ }
243
+ var s = scope;
244
+ for (var _i2 = 0; _i2 < splitted.length; _i2++) {
245
+ var item = splitted[_i2];
246
+ s = s[item];
247
+ }
248
+ return s;
249
+ }
250
+ };
251
+ }
252
+ },
253
+ scope: {
254
+ user: {
255
+ name: "John",
256
+ age: 33
257
+ },
258
+ date: "17/01/2000"
259
+ }
260
+ }), _objectSpread(_objectSpread({
261
+ it: "should be possible to add nullGetter to module (and use the first nullGetter result)"
262
+ }, noInternals), {}, {
263
+ contentText: "{foo}",
264
+ resultText: "foo",
265
+ options: {
266
+ modules: function modules() {
267
+ return [{
268
+ name: "MyModule",
269
+ nullGetter: function nullGetter() {
270
+ return "foo";
271
+ }
272
+ }, {
273
+ name: "MyModule2",
274
+ nullGetter: function nullGetter() {
275
+ return "bar";
276
+ }
277
+ }];
278
+ }
279
+ }
280
+ }), _objectSpread(_objectSpread({
281
+ it: "should handle {#userGet} with lambda function",
282
+ contentText: "{#userGet}- {name}{/}",
283
+ resultText: "- John- Mary"
284
+ }, noInternals), {}, {
285
+ scope: {
286
+ userGet: function userGet() {
287
+ return [{
288
+ name: "John"
289
+ }, {
290
+ name: "Mary"
291
+ }];
292
+ }
293
+ }
294
+ }), _objectSpread(_objectSpread({
295
+ it: "should allow to call a function up one scope with expressions parser",
296
+ contentText: "{#users}{hi(.)}{/}",
297
+ resultText: "What&apos;s up, John ?What&apos;s up, Jackie ?"
298
+ }, noInternals), {}, {
299
+ options: {
300
+ parser: expressionParser
301
+ },
302
+ scope: {
303
+ hi: function hi(user) {
304
+ return "What's up, ".concat(user, " ?");
305
+ },
306
+ users: ["John", "Jackie"]
307
+ }
308
+ }), {
309
+ it: "should xmlparse strange tags",
310
+ content: "<w:t>{name} {</w:t>FOO<w:t>age</w:t>BAR<w:t>}</w:t>",
311
+ scope: {
312
+ name: "Foo",
313
+ age: 12
314
+ },
315
+ result: '<w:t xml:space="preserve">Foo 12</w:t>FOO<w:t></w:t>BAR<w:t></w:t>',
316
+ xmllexed: [startText, {
317
+ type: "content",
318
+ value: "{name} {"
319
+ }, endText, {
320
+ type: "content",
321
+ value: "FOO"
322
+ }, startText, {
323
+ type: "content",
324
+ value: "age"
325
+ }, endText, {
326
+ type: "content",
327
+ value: "BAR"
328
+ }, startText, {
329
+ type: "content",
330
+ value: "}"
331
+ }, endText],
332
+ lexed: [startText, delimiters.start, content("name"), delimiters.end, content(" "), delimiters.start, endText, externalContent("FOO"), startText, content("age"), endText, externalContent("BAR"), startText, delimiters.end, endText],
333
+ parsed: [startText, {
334
+ type: "placeholder",
335
+ value: "name"
336
+ }, content(" "), {
337
+ type: "placeholder",
338
+ value: "age"
339
+ }, endText, externalContent("FOO"), startText, endText, externalContent("BAR"), startText, endText],
340
+ postparsed: null
341
+ }, {
342
+ it: "should work with custom delimiters",
343
+ contentText: "Hello [[[name]]",
344
+ scope: {
345
+ name: "John Doe"
346
+ },
347
+ resultText: "Hello John Doe",
348
+ delimiters: {
349
+ start: "[[[",
350
+ end: "]]"
351
+ },
352
+ lexed: [startText, content("Hello "), delimiters.start, content("name"), delimiters.end, endText],
353
+ parsed: [startText, content("Hello "), {
354
+ type: "placeholder",
355
+ value: "name"
356
+ }, endText],
357
+ postparsed: null
358
+ }, {
359
+ it: "should work with custom delimiters splitted",
360
+ content: '<w:t>Hello {name}</w:t><w:t foo="bar">}, how is it ?</w:t>',
361
+ scope: {
362
+ name: "John Doe"
363
+ },
364
+ result: '<w:t xml:space="preserve">Hello John Doe</w:t><w:t foo="bar">, how is it ?</w:t>',
365
+ delimiters: {
366
+ start: "{",
367
+ end: "}}"
368
+ },
369
+ lexed: [startText, content("Hello "), delimiters.start, content("name"), delimiters.end, endText, {
370
+ type: "tag",
371
+ value: '<w:t foo="bar">',
372
+ text: true,
373
+ position: "start",
374
+ tag: "w:t"
375
+ }, content(", how is it ?"), endText],
376
+ parsed: [startText, content("Hello "), {
377
+ type: "placeholder",
378
+ value: "name"
379
+ }, endText, {
380
+ type: "tag",
381
+ value: '<w:t foo="bar">',
382
+ text: true,
383
+ position: "start",
384
+ tag: "w:t"
385
+ }, content(", how is it ?"), endText],
386
+ postparsed: null
387
+ }, {
388
+ it: "should work with custom delimiters splitted over > 2 tags",
389
+ content: "<w:t>Hello {name}</w:t><w:t>}</w:t>TAG<w:t>}</w:t><w:t>}}foobar</w:t>",
390
+ scope: {
391
+ name: "John Doe"
392
+ },
393
+ result: '<w:t xml:space="preserve">Hello John Doe</w:t><w:t></w:t>TAG<w:t></w:t><w:t>foobar</w:t>',
394
+ delimiters: {
395
+ start: "{",
396
+ end: "}}}}}"
397
+ },
398
+ lexed: [startText, content("Hello "), delimiters.start, content("name"), delimiters.end, endText, startText, endText, externalContent("TAG"), startText, endText, startText, content("foobar"), endText],
399
+ parsed: [startText, content("Hello "), {
400
+ type: "placeholder",
401
+ value: "name"
402
+ }, endText, startText, endText, externalContent("TAG"), startText, endText, startText, content("foobar"), endText],
403
+ postparsed: null
404
+ }, _objectSpread(_objectSpread({
405
+ it: "should work when having equal sign after closing tag",
406
+ content: "<w:r><w:t>{foo}====</w:t></w:r>",
407
+ scope: {
408
+ foo: "FOO"
409
+ }
410
+ }, noInternals), {}, {
411
+ result: '<w:r><w:t xml:space="preserve">FOO====</w:t></w:r>'
412
+ }), _objectSpread(_objectSpread({
413
+ it: "should fail when having two open text tags",
414
+ content: "<w:t><w:t>xxx"
415
+ }, noInternals), {}, {
416
+ error: {
417
+ message: "Malformed xml",
418
+ name: "InternalError",
419
+ properties: {
420
+ id: "malformed_xml",
421
+ explanation: "The template contains malformed xml"
422
+ }
423
+ },
424
+ errorType: Errors.XTInternalError
425
+ }), _objectSpread(_objectSpread({
426
+ it: "should fail when having two close text tags",
427
+ content: "<w:t></w:t></w:t>xxx"
428
+ }, noInternals), {}, {
429
+ error: {
430
+ message: "Malformed xml",
431
+ name: "InternalError",
432
+ properties: {
433
+ id: "malformed_xml",
434
+ explanation: "The template contains malformed xml"
435
+ }
436
+ },
437
+ errorType: Errors.XTInternalError
438
+ }), _objectSpread(_objectSpread({
439
+ it: "should show multierror with loops",
440
+ contentText: "{#a}{b}{/a}"
441
+ }, noInternals), {}, {
442
+ options: {
443
+ parser: function parser() {
444
+ return {
445
+ get: function get() {
446
+ throw new Error("Foobar");
447
+ }
448
+ };
449
+ }
450
+ },
451
+ error: wrapMultiError({
452
+ name: "ScopeParserError",
453
+ message: "Scope parser execution failed",
454
+ properties: {
455
+ explanation: "The scope parser for the tag a failed to execute",
456
+ rootError: {
457
+ message: "Foobar"
458
+ },
459
+ file: "word/document.xml",
460
+ id: "scopeparser_execution_failed",
461
+ xtag: "a",
462
+ offset: 0
463
+ }
464
+ }),
465
+ errorType: Errors.XTTemplateError
466
+ }), _objectSpread(_objectSpread({
467
+ it: "should show multierror with loops",
468
+ contentText: "{#a}{b}{/a}"
469
+ }, noInternals), {}, {
470
+ options: {
471
+ parser: function parser(tag) {
472
+ return {
473
+ get: function get(scope) {
474
+ if (tag === "a") {
475
+ return scope[tag];
476
+ }
477
+ throw new Error("Foobar");
478
+ }
479
+ };
480
+ }
481
+ },
482
+ scope: {
483
+ a: [1]
484
+ },
485
+ error: wrapMultiError({
486
+ name: "ScopeParserError",
487
+ message: "Scope parser execution failed",
488
+ properties: {
489
+ explanation: "The scope parser for the tag b failed to execute",
490
+ rootError: {
491
+ message: "Foobar"
492
+ },
493
+ file: "word/document.xml",
494
+ id: "scopeparser_execution_failed",
495
+ scope: 1,
496
+ xtag: "b",
497
+ offset: 4
498
+ }
499
+ }),
500
+ errorType: Errors.XTTemplateError
501
+ }), {
502
+ it: "should work with loops",
503
+ contentText: "Hello {#users}{name}, {/users}",
504
+ scope: {
505
+ users: [{
506
+ name: "John Doe"
507
+ }, {
508
+ name: "Jane Doe"
509
+ }, {
510
+ name: "Wane Doe"
511
+ }]
512
+ },
513
+ resultText: "Hello John Doe, Jane Doe, Wane Doe, ",
514
+ lexed: [startText, content("Hello "), delimiters.start, content("#users"), delimiters.end, delimiters.start, content("name"), delimiters.end, content(", "), delimiters.start, content("/users"), delimiters.end, endText],
515
+ parsed: [startText, content("Hello "), {
516
+ type: "placeholder",
517
+ value: "users",
518
+ location: "start",
519
+ module: "loop",
520
+ inverted: false,
521
+ expandTo: "auto"
522
+ }, {
523
+ type: "placeholder",
524
+ value: "name"
525
+ }, content(", "), {
526
+ type: "placeholder",
527
+ value: "users",
528
+ location: "end",
529
+ module: "loop"
530
+ }, endText],
531
+ postparsed: [xmlSpacePreserveTag, content("Hello "), {
532
+ type: "placeholder",
533
+ value: "users",
534
+ module: "loop",
535
+ inverted: false,
536
+ sectPrCount: 0,
537
+ subparsed: [{
538
+ type: "placeholder",
539
+ value: "name"
540
+ }, content(", ")]
541
+ }, endText]
542
+ }, {
543
+ it: "should work with paragraph loops",
544
+ content: "<w:p><w:t>Hello </w:t></w:p><w:p><w:t>{#users}</w:t></w:p><w:p><w:t>User {.}</w:t></w:p><w:p><w:t>{/users}</w:t></w:p>",
545
+ options: {
546
+ paragraphLoop: true
547
+ },
548
+ scope: {
549
+ users: ["John Doe", "Jane Doe", "Wane Doe"]
550
+ },
551
+ result: '<w:p><w:t>Hello </w:t></w:p><w:p><w:t xml:space="preserve">User John Doe</w:t></w:p><w:p><w:t xml:space="preserve">User Jane Doe</w:t></w:p><w:p><w:t xml:space="preserve">User Wane Doe</w:t></w:p>',
552
+ lexed: [startParagraph, startText, content("Hello "), endText, endParagraph, startParagraph, startText, delimiters.start, content("#users"), delimiters.end, endText, endParagraph, startParagraph, startText, content("User "), delimiters.start, content("."), delimiters.end, endText, endParagraph, startParagraph, startText, delimiters.start, content("/users"), delimiters.end, endText, endParagraph],
553
+ parsed: [startParagraph, startText, content("Hello "), endText, endParagraph, startParagraph, startText, {
554
+ type: "placeholder",
555
+ value: "users",
556
+ location: "start",
557
+ module: "loop",
558
+ inverted: false,
559
+ expandTo: "auto"
560
+ }, endText, endParagraph, startParagraph, startText, content("User "), {
561
+ type: "placeholder",
562
+ value: "."
563
+ }, endText, endParagraph, startParagraph, startText, {
564
+ type: "placeholder",
565
+ value: "users",
566
+ location: "end",
567
+ module: "loop"
568
+ }, endText, endParagraph],
569
+ postparsed: [startParagraph, startText, content("Hello "), endText, endParagraph, {
570
+ type: "placeholder",
571
+ value: "users",
572
+ module: "loop",
573
+ paragraphLoop: true,
574
+ sectPrCount: 0,
575
+ hasPageBreak: false,
576
+ hasPageBreakBeginning: false,
577
+ inverted: false,
578
+ subparsed: [startParagraph, xmlSpacePreserveTag, content("User "), {
579
+ type: "placeholder",
580
+ value: "."
581
+ }, endText, endParagraph]
582
+ }]
583
+ }, _objectSpread(_objectSpread({
584
+ it: "should work with paragraph loops and selfclosing paragraphs"
585
+ }, noInternals), {}, {
586
+ content: "<w:p><w:t>{#foo}</w:t></w:p><w:p/><w:xxx></w:xxx><w:p><w:t>{/}</w:t></w:p>",
587
+ options: {
588
+ paragraphLoop: true
589
+ },
590
+ scope: {
591
+ foo: true
592
+ },
593
+ result: "<w:p/><w:xxx></w:xxx>"
594
+ }), _objectSpread(_objectSpread({
595
+ it: "should not fail with nested loops if using paragraphLoop",
596
+ content: "<w:p><w:t>{#users} {#pets}</w:t></w:p><w:p><w:t>Pet {.}</w:t></w:p><w:p><w:t>{/pets}{/users}</w:t></w:p>"
597
+ }, noInternals), {}, {
598
+ options: {
599
+ paragraphLoop: true
600
+ },
601
+ scope: {
602
+ users: [{
603
+ pets: ["Cat", "Dog"]
604
+ }, {
605
+ pets: ["Cat", "Dog"]
606
+ }]
607
+ },
608
+ result: '<w:p><w:t xml:space="preserve"> </w:t></w:p><w:p><w:t xml:space="preserve">Pet Cat</w:t></w:p><w:p><w:t/></w:p><w:p><w:t xml:space="preserve">Pet Dog</w:t></w:p><w:p><w:t xml:space="preserve"> </w:t></w:p><w:p><w:t xml:space="preserve">Pet Cat</w:t></w:p><w:p><w:t/></w:p><w:p><w:t xml:space="preserve">Pet Dog</w:t></w:p><w:p><w:t/></w:p>'
609
+ }), {
610
+ it: "should work with spacing loops",
611
+ content: "<w:t>{#condition</w:t><w:t>} hello{/</w:t><w:t>condition}</w:t>",
612
+ scope: {
613
+ condition: true
614
+ },
615
+ result: '<w:t/><w:t xml:space="preserve"> hello</w:t><w:t></w:t>',
616
+ lexed: [startText, delimiters.start, content("#condition"), endText, startText, delimiters.end, content(" hello"), delimiters.start, content("/"), endText, startText, content("condition"), delimiters.end, endText],
617
+ parsed: [startText, {
618
+ type: "placeholder",
619
+ value: "condition",
620
+ location: "start",
621
+ module: "loop",
622
+ inverted: false,
623
+ expandTo: "auto"
624
+ }, endText, startText, content(" hello"), {
625
+ type: "placeholder",
626
+ value: "condition",
627
+ location: "end",
628
+ module: "loop"
629
+ }, endText, startText, endText],
630
+ postparsed: null
631
+ }, _objectSpread(_objectSpread({
632
+ it: "should work with spacing loops 2"
633
+ }, noInternals), {}, {
634
+ contentText: "{#condition}{text}{/condition}",
635
+ resultText: " hello ",
636
+ scope: {
637
+ condition: [{
638
+ text: " hello "
639
+ }]
640
+ }
641
+ }), _objectSpread(_objectSpread({
642
+ it: "should work with empty condition"
643
+ }, noInternals), {}, {
644
+ contentText: "{#a}A{/a}{^b}{/b}",
645
+ resultText: "A",
646
+ scope: {
647
+ a: true
648
+ }
649
+ }), _objectSpread(_objectSpread({
650
+ it: "should work with spacing loops 3"
651
+ }, noInternals), {}, {
652
+ content: "<w:t>{#condition}</w:t><w:t>{/condition} foo</w:t>",
653
+ scope: {
654
+ condition: false
655
+ },
656
+ result: '<w:t xml:space="preserve"> foo</w:t>'
657
+ }), _objectSpread(_objectSpread({
658
+ it: "should work with spacing loops 4"
659
+ }, noInternals), {}, {
660
+ contentText: "{#condition}foo{/condition}",
661
+ scope: {
662
+ condition: false
663
+ },
664
+ result: "<w:t/>"
665
+ }), {
666
+ it: "should work with dashloops",
667
+ content: "<w:p><w:t>Hello {-w:p users}{name}, {/users}</w:t></w:p>",
668
+ scope: {
669
+ users: [{
670
+ name: "John Doe"
671
+ }, {
672
+ name: "Jane Doe"
673
+ }, {
674
+ name: "Wane Doe"
675
+ }]
676
+ },
677
+ result: '<w:p><w:t xml:space="preserve">Hello John Doe, </w:t></w:p><w:p><w:t xml:space="preserve">Hello Jane Doe, </w:t></w:p><w:p><w:t xml:space="preserve">Hello Wane Doe, </w:t></w:p>',
678
+ lexed: [startParagraph, startText, content("Hello "), delimiters.start, content("-w:p users"), delimiters.end, delimiters.start, content("name"), delimiters.end, content(", "), delimiters.start, content("/users"), delimiters.end, endText, endParagraph],
679
+ parsed: [startParagraph, startText, content("Hello "), {
680
+ type: "placeholder",
681
+ value: "users",
682
+ location: "start",
683
+ module: "loop",
684
+ inverted: false,
685
+ expandTo: "w:p"
686
+ }, {
687
+ type: "placeholder",
688
+ value: "name"
689
+ }, content(", "), {
690
+ type: "placeholder",
691
+ value: "users",
692
+ location: "end",
693
+ module: "loop"
694
+ }, endText, endParagraph],
695
+ postparsed: [{
696
+ type: "placeholder",
697
+ value: "users",
698
+ module: "loop",
699
+ inverted: false,
700
+ sectPrCount: 0,
701
+ subparsed: [startParagraph, xmlSpacePreserveTag, content("Hello "), {
702
+ type: "placeholder",
703
+ value: "name"
704
+ }, content(", "), endText, endParagraph]
705
+ }]
706
+ }, _objectSpread(_objectSpread({
707
+ it: "should drop table if it has no tc"
708
+ }, noInternals), {}, {
709
+ content: "<w:tbl><w:tr><w:tc><w:p><w:t>{-w:tr columns} Hello {-w:p users}{name}, {/users}</w:t><w:t>{/columns}</w:t></w:p></w:tc></w:tr></w:tbl>Other",
710
+ scope: {},
711
+ result: "<w:p/>Other"
712
+ }), {
713
+ it: "should work with dashloops nested",
714
+ content: "<w:tr><w:tc><w:p><w:t>{-w:tr columns} Hello {-w:p users}{name}, {/users}</w:t><w:t>{/columns}</w:t></w:p></w:tc></w:tr>",
715
+ scope: {
716
+ columns: [{
717
+ users: [{
718
+ name: "John Doe"
719
+ }, {
720
+ name: "Jane Doe"
721
+ }, {
722
+ name: "Wane Doe"
723
+ }]
724
+ }]
725
+ },
726
+ result: '<w:tr><w:tc><w:p><w:t xml:space="preserve"> Hello John Doe, </w:t><w:t/></w:p><w:p><w:t xml:space="preserve"> Hello Jane Doe, </w:t><w:t/></w:p><w:p><w:t xml:space="preserve"> Hello Wane Doe, </w:t><w:t/></w:p></w:tc></w:tr>',
727
+ lexed: [tableRowStart, tableColStart, startParagraph, startText, delimiters.start, content("-w:tr columns"), delimiters.end, content(" Hello "), delimiters.start, content("-w:p users"), delimiters.end, delimiters.start, content("name"), delimiters.end, content(", "), delimiters.start, content("/users"), delimiters.end, endText, startText, delimiters.start, content("/columns"), delimiters.end, endText, endParagraph, tableColEnd, tableRowEnd],
728
+ parsed: [tableRowStart, tableColStart, startParagraph, startText, {
729
+ type: "placeholder",
730
+ value: "columns",
731
+ location: "start",
732
+ module: "loop",
733
+ inverted: false,
734
+ expandTo: "w:tr"
735
+ }, content(" Hello "), {
736
+ type: "placeholder",
737
+ value: "users",
738
+ location: "start",
739
+ module: "loop",
740
+ inverted: false,
741
+ expandTo: "w:p"
742
+ }, {
743
+ type: "placeholder",
744
+ value: "name"
745
+ }, content(", "), {
746
+ type: "placeholder",
747
+ value: "users",
748
+ location: "end",
749
+ module: "loop"
750
+ }, endText, startText, {
751
+ type: "placeholder",
752
+ value: "columns",
753
+ location: "end",
754
+ module: "loop"
755
+ }, endText, endParagraph, tableColEnd, tableRowEnd],
756
+ postparsed: null
757
+ }, {
758
+ it: "should handle selfclose tag",
759
+ content: "<w:t />",
760
+ scope: {
761
+ user: "Foo"
762
+ },
763
+ result: "<w:t />",
764
+ lexed: [{
765
+ type: "tag",
766
+ value: "<w:t />",
767
+ text: true,
768
+ position: "selfclosing",
769
+ tag: "w:t"
770
+ }],
771
+ parsed: [{
772
+ type: "tag",
773
+ position: "selfclosing",
774
+ value: "<w:t />",
775
+ text: true,
776
+ tag: "w:t"
777
+ }],
778
+ postparsed: [{
779
+ type: "tag",
780
+ position: "selfclosing",
781
+ value: "<w:t />",
782
+ text: true,
783
+ tag: "w:t"
784
+ }]
785
+ }, {
786
+ it: "should handle {user} with tag with selfclosing",
787
+ content: "<w:t /><w:t>Hi {user}</w:t>",
788
+ scope: {
789
+ user: "Foo"
790
+ },
791
+ result: '<w:t /><w:t xml:space="preserve">Hi Foo</w:t>',
792
+ lexed: [{
793
+ type: "tag",
794
+ value: "<w:t />",
795
+ text: true,
796
+ position: "selfclosing",
797
+ tag: "w:t"
798
+ }, startText, content("Hi "), delimiters.start, content("user"), delimiters.end, endText],
799
+ parsed: [{
800
+ type: "tag",
801
+ position: "selfclosing",
802
+ value: "<w:t />",
803
+ text: true,
804
+ tag: "w:t"
805
+ }, startText, content("Hi "), {
806
+ type: "placeholder",
807
+ value: "user"
808
+ }, endText],
809
+ postparsed: [{
810
+ type: "tag",
811
+ position: "selfclosing",
812
+ value: "<w:t />",
813
+ text: true,
814
+ tag: "w:t"
815
+ }, xmlSpacePreserveTag, content("Hi "), {
816
+ type: "placeholder",
817
+ value: "user"
818
+ }, endText]
819
+ }, {
820
+ it: "should be possible to change the delimiters",
821
+ contentText: "Hi {=[[ ]]=}[[user]][[={ }=]] and {user2}",
822
+ scope: {
823
+ user: "John",
824
+ user2: "Jane"
825
+ },
826
+ resultText: "Hi John and Jane",
827
+ lexed: [startText, content("Hi "), delimiters.start, content("user"), delimiters.end, content(" and "), delimiters.start, content("user2"), delimiters.end, endText],
828
+ parsed: [startText, content("Hi "), {
829
+ type: "placeholder",
830
+ value: "user"
831
+ }, content(" and "), {
832
+ type: "placeholder",
833
+ value: "user2"
834
+ }, endText],
835
+ postparsed: [xmlSpacePreserveTag, content("Hi "), {
836
+ type: "placeholder",
837
+ value: "user"
838
+ }, content(" and "), {
839
+ type: "placeholder",
840
+ value: "user2"
841
+ }, endText]
842
+ }, {
843
+ it: "should be possible to change the delimiters",
844
+ contentText: "Hi {=a b c=}",
845
+ error: {
846
+ name: "TemplateError",
847
+ message: "New Delimiters cannot be parsed",
848
+ properties: {
849
+ id: "change_delimiters_invalid"
850
+ }
851
+ },
852
+ errorType: Errors.XTTemplateError
853
+ }, {
854
+ it: "should throw error if delimiters invalid",
855
+ contentText: "Hi {= =}",
856
+ error: {
857
+ name: "TemplateError",
858
+ message: "New Delimiters cannot be parsed",
859
+ properties: {
860
+ id: "change_delimiters_invalid"
861
+ }
862
+ },
863
+ errorType: Errors.XTTemplateError
864
+ }, {
865
+ it: "should throw error if delimiters invalid (2)",
866
+ contentText: "Hi {=[ =}",
867
+ error: {
868
+ name: "TemplateError",
869
+ message: "New Delimiters cannot be parsed",
870
+ properties: {
871
+ id: "change_delimiters_invalid"
872
+ }
873
+ },
874
+ errorType: Errors.XTTemplateError
875
+ }, {
876
+ it: "should throw error if delimiters invalid (3)",
877
+ contentText: "Hi {= ]=}",
878
+ error: {
879
+ name: "TemplateError",
880
+ message: "New Delimiters cannot be parsed",
881
+ properties: {
882
+ id: "change_delimiters_invalid"
883
+ }
884
+ },
885
+ errorType: Errors.XTTemplateError
886
+ }, {
887
+ it: "should be possible to change the delimiters with complex example",
888
+ contentText: "Hi {={{[ ]}}=}{{[user]}}{{[={{ ]=]}} and {{user2]",
889
+ scope: {
890
+ user: "John",
891
+ user2: "Jane"
892
+ },
893
+ resultText: "Hi John and Jane",
894
+ lexed: [startText, content("Hi "), delimiters.start, content("user"), delimiters.end, content(" and "), delimiters.start, content("user2"), delimiters.end, endText],
895
+ parsed: [startText, content("Hi "), {
896
+ type: "placeholder",
897
+ value: "user"
898
+ }, content(" and "), {
899
+ type: "placeholder",
900
+ value: "user2"
901
+ }, endText],
902
+ postparsed: [xmlSpacePreserveTag, content("Hi "), {
903
+ type: "placeholder",
904
+ value: "user"
905
+ }, content(" and "), {
906
+ type: "placeholder",
907
+ value: "user2"
908
+ }, endText]
909
+ }, _objectSpread(_objectSpread({
910
+ it: "should resolve the data correctly"
911
+ }, noInternals), {}, {
912
+ contentText: "{test}{#test}{label}{/test}{test}",
913
+ scope: {
914
+ label: "T1",
915
+ test: true
916
+ },
917
+ resolved: [{
918
+ tag: "test",
919
+ lIndex: 3,
920
+ value: true
921
+ }, {
922
+ tag: "test",
923
+ lIndex: 15,
924
+ value: true
925
+ }, {
926
+ tag: "test",
927
+ lIndex: 6,
928
+ value: [[{
929
+ tag: "label",
930
+ lIndex: 9,
931
+ value: "T1"
932
+ }]]
933
+ }],
934
+ resultText: "trueT1true"
935
+ }), _objectSpread(_objectSpread({
936
+ it: "should resolve 2 the data correctly"
937
+ }, noInternals), {}, {
938
+ contentText: "{^a}{label}{/a}",
939
+ scope: {
940
+ a: true
941
+ },
942
+ resolved: [{
943
+ tag: "a",
944
+ lIndex: 3,
945
+ value: []
946
+ }],
947
+ result: "<w:t/>"
948
+ }), _objectSpread(_objectSpread({
949
+ it: "should resolve 3 the data correctly"
950
+ }, noInternals), {}, {
951
+ contentText: "{#frames}{#true}{label}{#false}{label}{/false}{/true}{#false}{label}{/false}{/frames}",
952
+ resultText: "T1",
953
+ scope: {
954
+ frames: [{
955
+ label: "T1",
956
+ "true": true
957
+ }]
958
+ },
959
+ resolved: [{
960
+ tag: "frames",
961
+ lIndex: 3,
962
+ value: [[{
963
+ tag: "false",
964
+ lIndex: 24,
965
+ value: []
966
+ }, {
967
+ tag: "true",
968
+ lIndex: 6,
969
+ value: [[{
970
+ tag: "label",
971
+ lIndex: 9,
972
+ value: "T1"
973
+ }, {
974
+ tag: "false",
975
+ lIndex: 12,
976
+ value: []
977
+ }]]
978
+ }]]
979
+ }]
980
+ }), _objectSpread(_objectSpread({
981
+ it: "should resolve truthy data correctly",
982
+ contentText: "{#loop}L{#cond2}{label}{/cond2}{#cond3}{label}{/cond3}{/loop}",
983
+ resultText: "Linner"
984
+ }, noInternals), {}, {
985
+ scope: {
986
+ label: "outer",
987
+ loop: [{
988
+ cond2: true,
989
+ label: "inner"
990
+ }]
991
+ }
992
+ }), _objectSpread(_objectSpread({
993
+ it: "should resolve truthy multi data correctly",
994
+ contentText: "{#loop}L{#cond2}{label}{/cond2}{#cond3}{label}{/cond3}{/loop}"
995
+ }, noInternals), {}, {
996
+ scope: {
997
+ label: "outer",
998
+ loop: [{
999
+ cond2: true,
1000
+ label: "inner"
1001
+ }, {
1002
+ cond2: true,
1003
+ label: "inner"
1004
+ }, {
1005
+ cond3: true,
1006
+ label: "inner"
1007
+ }, {
1008
+ cond2: true,
1009
+ cond3: true
1010
+ }]
1011
+ },
1012
+ resultText: "LinnerLinnerLinnerLouterouter"
1013
+ }), _objectSpread(_objectSpread({
1014
+ it: "should resolve async loop",
1015
+ contentText: "{#loop}{#cond1}{label}{/}{#cond2}{label}{/}{/loop}"
1016
+ }, noInternals), {}, {
1017
+ scope: {
1018
+ label: "outer",
1019
+ loop: [{
1020
+ cond1: true,
1021
+ label: "inner"
1022
+ }, {
1023
+ cond1: true,
1024
+ cond2: true
1025
+ }]
1026
+ },
1027
+ resultText: "innerouterouter"
1028
+ }), _objectSpread(_objectSpread({
1029
+ it: "should work well with inversed loop simple",
1030
+ contentText: "{^b}{label}{/}"
1031
+ }, noInternals), {}, {
1032
+ scope: {
1033
+ b: false,
1034
+ label: "hi"
1035
+ },
1036
+ resultText: "hi"
1037
+ }), _objectSpread(_objectSpread({
1038
+ it: "should work well with nested inversed loop",
1039
+ contentText: "{#a}{^b}{label}{/}{/}"
1040
+ }, noInternals), {}, {
1041
+ scope: {
1042
+ a: [{
1043
+ b: false,
1044
+ label: "hi"
1045
+ }]
1046
+ },
1047
+ resultText: "hi"
1048
+ }), _objectSpread(_objectSpread({
1049
+ it: "should work well with deeply nested inversed loop nested",
1050
+ contentText: "{#a}{^b}{^c}{label}{/}{/}{/}"
1051
+ }, noInternals), {}, {
1052
+ scope: {
1053
+ a: [{
1054
+ b: false,
1055
+ label: "hi"
1056
+ }]
1057
+ },
1058
+ resultText: "hi"
1059
+ }), _objectSpread(_objectSpread({
1060
+ it: "should work well with true value for condition",
1061
+ contentText: "{#cond}{#product.price &gt; 10}high{/}{#product.price &lt;= 10}low{/}{/cond}"
1062
+ }, noInternals), {}, {
1063
+ options: {
1064
+ parser: expressionParser
1065
+ },
1066
+ scope: {
1067
+ cond: true,
1068
+ product: {
1069
+ price: 2
1070
+ }
1071
+ },
1072
+ resultText: "low"
1073
+ }), _objectSpread(_objectSpread({
1074
+ it: "should handle {this+this+this} tag",
1075
+ scope: "Foo"
1076
+ }, noInternals), {}, {
1077
+ contentText: "Hi {this+this+this}",
1078
+ options: {
1079
+ parser: expressionParser
1080
+ },
1081
+ resultText: "Hi FooFooFoo"
1082
+ }), _objectSpread(_objectSpread({
1083
+ it: "should handle {((.+.+.)*.*0.5)|sum:.} tag",
1084
+ scope: 2
1085
+ }, noInternals), {}, {
1086
+ contentText: "Hi {((((.+.+.)*.*0.5)|sum:.)-.)/.}",
1087
+ // = (((2 + 2 + 2)*2 * 0.5 | sum:2)-2)/2
1088
+ // = (((6)*2 * 0.5 | sum:2)-2)/2
1089
+ // = ((6 | sum:2)-2)/2
1090
+ // = ((8)-2)/2
1091
+ // = (6)/2
1092
+ // = 3
1093
+ options: {
1094
+ parser: expressionParser
1095
+ },
1096
+ resultText: "Hi 3"
1097
+ }), _objectSpread(_objectSpread({
1098
+ it: "should handle {.['user-name']} tag",
1099
+ scope: {
1100
+ "user-name": "John"
1101
+ }
1102
+ }, noInternals), {}, {
1103
+ contentText: "Hi {.['user-name']}",
1104
+ options: {
1105
+ parser: expressionParser
1106
+ },
1107
+ resultText: "Hi John"
1108
+ }), _objectSpread(_objectSpread({
1109
+ it: "should handle {#loop}{. | myFilter}{/loop} tag",
1110
+ scope: {
1111
+ loop: [3]
1112
+ }
1113
+ }, noInternals), {}, {
1114
+ contentText: "Hi {#loop}{. | myFilter}{/loop}",
1115
+ options: {
1116
+ parser: expressionParser.configure({
1117
+ filters: {
1118
+ myFilter: function myFilter(input) {
1119
+ expect(_typeof(input)).to.equal("number");
1120
+ expect(input).to.equal(3);
1121
+ return input + input;
1122
+ }
1123
+ }
1124
+ })
1125
+ },
1126
+ resultText: "Hi 6"
1127
+ }), _objectSpread(_objectSpread({
1128
+ it: 'should handle {this["a b"]} tag',
1129
+ scope: {
1130
+ "a b": "John"
1131
+ }
1132
+ }, noInternals), {}, {
1133
+ contentText: 'Hi {this["a b"]}',
1134
+ options: {
1135
+ parser: expressionParser
1136
+ },
1137
+ resultText: "Hi John"
1138
+ }), _objectSpread(_objectSpread({
1139
+ it: 'should handle {this["length"]} tag',
1140
+ scope: "John"
1141
+ }, noInternals), {}, {
1142
+ contentText: 'Hi { this["length"]}',
1143
+ options: {
1144
+ parser: expressionParser
1145
+ },
1146
+ resultText: "Hi 4"
1147
+ }), _objectSpread(_objectSpread({
1148
+ it: 'should handle {this["split"]} tag',
1149
+ scope: "John"
1150
+ }, noInternals), {}, {
1151
+ contentText: 'Hi {this["split"]}',
1152
+ options: {
1153
+ parser: expressionParser
1154
+ },
1155
+ resultText: "Hi undefined"
1156
+ }), _objectSpread(_objectSpread({
1157
+ it: "should handle {this.split} tag",
1158
+ scope: "John"
1159
+ }, noInternals), {}, {
1160
+ contentText: "Hi {this.split}",
1161
+ options: {
1162
+ parser: expressionParser
1163
+ },
1164
+ resultText: "Hi undefined"
1165
+ }), _objectSpread(_objectSpread({
1166
+ it: "should handle {(this+this+this)*this} tag",
1167
+ scope: 1
1168
+ }, noInternals), {}, {
1169
+ contentText: "Hi {(this+this+this)*(this+this)}",
1170
+ options: {
1171
+ parser: expressionParser
1172
+ },
1173
+ resultText: "Hi 6"
1174
+ }), _objectSpread(_objectSpread({
1175
+ it: "should handle {(this+this+this)*(this+this)}, this=0 tag",
1176
+ scope: 0
1177
+ }, noInternals), {}, {
1178
+ contentText: "Hi {( this + this + this)*(this+this)}",
1179
+ options: {
1180
+ parser: expressionParser
1181
+ },
1182
+ resultText: "Hi 0"
1183
+ }), _objectSpread(_objectSpread({
1184
+ it: "should handle {#products}{# . }-{ . }-{/}{/}",
1185
+ scope: {
1186
+ products: [[1, 2, 3, 4], [4, 5, 6, 7]]
1187
+ }
1188
+ }, noInternals), {}, {
1189
+ // The space inside {# . } is important.
1190
+ // It tests a regression that was fixed in version 3.37.12
1191
+ contentText: "Hi {#products}{# . }-{ . }-{/}{/}",
1192
+ options: {
1193
+ parser: expressionParser
1194
+ },
1195
+ resultText: "Hi -1--2--3--4--4--5--6--7-"
1196
+ }), _objectSpread(_objectSpread({
1197
+ it: "should work well with int value for condition",
1198
+ contentText: "{#cond}{#product.price &gt; 10}high{/}{#product.price &lt;= 10}low{/}{/cond}"
1199
+ }, noInternals), {}, {
1200
+ options: {
1201
+ parser: expressionParser
1202
+ },
1203
+ scope: {
1204
+ cond: 10,
1205
+ product: {
1206
+ price: 2
1207
+ }
1208
+ },
1209
+ resultText: "low"
1210
+ }), _objectSpread(_objectSpread({
1211
+ it: "should work well with empty string as result",
1212
+ contentText: "{foo}"
1213
+ }, noInternals), {}, {
1214
+ options: {
1215
+ parser: expressionParser
1216
+ },
1217
+ scope: {
1218
+ foo: ""
1219
+ },
1220
+ result: "<w:t/>"
1221
+ }), _objectSpread(_objectSpread({
1222
+ it: "should work well with str value for condition",
1223
+ contentText: "{#cond}{#product.price &gt; 10}high{/}{#product.price &lt;= 10}low{/}{/cond}"
1224
+ }, noInternals), {}, {
1225
+ options: {
1226
+ parser: expressionParser
1227
+ },
1228
+ scope: {
1229
+ cond: "cond",
1230
+ product: {
1231
+ price: 2
1232
+ }
1233
+ },
1234
+ resultText: "low"
1235
+ }), _objectSpread(_objectSpread({
1236
+ it: "should work well with false value for condition",
1237
+ contentText: "{^cond}{#product.price &gt; 10}high{/}{#product.price &lt;= 10}low{/}{/cond}"
1238
+ }, noInternals), {}, {
1239
+ options: {
1240
+ parser: expressionParser
1241
+ },
1242
+ scope: {
1243
+ cond: false,
1244
+ product: {
1245
+ price: 2
1246
+ }
1247
+ },
1248
+ resultText: "low"
1249
+ }), _objectSpread(_objectSpread({
1250
+ it: "should work well with multi level expression parser",
1251
+ // This tag was designed to match /-([^\s]+)\s(.+)$/ which is the prefix of the dash loop
1252
+ contentText: "{#users}{name} {date-age+ offset} {/}"
1253
+ }, noInternals), {}, {
1254
+ options: {
1255
+ parser: expressionParser
1256
+ },
1257
+ scope: {
1258
+ date: 2019,
1259
+ offset: 1,
1260
+ users: [{
1261
+ name: "John",
1262
+ age: 44
1263
+ }, {
1264
+ name: "Mary",
1265
+ age: 22
1266
+ }, {
1267
+ date: 2100,
1268
+ age: 22,
1269
+ name: "Walt"
1270
+ }]
1271
+ },
1272
+ resultText: "John 1976 Mary 1998 Walt 2079 "
1273
+ }), _objectSpread(_objectSpread({
1274
+ it: "should work well with $index expression parser",
1275
+ contentText: "{#list}{#$index==0}FIRST {/}{text} {/list}"
1276
+ }, noInternals), {}, {
1277
+ options: {
1278
+ parser: expressionParser
1279
+ },
1280
+ scope: {
1281
+ list: [{
1282
+ text: "Hello"
1283
+ }, {
1284
+ text: "Other item"
1285
+ }]
1286
+ },
1287
+ resultText: "FIRST Hello Other item "
1288
+ }), _objectSpread(_objectSpread({
1289
+ it: "should work well with $index inside condition expression parser",
1290
+ contentText: "{#list}{#important}!!{$index+1}{text}{/}{^important}?{$index+1}{text}{/}{/}"
1291
+ }, noInternals), {}, {
1292
+ options: {
1293
+ parser: expressionParser
1294
+ },
1295
+ scope: {
1296
+ list: [{
1297
+ important: true,
1298
+ text: "Hello"
1299
+ }, {
1300
+ text: "Other item"
1301
+ }, {
1302
+ important: true,
1303
+ text: "Bye"
1304
+ }]
1305
+ },
1306
+ resultText: "!!1Hello?2Other item!!3Bye"
1307
+ }), _objectSpread(_objectSpread({
1308
+ it: "should work well with $index inside condition expression parser",
1309
+ contentText: "{#list}{#important}!!{$index+1}{text}{/}{^important}?{$index+1}{text}{/}{/}"
1310
+ }, noInternals), {}, {
1311
+ options: {
1312
+ parser: expressionParserIE11
1313
+ },
1314
+ scope: {
1315
+ list: [{
1316
+ important: true,
1317
+ text: "Hello"
1318
+ }, {
1319
+ text: "Other item"
1320
+ }, {
1321
+ important: true,
1322
+ text: "Bye"
1323
+ }]
1324
+ },
1325
+ resultText: "!!1Hello?2Other item!!3Bye"
1326
+ }), _objectSpread(_objectSpread({
1327
+ it: "should work well with nested conditions inside table"
1328
+ }, noInternals), {}, {
1329
+ content: "<w:tbl><w:tr><w:tc><w:p><w:r><w:t>{#cond}{#cond2}{name}</w:t></w:r></w:p></w:tc><w:tc><w:p><w:r><w:t>{/}{/}</w:t></w:r></w:p></w:tc></w:tr></w:tbl>",
1330
+ options: {
1331
+ paragraphLoop: true
1332
+ },
1333
+ scope: {
1334
+ cond: true,
1335
+ cond2: false
1336
+ },
1337
+ result: ""
1338
+ }), _objectSpread(_objectSpread({
1339
+ it: "should work well with -w:tr conditions inside table inside paragraphLoop condition"
1340
+ }, noInternals), {}, {
1341
+ content: "<w:p><w:r><w:t>{#cond}</w:t></w:r></w:p><w:tbl><w:tr><w:tc><w:p><w:r><w:t>{-w:tc cond}{val}{/}</w:t></w:r></w:p></w:tc></w:tr></w:tbl><w:p><w:r><w:t>{/}</w:t></w:r></w:p>",
1342
+ options: {
1343
+ paragraphLoop: true
1344
+ },
1345
+ scope: {
1346
+ cond: true,
1347
+ val: "yep"
1348
+ },
1349
+ result: '<w:tbl><w:tr><w:tc><w:p><w:r><w:t xml:space="preserve">yep</w:t></w:r></w:p></w:tc></w:tr></w:tbl>'
1350
+ }), _objectSpread(_objectSpread({
1351
+ it: "should work well with nested expressions parser",
1352
+ contentText: "{v}{#c1}{v}{#c2}{v}{#c3}{v}{/}{/}{/}"
1353
+ }, noInternals), {}, {
1354
+ options: {
1355
+ parser: expressionParser
1356
+ },
1357
+ scope: {
1358
+ v: "0",
1359
+ c1: {
1360
+ v: "1",
1361
+ c2: {
1362
+ v: "2",
1363
+ c3: {
1364
+ v: "3"
1365
+ }
1366
+ }
1367
+ }
1368
+ },
1369
+ resultText: "0123"
1370
+ }), _objectSpread(_objectSpread({
1371
+ it: "should work with this with expressions parser",
1372
+ contentText: "{#hello}{this}{/hello}"
1373
+ }, noInternals), {}, {
1374
+ options: {
1375
+ parser: expressionParser
1376
+ },
1377
+ scope: {
1378
+ hello: ["world"]
1379
+ },
1380
+ resultText: "world"
1381
+ }), _objectSpread(_objectSpread({
1382
+ it: "should be possible to close loops with {/}",
1383
+ contentText: "{#products}Product {name}{/}"
1384
+ }, noInternals), {}, {
1385
+ scope: {
1386
+ products: [{
1387
+ name: "Bread"
1388
+ }]
1389
+ },
1390
+ resultText: "Product Bread"
1391
+ }), _objectSpread(_objectSpread({
1392
+ it: "should get parent prop if child is null",
1393
+ contentText: "{#c}{label}{/c}"
1394
+ }, noInternals), {}, {
1395
+ options: {
1396
+ parser: expressionParser
1397
+ },
1398
+ scope: {
1399
+ c: {
1400
+ label: null
1401
+ },
1402
+ label: "hello"
1403
+ },
1404
+ resultText: "hello"
1405
+ }), _objectSpread(_objectSpread({
1406
+ it: "should work when using double nested arrays",
1407
+ content: "<w:t>{#a}</w:t><w:t>{this}</w:t><w:t>{/}</w:t>"
1408
+ }, noInternals), {}, {
1409
+ options: {
1410
+ parser: expressionParser
1411
+ },
1412
+ scope: {
1413
+ a: [["first-part", "other-part"]]
1414
+ },
1415
+ result: '<w:t/><w:t xml:space="preserve">first-part,other-part</w:t><w:t/>'
1416
+ }), _objectSpread(_objectSpread({
1417
+ it: "should work when using accents or numbers in variable names, ...",
1418
+ contentText: "{êtreîöò12áeêëẽ}"
1419
+ }, noInternals), {}, {
1420
+ options: {
1421
+ parser: expressionParser
1422
+ },
1423
+ resultText: "undefined"
1424
+ }), _objectSpread(_objectSpread({
1425
+ it: "should fail when using € sign",
1426
+ contentText: "{hello€}"
1427
+ }, noInternals), {}, {
1428
+ options: {
1429
+ parser: expressionParser
1430
+ },
1431
+ error: wrapMultiError({
1432
+ name: "ScopeParserError",
1433
+ message: "Scope parser compilation failed",
1434
+ properties: {
1435
+ explanation: 'The scope parser for the tag "hello€" failed to compile',
1436
+ rootError: {
1437
+ message: "[$parse:lexerr] Lexer Error: Unexpected next character at columns 5-5 [\u20AC] in expression [hello\u20AC].\nhttp://errors.angularjs.org/\"NG_VERSION_FULL\"/$parse/lexerr?p0=Unexpected%20next%20character%20&p1=s%205-5%20%5B%E2%82%AC%5D&p2=hello%E2%82%AC"
1438
+ },
1439
+ file: "word/document.xml",
1440
+ id: "scopeparser_compilation_failed",
1441
+ xtag: "hello€",
1442
+ offset: 0
1443
+ }
1444
+ }),
1445
+ errorType: Errors.XTTemplateError,
1446
+ resultText: "undefined"
1447
+ }), _objectSpread(_objectSpread({
1448
+ it: "should disallow access to internal property",
1449
+ contentText: '{"".split.toString()}'
1450
+ }, noInternals), {}, {
1451
+ options: {
1452
+ parser: expressionParser
1453
+ },
1454
+ resultText: "undefined"
1455
+ }), _objectSpread(_objectSpread({
1456
+ it: "should allow filters like | upper",
1457
+ contentText: "{name | upper}"
1458
+ }, noInternals), {}, {
1459
+ options: {
1460
+ parser: expressionParser
1461
+ },
1462
+ scope: {
1463
+ name: "john"
1464
+ },
1465
+ resultText: "JOHN"
1466
+ }), _objectSpread(_objectSpread({
1467
+ it: "should work when using assignment that is already in the scope",
1468
+ contentText: "{b=a}{b}"
1469
+ }, noInternals), {}, {
1470
+ options: {
1471
+ parser: expressionParser
1472
+ },
1473
+ scope: {
1474
+ a: 10,
1475
+ b: 5
1476
+ },
1477
+ resultText: "10"
1478
+ }), _objectSpread(_objectSpread({
1479
+ it: "should work with linebreaks",
1480
+ contentText: "{b}"
1481
+ }, noInternals), {}, {
1482
+ options: {
1483
+ linebreaks: true,
1484
+ parser: expressionParser
1485
+ },
1486
+ scope: {
1487
+ b: "Hello\n\nFoo\n\nBar\n\n"
1488
+ },
1489
+ result: '<w:t xml:space="preserve">Hello</w:t></w:r><w:r><w:br/></w:r><w:r><w:t/></w:r><w:r><w:br/></w:r><w:r><w:t xml:space="preserve">Foo</w:t></w:r><w:r><w:br/></w:r><w:r><w:t/></w:r><w:r><w:br/></w:r><w:r><w:t xml:space="preserve">Bar</w:t></w:r><w:r><w:br/></w:r><w:r><w:t/></w:r><w:r><w:br/></w:r><w:r><w:t/>'
1490
+ }), _objectSpread(_objectSpread({
1491
+ it: "should not fail with no scope on expressionParser",
1492
+ contentText: "{b}"
1493
+ }, noInternals), {}, {
1494
+ options: {
1495
+ parser: expressionParser
1496
+ },
1497
+ resultText: "undefined"
1498
+ }), _objectSpread(_objectSpread({
1499
+ it: "should be possible to add filter for one instance of the expressionParser",
1500
+ contentText: "{b|foo}"
1501
+ }, noInternals), {}, {
1502
+ options: {
1503
+ parser: expressionParser.configure({
1504
+ filters: {
1505
+ foo: function foo() {
1506
+ return "FOO";
1507
+ }
1508
+ }
1509
+ })
1510
+ },
1511
+ resultText: "FOO"
1512
+ }), function () {
1513
+ var globalData = {
1514
+ val: 0
1515
+ };
1516
+ return _objectSpread(_objectSpread({
1517
+ it: "should be possible to configure expressionParser with set command",
1518
+ contentText: "{#loop}{$$val = (cond ? 0 : $$val + 1); $$val}{/loop}"
1519
+ }, noInternals), {}, {
1520
+ options: {
1521
+ parser: expressionParser.configure({
1522
+ setIdentifier: function setIdentifier(tag, value) {
1523
+ var matchGlobal = /^\$\$/g;
1524
+ if (matchGlobal.test(tag)) {
1525
+ globalData[tag] = value;
1526
+ return true;
1527
+ }
1528
+ },
1529
+ evaluateIdentifier: function evaluateIdentifier(tag) {
1530
+ var matchGlobal = /^\$\$/g;
1531
+ if (matchGlobal.test(tag)) {
1532
+ if (globalData.hasOwnProperty(tag) && globalData[tag] != null) {
1533
+ return globalData[tag];
1534
+ }
1535
+ }
1536
+ }
1537
+ })
1538
+ },
1539
+ scope: {
1540
+ loop: [{
1541
+ cond: true,
1542
+ x: "foo"
1543
+ }, {
1544
+ cond: false,
1545
+ x: "foo"
1546
+ }, {
1547
+ cond: false,
1548
+ x: "foo"
1549
+ }, {
1550
+ cond: true,
1551
+ x: "foo"
1552
+ }, {
1553
+ cond: false,
1554
+ x: "foo"
1555
+ }]
1556
+ },
1557
+ resultText: "01201"
1558
+ });
1559
+ }(), _objectSpread(_objectSpread({
1560
+ it: "should be possible to use parent scope together with expressionParser",
1561
+ contentText: "{#loop}{__b|twice}{b|twice}{/loop}",
1562
+ resultText: "2426",
1563
+ // __b means in this context "b" but from the rootscope
1564
+ scope: {
1565
+ loop: [{
1566
+ b: 2
1567
+ }, {
1568
+ b: 3
1569
+ }],
1570
+ b: 1
1571
+ }
1572
+ }, noInternals), {}, {
1573
+ options: {
1574
+ parser: expressionParser.configure({
1575
+ evaluateIdentifier: function evaluateIdentifier(tag, scope, scopeList, context) {
1576
+ var matchesParent = /^(_{2,})(.*)/g;
1577
+ expect(context.num).to.be.a("number");
1578
+ if (matchesParent.test(tag)) {
1579
+ var parentCount = tag.replace(matchesParent, "$1").length - 1;
1580
+ tag = tag.replace(matchesParent, "$2");
1581
+ if (parentCount >= 1) {
1582
+ for (var i = scopeList.length - 1 - parentCount; i >= 0; i--) {
1583
+ var s = scopeList[i];
1584
+ if (s[tag] != null) {
1585
+ var property = s[tag];
1586
+ return typeof property === "function" ? property.bind(s) : property;
1587
+ }
1588
+ }
1589
+ }
1590
+ }
1591
+ },
1592
+ filters: {
1593
+ twice: function twice(input) {
1594
+ return 2 * input;
1595
+ }
1596
+ }
1597
+ })
1598
+ }
1599
+ }), _objectSpread(_objectSpread({
1600
+ it: "should be possible to add filter for one instance of the ie11 parser",
1601
+ contentText: "{b|foo}",
1602
+ resultText: "FOO"
1603
+ }, noInternals), {}, {
1604
+ options: {
1605
+ parser: expressionParserIE11.configure({
1606
+ csp: true,
1607
+ filters: {
1608
+ foo: function foo() {
1609
+ return "FOO";
1610
+ }
1611
+ }
1612
+ })
1613
+ }
1614
+ }), _objectSpread(_objectSpread({
1615
+ it: "should not be possible to access __proto__ with expressionParser",
1616
+ contentText: "{__proto__}",
1617
+ resultText: "undefined"
1618
+ }, noInternals), {}, {
1619
+ options: {
1620
+ parser: expressionParser
1621
+ }
1622
+ }), _objectSpread(_objectSpread({
1623
+ it: "should not be possible to run arbitrary code with expressionParser",
1624
+ contentText: "{__proto__.constructor.getPrototypeOf(toString).constructor('return process')()}",
1625
+ scope: {},
1626
+ resultText: "undefined"
1627
+ }, noInternals), {}, {
1628
+ options: {
1629
+ parser: expressionParser
1630
+ }
1631
+ }), _objectSpread(_objectSpread({
1632
+ it: "should not be possible to access __proto__ with expressionParserIE11",
1633
+ contentText: "{__proto__}",
1634
+ resultText: "undefined",
1635
+ scope: {}
1636
+ }, noInternals), {}, {
1637
+ options: {
1638
+ parser: expressionParserIE11
1639
+ }
1640
+ }), _objectSpread(_objectSpread({
1641
+ it: "should not be possible to run arbitrary code with expressionParserIE11",
1642
+ contentText: "{__proto__.constructor.getPrototypeOf(toString).constructor('return process')()}",
1643
+ scope: {},
1644
+ resultText: "undefined"
1645
+ }, noInternals), {}, {
1646
+ options: {
1647
+ parser: expressionParserIE11
1648
+ }
1649
+ }), _objectSpread(_objectSpread({
1650
+ it: "should not fail with no scope on ie11 parser",
1651
+ contentText: "{b}",
1652
+ resultText: "undefined"
1653
+ }, noInternals), {}, {
1654
+ options: {
1655
+ parser: expressionParserIE11
1656
+ }
1657
+ }), {
1658
+ it: "should show error when having table with nested loops",
1659
+ content: "<w:tbl>\n\t\t<w:tr><w:tc><w:p><w:r><w:t>{#c1}A</w:t></w:r></w:p></w:tc></w:tr>\n\t\t<w:tr><w:tc><w:p><w:r><w:t>{/}{#c2}B</w:t></w:r><w:r><w:t>{/}</w:t></w:r></w:p></w:tc></w:tr>\n</w:tbl>",
1660
+ error: wrapMultiError({
1661
+ name: "TemplateError",
1662
+ message: "Unbalanced loop tag",
1663
+ properties: {
1664
+ explanation: "Unbalanced loop tags {#c1}{/}{#c2}{/}",
1665
+ file: "word/document.xml",
1666
+ id: "unbalanced_loop_tags",
1667
+ lastPair: {
1668
+ left: "c1",
1669
+ right: ""
1670
+ },
1671
+ offset: [0, 15],
1672
+ pair: {
1673
+ left: "c2",
1674
+ right: ""
1675
+ }
1676
+ }
1677
+ }),
1678
+ errorType: Errors.XTTemplateError
1679
+ }, {
1680
+ it: "should not escape explanation for unclosed tag with &&",
1681
+ contentText: "Unclosed tag : {Hi&amp;&amp;Ho",
1682
+ error: wrapMultiError({
1683
+ name: "TemplateError",
1684
+ message: "Unclosed tag",
1685
+ properties: {
1686
+ explanation: 'The tag beginning with "{Hi&&Ho" is unclosed',
1687
+ context: "{Hi&&Ho",
1688
+ xtag: "Hi&&Ho",
1689
+ file: "word/document.xml",
1690
+ id: "unclosed_tag",
1691
+ offset: 15
1692
+ }
1693
+ }),
1694
+ errorType: Errors.XTTemplateError
1695
+ }, {
1696
+ it: "should not escape explanation for unopened tag with &&",
1697
+ contentText: "&&foo}",
1698
+ error: wrapMultiError({
1699
+ name: "TemplateError",
1700
+ message: "Unopened tag",
1701
+ properties: {
1702
+ explanation: 'The tag beginning with "&&foo" is unopened',
1703
+ context: "&&foo",
1704
+ xtag: "&&foo",
1705
+ file: "word/document.xml",
1706
+ id: "unopened_tag",
1707
+ offset: null
1708
+ }
1709
+ }),
1710
+ errorType: Errors.XTTemplateError
1711
+ }, {
1712
+ it: "should not escape explanation for unclosed loop with &&",
1713
+ contentText: "Unclosed tag : {#Hi&amp;&amp;Ho}{/%%>&lt;&&bar}",
1714
+ error: wrapMultiError({
1715
+ name: "TemplateError",
1716
+ message: "Closing tag does not match opening tag",
1717
+ properties: {
1718
+ explanation: 'The tag "Hi&&Ho" is closed by the tag "%%><&&bar"',
1719
+ file: "word/document.xml",
1720
+ openingtag: "Hi&&Ho",
1721
+ closingtag: "%%><&&bar",
1722
+ id: "closing_tag_does_not_match_opening_tag",
1723
+ offset: [15, 32]
1724
+ }
1725
+ }),
1726
+ errorType: Errors.XTTemplateError
1727
+ }, {
1728
+ it: "should not escape explanation for duplicate opening with &&",
1729
+ contentText: "Unclosed tag : {Hi&amp;&amp;{foo",
1730
+ error: {
1731
+ message: "Multi error",
1732
+ name: "TemplateError",
1733
+ properties: {
1734
+ id: "multi_error",
1735
+ errors: [{
1736
+ name: "TemplateError",
1737
+ message: "Unclosed tag",
1738
+ properties: {
1739
+ context: "{Hi&&",
1740
+ xtag: "Hi&&",
1741
+ explanation: 'The tag beginning with "{Hi&&" is unclosed',
1742
+ file: "word/document.xml",
1743
+ id: "unclosed_tag",
1744
+ offset: null
1745
+ }
1746
+ }, {
1747
+ name: "TemplateError",
1748
+ message: "Unclosed tag",
1749
+ properties: {
1750
+ context: "{foo",
1751
+ xtag: "foo",
1752
+ explanation: 'The tag beginning with "{foo" is unclosed',
1753
+ file: "word/document.xml",
1754
+ id: "unclosed_tag",
1755
+ offset: null
1756
+ }
1757
+ }]
1758
+ }
1759
+ },
1760
+ errorType: Errors.XTTemplateError
1761
+ }, _objectSpread(_objectSpread({
1762
+ it: "should add space=preserve to last tag"
1763
+ }, noInternals), {}, {
1764
+ content: "<w:p>\n <w:r>\n <w:t>Hello {firstName} {</w:t>\n </w:r>\n <w:r>\n <w:t>lastName</w:t>\n </w:r>\n <w:r>\n <w:t>} world</w:t>\n </w:r>\n </w:p>",
1765
+ result: "<w:p>\n <w:r>\n <w:t xml:space=\"preserve\">Hello undefined undefined</w:t>\n </w:r>\n <w:r>\n <w:t></w:t>\n </w:r>\n <w:r>\n <w:t xml:space=\"preserve\"> world</w:t>\n </w:r>\n </w:p>"
1766
+ }), _objectSpread(_objectSpread({
1767
+ it: "should not fail on triple open tag if allowUnclosedTag is true"
1768
+ }, noInternals), {}, {
1769
+ content: "<w:p>\n <w:r>\n <w:t>Hello {{{</w:t>\n </w:r>\n <w:r>\n <w:t>lastName</w:t>\n </w:r>\n <w:r>\n <w:t>} world</w:t>\n </w:r>\n </w:p>",
1770
+ options: {
1771
+ syntax: {
1772
+ allowUnclosedTag: true
1773
+ }
1774
+ },
1775
+ scope: {
1776
+ firstName: "John",
1777
+ lastName: "Doe"
1778
+ },
1779
+ result: "<w:p>\n <w:r>\n <w:t xml:space=\"preserve\">Hello {{Doe</w:t>\n </w:r>\n <w:r>\n <w:t></w:t>\n </w:r>\n <w:r>\n <w:t xml:space=\"preserve\"> world</w:t>\n </w:r>\n </w:p>"
1780
+ }), _objectSpread(_objectSpread({
1781
+ it: "should not fail on SPACED unclosed tag if allowUnclosedTag is true"
1782
+ }, noInternals), {}, {
1783
+ content: "<w:p>\n <w:r>\n <w:t>Hello {firstName {</w:t>\n </w:r>\n <w:r>\n <w:t>lastName</w:t>\n </w:r>\n <w:r>\n <w:t>} world</w:t>\n </w:r>\n </w:p>",
1784
+ options: {
1785
+ syntax: {
1786
+ allowUnclosedTag: true
1787
+ }
1788
+ },
1789
+ scope: {
1790
+ firstName: "John",
1791
+ lastName: "Doe"
1792
+ },
1793
+ result: "<w:p>\n <w:r>\n <w:t xml:space=\"preserve\">Hello {firstName Doe</w:t>\n </w:r>\n <w:r>\n <w:t></w:t>\n </w:r>\n <w:r>\n <w:t xml:space=\"preserve\"> world</w:t>\n </w:r>\n </w:p>"
1794
+ }), _objectSpread(_objectSpread({
1795
+ it: "should not fail on SPACED unopened tag if allowUnopenedTag is true"
1796
+ }, noInternals), {}, {
1797
+ content: "<w:p>\n <w:r>\n <w:t>Hello firstName} {</w:t>\n </w:r>\n <w:r>\n <w:t>lastName</w:t>\n </w:r>\n <w:r>\n <w:t>} } world} } }</w:t>\n </w:r>\n </w:p>",
1798
+ options: {
1799
+ syntax: {
1800
+ allowUnopenedTag: true
1801
+ }
1802
+ },
1803
+ scope: {
1804
+ firstName: "John",
1805
+ lastName: "Doe"
1806
+ },
1807
+ result: "<w:p>\n <w:r>\n <w:t xml:space=\"preserve\">Hello firstName} Doe</w:t>\n </w:r>\n <w:r>\n <w:t></w:t>\n </w:r>\n <w:r>\n <w:t xml:space=\"preserve\"> } world} } }</w:t>\n </w:r>\n </w:p>"
1808
+ }), _objectSpread(_objectSpread({
1809
+ it: "should not fail if allowUnclosedTag on 'Hello {' string"
1810
+ }, noInternals), {}, {
1811
+ content: "<w:p><w:r><w:t>Hello {</w:t></w:r></w:p>",
1812
+ options: {
1813
+ syntax: {
1814
+ allowUnclosedTag: true,
1815
+ allowUnopenedTag: true
1816
+ }
1817
+ },
1818
+ scope: {
1819
+ firstName: "John",
1820
+ lastName: "Doe"
1821
+ },
1822
+ result: "<w:p><w:r><w:t>Hello {</w:t></w:r></w:p>"
1823
+ }), _objectSpread(_objectSpread({
1824
+ it: "should not fail if allowUnclosedTag on 'Hello }' string"
1825
+ }, noInternals), {}, {
1826
+ content: "<w:p><w:r><w:t>Hello }</w:t></w:r></w:p>",
1827
+ options: {
1828
+ syntax: {
1829
+ allowUnclosedTag: true,
1830
+ allowUnopenedTag: true
1831
+ }
1832
+ },
1833
+ scope: {
1834
+ firstName: "John",
1835
+ lastName: "Doe"
1836
+ },
1837
+ result: "<w:p><w:r><w:t>Hello }</w:t></w:r></w:p>"
1838
+ }), _objectSpread(_objectSpread({
1839
+ it: "should not fail on double delimiters if allowUnclosedTag and allowUnopenedTag is true"
1840
+ }, noInternals), {}, {
1841
+ content: "<w:p>\n <w:r>\n <w:t>Hello {{</w:t>\n </w:r>\n <w:r>\n <w:t>lastName</w:t>\n </w:r>\n <w:r>\n <w:t>}}</w:t>\n </w:r>\n </w:p>",
1842
+ options: {
1843
+ syntax: {
1844
+ allowUnclosedTag: true,
1845
+ allowUnopenedTag: true
1846
+ }
1847
+ },
1848
+ scope: {
1849
+ firstName: "John",
1850
+ lastName: "Doe"
1851
+ },
1852
+ result: "<w:p>\n <w:r>\n <w:t xml:space=\"preserve\">Hello {Doe</w:t>\n </w:r>\n <w:r>\n <w:t></w:t>\n </w:r>\n <w:r>\n <w:t xml:space=\"preserve\">}</w:t>\n </w:r>\n </w:p>"
1853
+ }), _objectSpread(_objectSpread({
1854
+ it: "should not fail on unopened tag if allowUnopenedTag is true"
1855
+ }, noInternals), {}, {
1856
+ content: "<w:p>\n <w:r>\n <w:t>Hello firstName} {</w:t>\n </w:r>\n <w:r>\n <w:t>lastName</w:t>\n </w:r>\n <w:r>\n <w:t>}} world}}}</w:t>\n </w:r>\n </w:p>}",
1857
+ options: {
1858
+ syntax: {
1859
+ allowUnopenedTag: true
1860
+ }
1861
+ },
1862
+ scope: {
1863
+ firstName: "John",
1864
+ lastName: "Doe"
1865
+ },
1866
+ result: "<w:p>\n <w:r>\n <w:t xml:space=\"preserve\">Hello firstName} Doe</w:t>\n </w:r>\n <w:r>\n <w:t></w:t>\n </w:r>\n <w:r>\n <w:t xml:space=\"preserve\">} world}}}</w:t>\n </w:r>\n </w:p>}"
1867
+ }), _objectSpread(_objectSpread({
1868
+ it: "should be possible to set another change delimiter prefix (use $)"
1869
+ }, noInternals), {}, {
1870
+ content: "<w:p><w:r><w:t>{$[[ ]]$}[[name]]</w:t></w:r></w:p>",
1871
+ options: {
1872
+ syntax: {
1873
+ changeDelimiterPrefix: "$"
1874
+ }
1875
+ },
1876
+ scope: {
1877
+ name: "John"
1878
+ },
1879
+ result: '<w:p><w:r><w:t xml:space="preserve">John</w:t></w:r></w:p>'
1880
+ }), _objectSpread(_objectSpread({
1881
+ it: "should be possible to set change delimiter prefix to null"
1882
+ }, noInternals), {}, {
1883
+ content: "<w:p><w:r><w:t>{$[[ ]]$}[[name]]</w:t></w:r></w:p>",
1884
+ options: {
1885
+ syntax: {
1886
+ changeDelimiterPrefix: null
1887
+ }
1888
+ },
1889
+ scope: {
1890
+ name: "John",
1891
+ "$[[ ]]$": "Match ! "
1892
+ },
1893
+ result: '<w:p><w:r><w:t xml:space="preserve">Match ! [[name]]</w:t></w:r></w:p>'
1894
+ }), _objectSpread(_objectSpread({
1895
+ it: "should add space=preserve to last tag when having middle tag"
1896
+ }, noInternals), {}, {
1897
+ content: "<w:p>\n\t\t<w:r>\n\t\t\t<w:t>Hello {</w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t>last_name</w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t>} {</w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t>first_name</w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t>} what's up ?</w:t>\n\t\t</w:r>\n </w:p>",
1898
+ result: "<w:p>\n\t\t<w:r>\n\t\t\t<w:t xml:space=\"preserve\">Hello undefined</w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t></w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t xml:space=\"preserve\"> undefined</w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t></w:t>\n\t\t</w:r>\n\t\t<w:r>\n\t\t\t<w:t xml:space=\"preserve\"> what's up ?</w:t>\n\t\t</w:r>\n </w:p>"
1899
+ }), _objectSpread(_objectSpread({
1900
+ it: "should parse self closing tags",
1901
+ content: '<w:pPr><w:spacing w:line="360" w:lineRule="auto"/></w:pPr>'
1902
+ }, noInternals), {}, {
1903
+ result: null,
1904
+ xmllexed: [{
1905
+ position: "start",
1906
+ tag: "w:pPr",
1907
+ type: "tag",
1908
+ text: false,
1909
+ value: "<w:pPr>"
1910
+ }, {
1911
+ position: "selfclosing",
1912
+ tag: "w:spacing",
1913
+ type: "tag",
1914
+ text: false,
1915
+ value: '<w:spacing w:line="360" w:lineRule="auto"/>'
1916
+ }, {
1917
+ position: "end",
1918
+ tag: "w:pPr",
1919
+ type: "tag",
1920
+ text: false,
1921
+ value: "</w:pPr>"
1922
+ }]
1923
+ }), _objectSpread(_objectSpread({
1924
+ it: "should not fail with empty loop inside loop",
1925
+ content: "<w:p><w:r><w:t>A{#a}</w:t></w:r></w:p>\n\t\t<w:p><w:r><w:t>{#c}{/}{/}</w:t></w:r></w:p>"
1926
+ }, noInternals), {}, {
1927
+ result: '<w:p><w:r><w:t xml:space="preserve">A</w:t></w:r></w:p>'
1928
+ }), function (_ref) {
1929
+ var getDoc = _ref.getDoc;
1930
+ return _objectSpread(_objectSpread({
1931
+ it: "should be possible to use nullgetter inside the evaluateIdentifier configuration",
1932
+ content: "<w:p><w:r><w:t>{#loop}{val}{/loop}</w:t></w:r></w:p>"
1933
+ }, noInternals), {}, {
1934
+ options: {
1935
+ nullGetter: function nullGetter() {
1936
+ return "gotnull";
1937
+ },
1938
+ parser: expressionParser.configure({
1939
+ evaluateIdentifier: function evaluateIdentifier(name, scope, scopeList, context) {
1940
+ if (!Object.prototype.hasOwnProperty.call(scope, name)) {
1941
+ return null;
1942
+ }
1943
+ var res = scope[name];
1944
+ if (res === null) {
1945
+ return getDoc().options.nullGetter(context.meta.part);
1946
+ }
1947
+ if (scope[name] !== undefined) {
1948
+ return scope[name];
1949
+ }
1950
+ }
1951
+ })
1952
+ },
1953
+ scope: {
1954
+ val: "PARENT",
1955
+ loop: [{
1956
+ val: "xx"
1957
+ }, {
1958
+ val: null
1959
+ }]
1960
+ },
1961
+ result: '<w:p><w:r><w:t xml:space="preserve">xxgotnull</w:t></w:r></w:p>'
1962
+ });
1963
+ }, _objectSpread(_objectSpread({
1964
+ // The specificity of this input is that it contains : <a:ext uri="{9D8B030D-6E8A-4147-A177-3AD203B41FA5}">
1965
+ // So in the algorithm that updates the height of the table, those tags should be ignored
1966
+ it: "should work with table pptx nested and empty 'ext' element"
1967
+ }, noInternals), {}, {
1968
+ content: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<p:sld xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\">\n <p:cSld>\n <p:spTree>\n <p:graphicFrame>\n <p:xfrm>\n <a:off x=\"3561792\" y=\"1315064\"/>\n <a:ext cx=\"5853297\" cy=\"713565\"/>\n </p:xfrm>\n <a:graphic>\n <a:graphicData uri=\"http://schemas.openxmlformats.org/drawingml/2006/table\">\n <a:tbl>\n <a:tblGrid>\n <a:gridCol w=\"3275655\">\n <a:extLst>\n <a:ext uri=\"{9D8B030D-6E8A-4147-A177-3AD203B41FA5}\">\n <a16:colId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"3066261218\"/>\n </a:ext>\n </a:extLst>\n </a:gridCol>\n <a:gridCol w=\"2577642\">\n <a:extLst>\n <a:ext uri=\"{9D8B030D-6E8A-4147-A177-3AD203B41FA5}\">\n <a16:colId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"913921408\"/>\n </a:ext>\n </a:extLst>\n </a:gridCol>\n </a:tblGrid>\n <a:tr h=\"347805\">\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t>ABC</a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t>DEF</a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:extLst>\n <a:ext uri=\"{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}\">\n <a16:rowId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"2223618801\"/>\n </a:ext>\n </a:extLst>\n </a:tr>\n <a:tr h=\"347805\">\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t>{#loop1}{#loop2}</a:t>\n </a:r>\n <a:r>\n <a:t>{name}</a:t>\n </a:r>\n <a:r>\n <a:t>{/}{#loop3}</a:t>\n </a:r>\n <a:r>\n <a:t>TTT</a:t>\n </a:r>\n <a:r>\n <a:t>{/}</a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t>{#loop3}</a:t>\n </a:r>\n <a:r>\n <a:t>{name}</a:t>\n </a:r>\n <a:r>\n <a:t>{/}{#loop4}</a:t>\n </a:r>\n <a:r>\n <a:t>DEF</a:t>\n </a:r>\n <a:r>\n <a:t>{/}{/loop1}</a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:extLst>\n <a:ext uri=\"{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}\">\n <a16:rowId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"1379104515\"/>\n </a:ext>\n </a:extLst>\n </a:tr>\n </a:tbl>\n </a:graphicData>\n </a:graphic>\n </p:graphicFrame>\n </p:spTree>\n <p:extLst>\n <p:ext uri=\"{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}\">\n <p14:creationId xmlns:p14=\"http://schemas.microsoft.com/office/powerpoint/2010/main\" val=\"2554173214\"/>\n </p:ext>\n </p:extLst>\n </p:cSld>\n <p:clrMapOvr>\n <a:masterClrMapping/>\n </p:clrMapOvr>\n</p:sld>",
1969
+ scope: {
1970
+ loop1: [1, 2, 3],
1971
+ loop2: [1, 2, 3]
1972
+ },
1973
+ result: "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n<p:sld xmlns:a=\"http://schemas.openxmlformats.org/drawingml/2006/main\" xmlns:r=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships\" xmlns:p=\"http://schemas.openxmlformats.org/presentationml/2006/main\">\n <p:cSld>\n <p:spTree>\n <p:graphicFrame>\n <p:xfrm>\n <a:off x=\"3561792\" y=\"1315064\"/>\n <a:ext cx=\"5853297\" cy=\"1409175\"/>\n </p:xfrm>\n <a:graphic>\n <a:graphicData uri=\"http://schemas.openxmlformats.org/drawingml/2006/table\">\n <a:tbl>\n <a:tblGrid>\n <a:gridCol w=\"3275655\">\n <a:extLst>\n <a:ext uri=\"{9D8B030D-6E8A-4147-A177-3AD203B41FA5}\">\n <a16:colId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"3066261218\"/>\n </a:ext>\n </a:extLst>\n </a:gridCol>\n <a:gridCol w=\"2577642\">\n <a:extLst>\n <a:ext uri=\"{9D8B030D-6E8A-4147-A177-3AD203B41FA5}\">\n <a16:colId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"913921408\"/>\n </a:ext>\n </a:extLst>\n </a:gridCol>\n </a:tblGrid>\n <a:tr h=\"347805\">\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t>ABC</a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t>DEF</a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:extLst>\n <a:ext uri=\"{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}\">\n <a16:rowId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"2223618801\"/>\n </a:ext>\n </a:extLst>\n </a:tr>\n <a:tr h=\"347805\">\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t></a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:extLst>\n <a:ext uri=\"{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}\">\n <a16:rowId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"1379104515\"/>\n </a:ext>\n </a:extLst>\n </a:tr><a:tr h=\"347805\">\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t></a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:extLst>\n <a:ext uri=\"{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}\">\n <a16:rowId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"1379104516\"/>\n </a:ext>\n </a:extLst>\n </a:tr><a:tr h=\"347805\">\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n <a:r>\n <a:t>undefined</a:t>\n </a:r>\n <a:r>\n <a:t></a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:tc>\n <a:txBody>\n <a:bodyPr/>\n <a:lstStyle/>\n <a:p>\n <a:r>\n <a:t></a:t>\n </a:r>\n </a:p>\n </a:txBody>\n <a:tcPr/>\n </a:tc>\n <a:extLst>\n <a:ext uri=\"{0D108BD9-81ED-4DB2-BD59-A6C34878D82A}\">\n <a16:rowId xmlns:a16=\"http://schemas.microsoft.com/office/drawing/2014/main\" val=\"1379104517\"/>\n </a:ext>\n </a:extLst>\n </a:tr>\n </a:tbl>\n </a:graphicData>\n </a:graphic>\n </p:graphicFrame>\n </p:spTree>\n <p:extLst>\n <p:ext uri=\"{BB962C8B-B14F-4D97-AF65-F5344CB8AC3E}\">\n <p14:creationId xmlns:p14=\"http://schemas.microsoft.com/office/powerpoint/2010/main\" val=\"2554173214\"/>\n </p:ext>\n </p:extLst>\n </p:cSld>\n <p:clrMapOvr>\n <a:masterClrMapping/>\n </p:clrMapOvr>\n</p:sld>",
1974
+ pptx: true
1975
+ })];
1976
+ var rawXmlTest = {
1977
+ it: "should work with rawxml",
1978
+ content: "BEFORE<w:p><w:t>{@rawxml}</w:t></w:p>AFTER",
1979
+ scope: {
1980
+ rawxml: '<w:p><w:pPr><w:rPr><w:color w:val="FF0000"/></w:rPr></w:pPr><w:r><w:rPr><w:color w:val="FF0000"/></w:rPr><w:t>My custom</w:t></w:r><w:r><w:rPr><w:color w:val="00FF00"/></w:rPr><w:t>XML</w:t></w:r></w:p>'
1981
+ },
1982
+ result: 'BEFORE<w:p><w:pPr><w:rPr><w:color w:val="FF0000"/></w:rPr></w:pPr><w:r><w:rPr><w:color w:val="FF0000"/></w:rPr><w:t>My custom</w:t></w:r><w:r><w:rPr><w:color w:val="00FF00"/></w:rPr><w:t>XML</w:t></w:r></w:p>AFTER',
1983
+ lexed: [externalContent("BEFORE"), startParagraph, startText, delimiters.start, content("@rawxml"), delimiters.end, endText, endParagraph, externalContent("AFTER")],
1984
+ parsed: [externalContent("BEFORE"), startParagraph, startText, {
1985
+ type: "placeholder",
1986
+ value: "rawxml",
1987
+ module: "rawxml"
1988
+ }, endText, endParagraph, externalContent("AFTER")],
1989
+ postparsed: [externalContent("BEFORE"), {
1990
+ type: "placeholder",
1991
+ value: "rawxml",
1992
+ module: "rawxml",
1993
+ expanded: [[startParagraph, xmlSpacePreserveTag], [endText, endParagraph]]
1994
+ }, externalContent("AFTER")]
1995
+ };
1996
+ fixtures.push(rawXmlTest);
1997
+ fixtures.push(_objectSpread(_objectSpread({}, rawXmlTest), {}, {
1998
+ it: "should work with rawxml with undefined tags",
1999
+ scope: {},
2000
+ result: "BEFOREAFTER"
2001
+ }));
2002
+ fixtures.push(_objectSpread(_objectSpread({}, rawXmlTest), {}, {
2003
+ it: "should throw error with rawxml with scope that is an integer",
2004
+ scope: {
2005
+ rawxml: 11
2006
+ },
2007
+ error: wrapMultiError({
2008
+ name: "RenderingError",
2009
+ message: "Non string values are not allowed for rawXML tags",
2010
+ properties: {
2011
+ explanation: "The value of the raw tag : 'rawxml' is not a string",
2012
+ file: "word/document.xml",
2013
+ id: "invalid_raw_xml_value",
2014
+ value: 11,
2015
+ xtag: "rawxml",
2016
+ offset: 0
2017
+ }
2018
+ }),
2019
+ errorType: Errors.XTTemplateError
2020
+ }));
2021
+ for (var _i4 = 0; _i4 < fixtures.length; _i4++) {
2022
+ var fixture = fixtures[_i4];
2023
+ var _delimiters = {
2024
+ delimiters: fixture.delimiters || {
2025
+ start: "{",
2026
+ end: "}"
2027
+ }
2028
+ };
2029
+ fixture.options = assign({}, fixture.options, _delimiters);
2030
+ }
2031
+ module.exports = fixtures;