@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.
- package/.turbo/turbo-build.log +14 -0
- package/README.md +1 -0
- package/client.d.ts +2 -0
- package/client.js +1 -0
- package/dist/client/index.d.ts +7 -0
- package/dist/client/index.js +1 -0
- package/dist/externalVersion.js +7 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +39 -0
- package/dist/node_modules/bullmq/LICENSE +21 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/async-fifo-queue.js +129 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/backoffs.js +48 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/child-pool.js +71 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/child-processor.js +154 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/child.js +210 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/errors/delayed-error.js +20 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/errors/index.js +8 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/errors/rate-limit-error.js +19 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/errors/unrecoverable-error.js +20 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/errors/waiting-children-error.js +20 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/flow-producer.js +339 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/index.js +25 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/job-scheduler.js +221 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/job.js +893 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/main-base.js +44 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/main-worker.d.ts +1 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/main-worker.js +10 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/main.d.ts +1 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/main.js +10 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/queue-base.js +155 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/queue-events-producer.js +42 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/queue-events.js +125 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/queue-getters.js +450 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/queue-keys.js +43 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/queue.js +635 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/redis-connection.js +270 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/repeat.js +204 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/sandbox.js +75 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/scripts.js +1035 -0
- package/dist/node_modules/bullmq/dist/cjs/classes/worker.js +819 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addDelayedJob-6.lua +119 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addJobScheduler-2.lua +91 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addLog-2.lua +30 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addParentJob-4.lua +104 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addPrioritizedJob-8.lua +117 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addRepeatableJob-2.lua +84 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/addStandardJob-8.lua +122 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/changeDelay-4.lua +55 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/changePriority-7.lua +68 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/cleanJobsInSet-3.lua +55 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/drain-5.lua +41 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/extendLock-2.lua +23 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/extendLocks-1.lua +44 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getCounts-1.lua +36 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getCountsPerPriority-4.lua +35 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getJobScheduler-1.lua +19 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getRanges-1.lua +70 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getRateLimitTtl-1.lua +20 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getState-8.lua +65 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/getStateV2-8.lua +58 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/addBaseMarkerIfNeeded.lua +9 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/addDelayMarkerIfNeeded.lua +15 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/addJobInTargetList.lua +11 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/addJobWithPriority.lua +14 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/batches.lua +18 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/checkItemInList.lua +12 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/cleanList.lua +47 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/cleanSet.lua +66 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/collectMetrics.lua +46 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/deduplicateJob.lua +24 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/destructureJobKey.lua +12 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/findPage.lua +70 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getDelayedScore.lua +25 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getJobsInZset.lua +13 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getNextDelayedTimestamp.lua +12 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getOrSetMaxEvents.lua +11 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getRateLimitTTL.lua +17 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getTargetQueueList.lua +22 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getTimestamp.lua +19 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/getZSetItems.lua +7 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/handleDuplicatedJob.lua +26 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/isLocked.lua +33 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/isQueueMaxed.lua +15 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/isQueuePaused.lua +7 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/isQueuePausedOrMaxed.lua +18 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveJobFromPriorityToActive.lua +13 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveParentFromWaitingChildrenToFailed.lua +53 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/moveParentToWaitIfNeeded.lua +55 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/prepareJobForProcessing.lua +50 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/promoteDelayedJobs.lua +40 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/pushBackJobWithPriority.lua +9 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeDeduplicationKey.lua +11 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeDeduplicationKeyIfNeeded.lua +14 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJob.lua +17 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobFromAnyState.lua +35 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobKeys.lua +8 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobs.lua +13 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobsByMaxAge.lua +16 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobsByMaxCount.lua +15 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeJobsOnFail.lua +36 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeListJobs.lua +17 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeLock.lua +19 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeParentDependencyKey.lua +90 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/removeZSetJobs.lua +27 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/storeJob.lua +36 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/trimEvents.lua +15 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/updateExistingJobsParent.lua +27 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/updateJobFields.lua +11 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/includes/updateParentDepsIfNeeded.lua +13 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/isFinished-3.lua +48 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/isJobInList-1.lua +16 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/isMaxed-2.lua +17 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveJobFromActiveToWait-10.lua +60 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveJobsToWait-8.lua +73 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveStalledJobsToWait-9.lua +156 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveToActive-11.lua +93 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveToDelayed-8.lua +77 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveToFinished-14.lua +283 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/moveToWaitingChildren-5.lua +68 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/obliterate-2.lua +118 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/paginate-1.lua +49 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/pause-7.lua +42 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/promote-9.lua +62 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/releaseLock-1.lua +19 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/removeChildDependency-1.lua +34 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/removeJob-2.lua +92 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/removeJobScheduler-3.lua +43 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/removeRepeatable-3.lua +58 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/reprocessJob-8.lua +49 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/retryJob-11.lua +82 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/saveStacktrace-1.lua +19 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/updateData-1.lua +20 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/updateProgress-3.lua +33 -0
- package/dist/node_modules/bullmq/dist/cjs/commands/updateRepeatableJobMillis-1.lua +28 -0
- package/dist/node_modules/bullmq/dist/cjs/enums/child-command.js +10 -0
- package/dist/node_modules/bullmq/dist/cjs/enums/error-code.js +15 -0
- package/dist/node_modules/bullmq/dist/cjs/enums/index.js +9 -0
- package/dist/node_modules/bullmq/dist/cjs/enums/metrics-time.js +15 -0
- package/dist/node_modules/bullmq/dist/cjs/enums/parent-command.js +16 -0
- package/dist/node_modules/bullmq/dist/cjs/enums/telemetry-attributes.js +48 -0
- package/dist/node_modules/bullmq/dist/cjs/index.js +1 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/advanced-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/backoff-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/base-job-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/child-message.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/connection.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/debounce-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/flow-job.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/index.js +32 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/ioredis-events.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/job-json.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/job-scheduler-json.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/keep-jobs.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/metrics-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/metrics.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/minimal-job.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/parent-message.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/parent.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/queue-options.js +9 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/rate-limiter-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/redis-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/redis-streams.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/repeat-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/repeatable-job.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/repeatable-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/sandboxed-job-processor.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/sandboxed-job.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/sandboxed-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/telemetry.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/interfaces/worker-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addDelayedJob-6.js +373 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addJobScheduler-2.js +237 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addLog-2.js +33 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addParentJob-4.js +340 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addPrioritizedJob-8.js +350 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addRepeatableJob-2.js +230 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/addStandardJob-8.js +354 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/changeDelay-4.js +107 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/changePriority-7.js +122 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/cleanJobsInSet-3.js +350 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/drain-5.js +258 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/extendLock-2.js +30 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/extendLocks-1.js +46 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getCounts-1.js +42 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getCountsPerPriority-4.js +46 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getJobScheduler-1.js +23 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getRanges-1.js +73 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getRateLimitTtl-1.js +39 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getState-8.js +73 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/getStateV2-8.js +57 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/index.js +49 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/isFinished-3.js +49 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/isJobInList-1.js +32 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/isMaxed-2.js +34 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveJobFromActiveToWait-10.js +110 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveJobsToWait-8.js +118 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveStalledJobsToWait-9.js +529 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveToActive-11.js +233 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveToDelayed-8.js +156 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveToFinished-14.js +798 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/moveToWaitingChildren-5.js +83 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/obliterate-2.js +327 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/paginate-1.js +110 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/pause-7.js +67 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/promote-9.js +105 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/releaseLock-1.js +25 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/removeChildDependency-1.js +165 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/removeJob-2.js +292 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/removeJobScheduler-3.js +49 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/removeRepeatable-3.js +63 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/reprocessJob-8.js +96 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/retryJob-11.js +193 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/saveStacktrace-1.js +27 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/updateData-1.js +26 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/updateProgress-3.js +46 -0
- package/dist/node_modules/bullmq/dist/cjs/scripts/updateRepeatableJobMillis-1.js +33 -0
- package/dist/node_modules/bullmq/dist/cjs/tsconfig-cjs.tsbuildinfo +1 -0
- package/dist/node_modules/bullmq/dist/cjs/types/backoff-strategy.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/finished-status.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/index.js +12 -0
- package/dist/node_modules/bullmq/dist/cjs/types/job-json-sandbox.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/job-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/job-scheduler-template-options.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/job-type.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/minimal-queue.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/types/repeat-strategy.js +3 -0
- package/dist/node_modules/bullmq/dist/cjs/utils.js +288 -0
- package/dist/node_modules/bullmq/dist/cjs/version.js +5 -0
- package/dist/node_modules/bullmq/dist/esm/classes/async-fifo-queue.d.ts +37 -0
- package/dist/node_modules/bullmq/dist/esm/classes/async-fifo-queue.js +125 -0
- package/dist/node_modules/bullmq/dist/esm/classes/backoffs.d.ts +10 -0
- package/dist/node_modules/bullmq/dist/esm/classes/backoffs.js +44 -0
- package/dist/node_modules/bullmq/dist/esm/classes/child-pool.d.ts +23 -0
- package/dist/node_modules/bullmq/dist/esm/classes/child-pool.js +67 -0
- package/dist/node_modules/bullmq/dist/esm/classes/child-processor.d.ts +37 -0
- package/dist/node_modules/bullmq/dist/esm/classes/child-processor.js +150 -0
- package/dist/node_modules/bullmq/dist/esm/classes/child.d.ts +35 -0
- package/dist/node_modules/bullmq/dist/esm/classes/child.js +206 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/delayed-error.d.ts +11 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/delayed-error.js +16 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/index.d.ts +4 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/index.js +5 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/rate-limit-error.d.ts +10 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/rate-limit-error.js +15 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/unrecoverable-error.d.ts +11 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/unrecoverable-error.js +16 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/waiting-children-error.d.ts +11 -0
- package/dist/node_modules/bullmq/dist/esm/classes/errors/waiting-children-error.js +16 -0
- package/dist/node_modules/bullmq/dist/esm/classes/flow-producer.d.ts +179 -0
- package/dist/node_modules/bullmq/dist/esm/classes/flow-producer.js +335 -0
- package/dist/node_modules/bullmq/dist/esm/classes/index.d.ts +19 -0
- package/dist/node_modules/bullmq/dist/esm/classes/index.js +22 -0
- package/dist/node_modules/bullmq/dist/esm/classes/job-scheduler.d.ts +24 -0
- package/dist/node_modules/bullmq/dist/esm/classes/job-scheduler.js +216 -0
- package/dist/node_modules/bullmq/dist/esm/classes/job.d.ts +425 -0
- package/dist/node_modules/bullmq/dist/esm/classes/job.js +889 -0
- package/dist/node_modules/bullmq/dist/esm/classes/main-base.d.ts +4 -0
- package/dist/node_modules/bullmq/dist/esm/classes/main-base.js +42 -0
- package/dist/node_modules/bullmq/dist/esm/classes/main-worker.d.ts +1 -0
- package/dist/node_modules/bullmq/dist/esm/classes/main-worker.js +8 -0
- package/dist/node_modules/bullmq/dist/esm/classes/main.d.ts +1 -0
- package/dist/node_modules/bullmq/dist/esm/classes/main.js +8 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-base.d.ts +83 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-base.js +151 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-events-producer.d.ts +21 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-events-producer.js +38 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-events.d.ts +201 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-events.js +121 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-getters.d.ts +235 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-getters.js +447 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-keys.d.ts +10 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue-keys.js +39 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue.d.ts +406 -0
- package/dist/node_modules/bullmq/dist/esm/classes/queue.js +631 -0
- package/dist/node_modules/bullmq/dist/esm/classes/redis-connection.d.ts +46 -0
- package/dist/node_modules/bullmq/dist/esm/classes/redis-connection.js +266 -0
- package/dist/node_modules/bullmq/dist/esm/classes/repeat.d.ts +25 -0
- package/dist/node_modules/bullmq/dist/esm/classes/repeat.js +199 -0
- package/dist/node_modules/bullmq/dist/esm/classes/sandbox.d.ts +4 -0
- package/dist/node_modules/bullmq/dist/esm/classes/sandbox.js +73 -0
- package/dist/node_modules/bullmq/dist/esm/classes/scripts.d.ts +160 -0
- package/dist/node_modules/bullmq/dist/esm/classes/scripts.js +1031 -0
- package/dist/node_modules/bullmq/dist/esm/classes/worker.d.ts +231 -0
- package/dist/node_modules/bullmq/dist/esm/classes/worker.js +815 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addDelayedJob-6.lua +119 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addJobScheduler-2.lua +91 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addLog-2.lua +30 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addParentJob-4.lua +104 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addPrioritizedJob-8.lua +117 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addRepeatableJob-2.lua +84 -0
- package/dist/node_modules/bullmq/dist/esm/commands/addStandardJob-8.lua +122 -0
- package/dist/node_modules/bullmq/dist/esm/commands/changeDelay-4.lua +55 -0
- package/dist/node_modules/bullmq/dist/esm/commands/changePriority-7.lua +68 -0
- package/dist/node_modules/bullmq/dist/esm/commands/cleanJobsInSet-3.lua +55 -0
- package/dist/node_modules/bullmq/dist/esm/commands/drain-5.lua +41 -0
- package/dist/node_modules/bullmq/dist/esm/commands/extendLock-2.lua +23 -0
- package/dist/node_modules/bullmq/dist/esm/commands/extendLocks-1.lua +44 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getCounts-1.lua +36 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getCountsPerPriority-4.lua +35 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getJobScheduler-1.lua +19 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getRanges-1.lua +70 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getRateLimitTtl-1.lua +20 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getState-8.lua +65 -0
- package/dist/node_modules/bullmq/dist/esm/commands/getStateV2-8.lua +58 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/addBaseMarkerIfNeeded.lua +9 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/addDelayMarkerIfNeeded.lua +15 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/addJobInTargetList.lua +11 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/addJobWithPriority.lua +14 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/batches.lua +18 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/checkItemInList.lua +12 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/cleanList.lua +47 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/cleanSet.lua +66 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/collectMetrics.lua +46 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/deduplicateJob.lua +24 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/destructureJobKey.lua +12 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/findPage.lua +70 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getDelayedScore.lua +25 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getJobsInZset.lua +13 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getNextDelayedTimestamp.lua +12 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getOrSetMaxEvents.lua +11 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getRateLimitTTL.lua +17 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getTargetQueueList.lua +22 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getTimestamp.lua +19 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/getZSetItems.lua +7 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/handleDuplicatedJob.lua +26 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/isLocked.lua +33 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/isQueueMaxed.lua +15 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/isQueuePaused.lua +7 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/isQueuePausedOrMaxed.lua +18 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/moveJobFromPriorityToActive.lua +13 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/moveParentFromWaitingChildrenToFailed.lua +53 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/moveParentToWaitIfNeeded.lua +55 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/prepareJobForProcessing.lua +50 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/promoteDelayedJobs.lua +40 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/pushBackJobWithPriority.lua +9 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeDeduplicationKey.lua +11 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeDeduplicationKeyIfNeeded.lua +14 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJob.lua +17 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobFromAnyState.lua +35 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobKeys.lua +8 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobs.lua +13 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobsByMaxAge.lua +16 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobsByMaxCount.lua +15 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeJobsOnFail.lua +36 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeListJobs.lua +17 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeLock.lua +19 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeParentDependencyKey.lua +90 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/removeZSetJobs.lua +27 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/storeJob.lua +36 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/trimEvents.lua +15 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/updateExistingJobsParent.lua +27 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/updateJobFields.lua +11 -0
- package/dist/node_modules/bullmq/dist/esm/commands/includes/updateParentDepsIfNeeded.lua +13 -0
- package/dist/node_modules/bullmq/dist/esm/commands/isFinished-3.lua +48 -0
- package/dist/node_modules/bullmq/dist/esm/commands/isJobInList-1.lua +16 -0
- package/dist/node_modules/bullmq/dist/esm/commands/isMaxed-2.lua +17 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveJobFromActiveToWait-10.lua +60 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveJobsToWait-8.lua +73 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveStalledJobsToWait-9.lua +156 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveToActive-11.lua +93 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveToDelayed-8.lua +77 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveToFinished-14.lua +283 -0
- package/dist/node_modules/bullmq/dist/esm/commands/moveToWaitingChildren-5.lua +68 -0
- package/dist/node_modules/bullmq/dist/esm/commands/obliterate-2.lua +118 -0
- package/dist/node_modules/bullmq/dist/esm/commands/paginate-1.lua +49 -0
- package/dist/node_modules/bullmq/dist/esm/commands/pause-7.lua +42 -0
- package/dist/node_modules/bullmq/dist/esm/commands/promote-9.lua +62 -0
- package/dist/node_modules/bullmq/dist/esm/commands/releaseLock-1.lua +19 -0
- package/dist/node_modules/bullmq/dist/esm/commands/removeChildDependency-1.lua +34 -0
- package/dist/node_modules/bullmq/dist/esm/commands/removeJob-2.lua +92 -0
- package/dist/node_modules/bullmq/dist/esm/commands/removeJobScheduler-3.lua +43 -0
- package/dist/node_modules/bullmq/dist/esm/commands/removeRepeatable-3.lua +58 -0
- package/dist/node_modules/bullmq/dist/esm/commands/reprocessJob-8.lua +49 -0
- package/dist/node_modules/bullmq/dist/esm/commands/retryJob-11.lua +82 -0
- package/dist/node_modules/bullmq/dist/esm/commands/saveStacktrace-1.lua +19 -0
- package/dist/node_modules/bullmq/dist/esm/commands/updateData-1.lua +20 -0
- package/dist/node_modules/bullmq/dist/esm/commands/updateProgress-3.lua +33 -0
- package/dist/node_modules/bullmq/dist/esm/commands/updateRepeatableJobMillis-1.lua +28 -0
- package/dist/node_modules/bullmq/dist/esm/enums/child-command.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/enums/child-command.js +7 -0
- package/dist/node_modules/bullmq/dist/esm/enums/error-code.d.ts +10 -0
- package/dist/node_modules/bullmq/dist/esm/enums/error-code.js +12 -0
- package/dist/node_modules/bullmq/dist/esm/enums/index.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/enums/index.js +6 -0
- package/dist/node_modules/bullmq/dist/esm/enums/metrics-time.d.ts +10 -0
- package/dist/node_modules/bullmq/dist/esm/enums/metrics-time.js +12 -0
- package/dist/node_modules/bullmq/dist/esm/enums/parent-command.d.ts +11 -0
- package/dist/node_modules/bullmq/dist/esm/enums/parent-command.js +13 -0
- package/dist/node_modules/bullmq/dist/esm/enums/telemetry-attributes.d.ts +42 -0
- package/dist/node_modules/bullmq/dist/esm/enums/telemetry-attributes.js +45 -0
- package/dist/node_modules/bullmq/dist/esm/index.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/index.js +6 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/advanced-options.d.ts +18 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/advanced-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/backoff-options.d.ts +15 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/backoff-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/base-job-options.d.ts +100 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/base-job-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/child-message.d.ts +6 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/child-message.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/connection.d.ts +8 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/connection.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/debounce-options.d.ts +13 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/debounce-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/flow-job.d.ts +19 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/flow-job.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/index.d.ts +28 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/index.js +29 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/ioredis-events.d.ts +8 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/ioredis-events.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/job-json.d.ts +47 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/job-json.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/job-scheduler-json.d.ts +16 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/job-scheduler-json.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/keep-jobs.d.ts +17 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/keep-jobs.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/metrics-options.d.ts +12 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/metrics-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/metrics.d.ts +9 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/metrics.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/minimal-job.d.ts +133 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/minimal-job.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/parent-message.d.ts +8 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/parent-message.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/parent.d.ts +20 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/parent.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/queue-options.d.ts +97 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/queue-options.js +6 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/rate-limiter-options.d.ts +12 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/rate-limiter-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/redis-options.d.ts +8 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/redis-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/redis-streams.d.ts +4 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/redis-streams.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/repeat-options.d.ts +51 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/repeat-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-job.d.ts +10 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-job.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-options.d.ts +7 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/repeatable-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job-processor.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job-processor.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job.d.ts +13 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-job.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-options.d.ts +28 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/sandboxed-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/telemetry.d.ts +150 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/telemetry.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/worker-options.d.ts +133 -0
- package/dist/node_modules/bullmq/dist/esm/interfaces/worker-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addDelayedJob-6.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addDelayedJob-6.js +370 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addJobScheduler-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addJobScheduler-2.js +234 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addLog-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addLog-2.js +30 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addParentJob-4.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addParentJob-4.js +337 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addPrioritizedJob-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addPrioritizedJob-8.js +347 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addRepeatableJob-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addRepeatableJob-2.js +227 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addStandardJob-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/addStandardJob-8.js +351 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/changeDelay-4.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/changeDelay-4.js +104 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/changePriority-7.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/changePriority-7.js +119 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/cleanJobsInSet-3.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/cleanJobsInSet-3.js +347 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/drain-5.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/drain-5.js +255 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/extendLock-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/extendLock-2.js +27 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/extendLocks-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/extendLocks-1.js +43 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getCounts-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getCounts-1.js +39 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getCountsPerPriority-4.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getCountsPerPriority-4.js +43 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getJobScheduler-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getJobScheduler-1.js +20 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getRanges-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getRanges-1.js +70 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getRateLimitTtl-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getRateLimitTtl-1.js +36 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getState-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getState-8.js +70 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getStateV2-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/getStateV2-8.js +54 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/index.d.ts +45 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/index.js +46 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/isFinished-3.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/isFinished-3.js +46 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/isJobInList-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/isJobInList-1.js +29 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/isMaxed-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/isMaxed-2.js +31 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveJobFromActiveToWait-10.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveJobFromActiveToWait-10.js +107 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveJobsToWait-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveJobsToWait-8.js +115 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveStalledJobsToWait-9.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveStalledJobsToWait-9.js +526 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToActive-11.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToActive-11.js +230 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToDelayed-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToDelayed-8.js +153 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToFinished-14.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToFinished-14.js +795 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToWaitingChildren-5.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/moveToWaitingChildren-5.js +80 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/obliterate-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/obliterate-2.js +324 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/paginate-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/paginate-1.js +107 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/pause-7.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/pause-7.js +64 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/promote-9.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/promote-9.js +102 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/releaseLock-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/releaseLock-1.js +22 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeChildDependency-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeChildDependency-1.js +162 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeJob-2.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeJob-2.js +289 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeJobScheduler-3.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeJobScheduler-3.js +46 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeRepeatable-3.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/removeRepeatable-3.js +60 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/reprocessJob-8.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/reprocessJob-8.js +93 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/retryJob-11.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/retryJob-11.js +190 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/saveStacktrace-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/saveStacktrace-1.js +24 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/updateData-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/updateData-1.js +23 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/updateProgress-3.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/updateProgress-3.js +43 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/updateRepeatableJobMillis-1.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/scripts/updateRepeatableJobMillis-1.js +30 -0
- package/dist/node_modules/bullmq/dist/esm/tsconfig.tsbuildinfo +1 -0
- package/dist/node_modules/bullmq/dist/esm/types/backoff-strategy.d.ts +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/backoff-strategy.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/finished-status.d.ts +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/finished-status.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/index.d.ts +8 -0
- package/dist/node_modules/bullmq/dist/esm/types/index.js +9 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-json-sandbox.d.ts +5 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-json-sandbox.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-options.d.ts +81 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-scheduler-template-options.d.ts +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-scheduler-template-options.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-type.d.ts +3 -0
- package/dist/node_modules/bullmq/dist/esm/types/job-type.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/minimal-queue.d.ts +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/minimal-queue.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/repeat-strategy.d.ts +2 -0
- package/dist/node_modules/bullmq/dist/esm/types/repeat-strategy.js +2 -0
- package/dist/node_modules/bullmq/dist/esm/utils.d.ts +72 -0
- package/dist/node_modules/bullmq/dist/esm/utils.js +263 -0
- package/dist/node_modules/bullmq/dist/esm/version.d.ts +1 -0
- package/dist/node_modules/bullmq/dist/esm/version.js +2 -0
- package/dist/node_modules/bullmq/node_modules/.bin/semver +17 -0
- package/dist/node_modules/bullmq/node_modules/.bin/uuid +17 -0
- package/dist/node_modules/bullmq/package.json +1 -0
- package/dist/node_modules/docxtemplater/build/docxtemplater.js +5019 -0
- package/dist/node_modules/docxtemplater/build/docxtemplater.min.js +1 -0
- package/dist/node_modules/docxtemplater/docxtemplater.d.ts +140 -0
- package/dist/node_modules/docxtemplater/docxtemplater.test-d.ts +318 -0
- package/dist/node_modules/docxtemplater/expressions-ie11.d.ts +19 -0
- package/dist/node_modules/docxtemplater/expressions-ie11.js +170 -0
- package/dist/node_modules/docxtemplater/expressions.d.ts +25 -0
- package/dist/node_modules/docxtemplater/expressions.js +322 -0
- package/dist/node_modules/docxtemplater/inspect-module.d.ts +29 -0
- package/dist/node_modules/docxtemplater/js/browser-versions/fs.js +3 -0
- package/dist/node_modules/docxtemplater/js/browser-versions/xmldom.js +7 -0
- package/dist/node_modules/docxtemplater/js/collect-content-types.js +28 -0
- package/dist/node_modules/docxtemplater/js/content-types.js +16 -0
- package/dist/node_modules/docxtemplater/js/debugger-module.js +60 -0
- package/dist/node_modules/docxtemplater/js/doc-utils.js +450 -0
- package/dist/node_modules/docxtemplater/js/docxtemplater.d.ts +140 -0
- package/dist/node_modules/docxtemplater/js/docxtemplater.js +1 -0
- package/dist/node_modules/docxtemplater/js/docxtemplater.test-d.ts +318 -0
- package/dist/node_modules/docxtemplater/js/error-logger.js +34 -0
- package/dist/node_modules/docxtemplater/js/errors.js +406 -0
- package/dist/node_modules/docxtemplater/js/expressions-ie11.d.ts +19 -0
- package/dist/node_modules/docxtemplater/js/expressions-ie11.js +165 -0
- package/dist/node_modules/docxtemplater/js/expressions.d.ts +25 -0
- package/dist/node_modules/docxtemplater/js/expressions.js +283 -0
- package/dist/node_modules/docxtemplater/js/file-type-config.js +89 -0
- package/dist/node_modules/docxtemplater/js/filetypes.js +24 -0
- package/dist/node_modules/docxtemplater/js/get-resolved-id.js +14 -0
- package/dist/node_modules/docxtemplater/js/inspect-module.d.ts +29 -0
- package/dist/node_modules/docxtemplater/js/inspect-module.js +253 -0
- package/dist/node_modules/docxtemplater/js/join-uncorrupt.js +109 -0
- package/dist/node_modules/docxtemplater/js/lexer.js +470 -0
- package/dist/node_modules/docxtemplater/js/memory-test.js +38 -0
- package/dist/node_modules/docxtemplater/js/merge-sort.js +32 -0
- package/dist/node_modules/docxtemplater/js/module-wrapper.js +44 -0
- package/dist/node_modules/docxtemplater/js/modules/common.js +69 -0
- package/dist/node_modules/docxtemplater/js/modules/expand-pair-trait.js +257 -0
- package/dist/node_modules/docxtemplater/js/modules/fix-doc-pr-corruption.js +85 -0
- package/dist/node_modules/docxtemplater/js/modules/loop.js +470 -0
- package/dist/node_modules/docxtemplater/js/modules/rawxml.js +109 -0
- package/dist/node_modules/docxtemplater/js/modules/render.js +176 -0
- package/dist/node_modules/docxtemplater/js/modules/space-preserve.js +107 -0
- package/dist/node_modules/docxtemplater/js/parser.js +203 -0
- package/dist/node_modules/docxtemplater/js/postrender.js +110 -0
- package/dist/node_modules/docxtemplater/js/prefix-matcher.js +48 -0
- package/dist/node_modules/docxtemplater/js/proof-state-module.js +27 -0
- package/dist/node_modules/docxtemplater/js/render.js +64 -0
- package/dist/node_modules/docxtemplater/js/resolve.js +82 -0
- package/dist/node_modules/docxtemplater/js/scope-manager.js +229 -0
- package/dist/node_modules/docxtemplater/js/test-text.js +12 -0
- package/dist/node_modules/docxtemplater/js/tests/assertion-module.js +163 -0
- package/dist/node_modules/docxtemplater/js/tests/data/raw-xml-pptx.js +3 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/async.js +167 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/base.js +1133 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/doc-props.js +68 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/errors.js +1216 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/fixtures.js +2031 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/integration.js +1258 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/lexer-parser-render.js +139 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/modules.js +796 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/pptx.js +140 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/speed.js +281 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/table.js +215 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/text.js +98 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/v3.js +279 -0
- package/dist/node_modules/docxtemplater/js/tests/e2e/xml-templater.js +478 -0
- package/dist/node_modules/docxtemplater/js/tests/filenames.js +1 -0
- package/dist/node_modules/docxtemplater/js/tests/index.js +122 -0
- package/dist/node_modules/docxtemplater/js/tests/printy.js +47 -0
- package/dist/node_modules/docxtemplater/js/tests/string-repeat.js +36 -0
- package/dist/node_modules/docxtemplater/js/tests/unit/doc-utils.js +77 -0
- package/dist/node_modules/docxtemplater/js/tests/unit/expressions.js +124 -0
- package/dist/node_modules/docxtemplater/js/tests/unit/merge-sort.js +69 -0
- package/dist/node_modules/docxtemplater/js/tests/unit/scope-manager.js +76 -0
- package/dist/node_modules/docxtemplater/js/tests/unit/xml-matcher.js +72 -0
- package/dist/node_modules/docxtemplater/js/tests/utils.js +873 -0
- package/dist/node_modules/docxtemplater/js/tests/xml-prettify.js +219 -0
- package/dist/node_modules/docxtemplater/js/text.d.ts +16 -0
- package/dist/node_modules/docxtemplater/js/text.js +88 -0
- package/dist/node_modules/docxtemplater/js/traits.js +347 -0
- package/dist/node_modules/docxtemplater/js/uintarray-to-string.js +132 -0
- package/dist/node_modules/docxtemplater/js/utils.js +12 -0
- package/dist/node_modules/docxtemplater/js/xml-matcher.js +13 -0
- package/dist/node_modules/docxtemplater/js/xml-templater.js +242 -0
- package/dist/node_modules/docxtemplater/package.json +1 -0
- package/dist/node_modules/docxtemplater/text.d.ts +16 -0
- package/dist/node_modules/docxtemplater/text.js +88 -0
- package/dist/node_modules/docxtemplater/webpack.config.js +55 -0
- package/dist/node_modules/pizzip/.babelrc +5 -0
- package/dist/node_modules/pizzip/.codeclimate.yml +14 -0
- package/dist/node_modules/pizzip/.editorconfig +13 -0
- package/dist/node_modules/pizzip/.eslintcache +1 -0
- package/dist/node_modules/pizzip/.eslintrc +203 -0
- package/dist/node_modules/pizzip/.ignored.log +8 -0
- package/dist/node_modules/pizzip/.jshintignore +2 -0
- package/dist/node_modules/pizzip/.jshintrc +12 -0
- package/dist/node_modules/pizzip/.prettierrc.yaml +1 -0
- package/dist/node_modules/pizzip/.travis.yml +19 -0
- package/dist/node_modules/pizzip/LICENSE.markdown +647 -0
- package/dist/node_modules/pizzip/README.markdown +30 -0
- package/dist/node_modules/pizzip/dist/pizzip-utils-ie.js +50 -0
- package/dist/node_modules/pizzip/dist/pizzip-utils-ie.min.js +1 -0
- package/dist/node_modules/pizzip/dist/pizzip-utils.js +58 -0
- package/dist/node_modules/pizzip/dist/pizzip-utils.min.js +1 -0
- package/dist/node_modules/pizzip/dist/pizzip.js +321 -0
- package/dist/node_modules/pizzip/dist/pizzip.min.js +2 -0
- package/dist/node_modules/pizzip/dist/pizzip.min.js.LICENSE.txt +1 -0
- package/dist/node_modules/pizzip/es6/arrayReader.js +59 -0
- package/dist/node_modules/pizzip/es6/base64.js +69 -0
- package/dist/node_modules/pizzip/es6/compressedObject.js +28 -0
- package/dist/node_modules/pizzip/es6/compressions.js +13 -0
- package/dist/node_modules/pizzip/es6/crc32.js +102 -0
- package/dist/node_modules/pizzip/es6/dataReader.js +115 -0
- package/dist/node_modules/pizzip/es6/defaults.js +11 -0
- package/dist/node_modules/pizzip/es6/deprecatedPublicUtils.js +103 -0
- package/dist/node_modules/pizzip/es6/flate.js +19 -0
- package/dist/node_modules/pizzip/es6/index.d.ts +384 -0
- package/dist/node_modules/pizzip/es6/index.js +89 -0
- package/dist/node_modules/pizzip/es6/index.test-d.ts +99 -0
- package/dist/node_modules/pizzip/es6/license_header.js +11 -0
- package/dist/node_modules/pizzip/es6/load.js +39 -0
- package/dist/node_modules/pizzip/es6/nodeBuffer.js +10 -0
- package/dist/node_modules/pizzip/es6/nodeBufferReader.js +24 -0
- package/dist/node_modules/pizzip/es6/object.js +924 -0
- package/dist/node_modules/pizzip/es6/signature.js +7 -0
- package/dist/node_modules/pizzip/es6/stringReader.js +40 -0
- package/dist/node_modules/pizzip/es6/stringWriter.js +30 -0
- package/dist/node_modules/pizzip/es6/support.js +37 -0
- package/dist/node_modules/pizzip/es6/uint8ArrayReader.js +29 -0
- package/dist/node_modules/pizzip/es6/uint8ArrayWriter.js +36 -0
- package/dist/node_modules/pizzip/es6/utf8.js +241 -0
- package/dist/node_modules/pizzip/es6/utils.js +381 -0
- package/dist/node_modules/pizzip/es6/zipEntries.js +317 -0
- package/dist/node_modules/pizzip/es6/zipEntry.js +349 -0
- package/dist/node_modules/pizzip/js/arrayReader.js +49 -0
- package/dist/node_modules/pizzip/js/base64.js +53 -0
- package/dist/node_modules/pizzip/js/compressedObject.js +28 -0
- package/dist/node_modules/pizzip/js/compressions.js +14 -0
- package/dist/node_modules/pizzip/js/crc32.js +33 -0
- package/dist/node_modules/pizzip/js/dataReader.js +112 -0
- package/dist/node_modules/pizzip/js/defaults.js +12 -0
- package/dist/node_modules/pizzip/js/deprecatedPublicUtils.js +104 -0
- package/dist/node_modules/pizzip/js/flate.js +15 -0
- package/dist/node_modules/pizzip/js/index.d.ts +384 -0
- package/dist/node_modules/pizzip/js/index.js +3 -0
- package/dist/node_modules/pizzip/js/index.test-d.ts +99 -0
- package/dist/node_modules/pizzip/js/license_header.js +12 -0
- package/dist/node_modules/pizzip/js/load.js +38 -0
- package/dist/node_modules/pizzip/js/nodeBuffer.js +11 -0
- package/dist/node_modules/pizzip/js/nodeBufferReader.js +21 -0
- package/dist/node_modules/pizzip/js/object.js +803 -0
- package/dist/node_modules/pizzip/js/signature.js +8 -0
- package/dist/node_modules/pizzip/js/stringReader.js +37 -0
- package/dist/node_modules/pizzip/js/stringWriter.js +29 -0
- package/dist/node_modules/pizzip/js/support.js +31 -0
- package/dist/node_modules/pizzip/js/uint8ArrayReader.js +26 -0
- package/dist/node_modules/pizzip/js/uint8ArrayWriter.js +35 -0
- package/dist/node_modules/pizzip/js/utf8.js +221 -0
- package/dist/node_modules/pizzip/js/utils.js +353 -0
- package/dist/node_modules/pizzip/js/zipEntries.js +266 -0
- package/dist/node_modules/pizzip/js/zipEntry.js +293 -0
- package/dist/node_modules/pizzip/package.json +1 -0
- package/dist/node_modules/pizzip/symlink.sh +4 -0
- package/dist/node_modules/pizzip/utils/.jshintignore +2 -0
- package/dist/node_modules/pizzip/utils/.jshintrc +13 -0
- package/dist/node_modules/pizzip/utils/.travis.yml +10 -0
- package/dist/node_modules/pizzip/utils/LICENSE.markdown +651 -0
- package/dist/node_modules/pizzip/utils/README.markdown +21 -0
- package/dist/node_modules/pizzip/utils/dist/pizzip-utils-ie.js +50 -0
- package/dist/node_modules/pizzip/utils/dist/pizzip-utils-ie.min.js +1 -0
- package/dist/node_modules/pizzip/utils/dist/pizzip-utils.js +58 -0
- package/dist/node_modules/pizzip/utils/dist/pizzip-utils.min.js +1 -0
- package/dist/node_modules/pizzip/utils/es6/index.js +105 -0
- package/dist/node_modules/pizzip/utils/es6/index_IE.js +43 -0
- package/dist/node_modules/pizzip/utils/es6/license_header.js +8 -0
- package/dist/node_modules/pizzip/utils/index.d.ts +5 -0
- package/dist/node_modules/pizzip/utils/index.js +1 -0
- package/dist/node_modules/pizzip/utils/index.test-d.ts +15 -0
- package/dist/node_modules/pizzip/utils/webpack.config.js +39 -0
- package/dist/node_modules/pizzip/vendor/FileSaver.js +247 -0
- package/dist/node_modules/pizzip/webpack.config.js +30 -0
- package/dist/server/actions/printTemplates.d.ts +6 -0
- package/dist/server/actions/printTemplates.js +126 -0
- package/dist/server/actions/producer.d.ts +3 -0
- package/dist/server/actions/producer.js +81 -0
- package/dist/server/index.d.ts +1 -0
- package/dist/server/index.js +33 -0
- package/dist/server/plugin.d.ts +8 -0
- package/dist/server/plugin.js +120 -0
- package/package.json +26 -0
- package/server.d.ts +2 -0
- package/server.js +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
function repeat(input, count) {
|
|
4
|
+
if (input == null) {
|
|
5
|
+
throw new TypeError("can't convert " + input + " to object");
|
|
6
|
+
}
|
|
7
|
+
var str = "" + input;
|
|
8
|
+
// To convert string to integer.
|
|
9
|
+
count = +count;
|
|
10
|
+
if (count < 0) {
|
|
11
|
+
throw new RangeError("repeat count must be non-negative");
|
|
12
|
+
}
|
|
13
|
+
if (count === Infinity) {
|
|
14
|
+
throw new RangeError("repeat count must be less than infinity");
|
|
15
|
+
}
|
|
16
|
+
count = Math.floor(count);
|
|
17
|
+
if (str.length === 0 || count === 0) {
|
|
18
|
+
return "";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// Ensuring count is a 31-bit integer allows us to heavily optimize the
|
|
22
|
+
// main part. But anyway, most current (August 2014) browsers can't handle
|
|
23
|
+
// strings 1 << 28 chars or longer, so:
|
|
24
|
+
if (str.length * count >= 1 << 28) {
|
|
25
|
+
throw new RangeError("repeat count must not overflow maximum string size");
|
|
26
|
+
}
|
|
27
|
+
var maxCount = str.length * count;
|
|
28
|
+
count = Math.floor(Math.log(count) / Math.log(2));
|
|
29
|
+
while (count) {
|
|
30
|
+
str += str;
|
|
31
|
+
count--;
|
|
32
|
+
}
|
|
33
|
+
str += str.substring(0, maxCount - str.length);
|
|
34
|
+
return str;
|
|
35
|
+
}
|
|
36
|
+
module.exports = repeat;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _require = require("../../doc-utils.js"),
|
|
4
|
+
uniq = _require.uniq,
|
|
5
|
+
setSingleAttribute = _require.setSingleAttribute,
|
|
6
|
+
getSingleAttribute = _require.getSingleAttribute,
|
|
7
|
+
chunkBy = _require.chunkBy;
|
|
8
|
+
var _require2 = require("../utils.js"),
|
|
9
|
+
expect = _require2.expect;
|
|
10
|
+
describe("Uniq", function () {
|
|
11
|
+
it("should work", function () {
|
|
12
|
+
expect(uniq(["a", "b", "a"])).to.deep.equal(["a", "b"]);
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
describe("setSingleAttribute", function () {
|
|
16
|
+
it("should work with self closing", function () {
|
|
17
|
+
expect(setSingleAttribute("<a/>", "b", "true")).to.equal('<a b="true"/>');
|
|
18
|
+
});
|
|
19
|
+
it("should work with starting tag", function () {
|
|
20
|
+
expect(setSingleAttribute("<a>", "b", "true")).to.equal('<a b="true">');
|
|
21
|
+
});
|
|
22
|
+
});
|
|
23
|
+
describe("getSingleAttribute", function () {
|
|
24
|
+
it("should work and get value", function () {
|
|
25
|
+
expect(getSingleAttribute('<a b="c">', "b")).to.equal("c");
|
|
26
|
+
});
|
|
27
|
+
it("should work and return null", function () {
|
|
28
|
+
expect(getSingleAttribute("<a>", "b")).to.equal(null);
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
describe("ChunkBy", function () {
|
|
32
|
+
it("should work", function () {
|
|
33
|
+
// This tests chunkBy, and in particular the fact that the chunking
|
|
34
|
+
// works even if the first function call does'nt return "start" (it
|
|
35
|
+
// returns undefined here)
|
|
36
|
+
var chunks = chunkBy([{
|
|
37
|
+
type: "content",
|
|
38
|
+
value: "Hello"
|
|
39
|
+
}, {
|
|
40
|
+
type: "tag",
|
|
41
|
+
tag: "w:t",
|
|
42
|
+
position: "start"
|
|
43
|
+
}, {
|
|
44
|
+
type: "content",
|
|
45
|
+
value: "Ho"
|
|
46
|
+
}, {
|
|
47
|
+
type: "tag",
|
|
48
|
+
tag: "w:t",
|
|
49
|
+
position: "end"
|
|
50
|
+
}, {
|
|
51
|
+
type: "content",
|
|
52
|
+
value: "Bye"
|
|
53
|
+
}], function (part) {
|
|
54
|
+
if (part.type === "tag" && part.tag === "w:t") {
|
|
55
|
+
return part.position;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
expect(chunks).to.deep.equal([[{
|
|
59
|
+
type: "content",
|
|
60
|
+
value: "Hello"
|
|
61
|
+
}], [{
|
|
62
|
+
type: "tag",
|
|
63
|
+
tag: "w:t",
|
|
64
|
+
position: "start"
|
|
65
|
+
}, {
|
|
66
|
+
type: "content",
|
|
67
|
+
value: "Ho"
|
|
68
|
+
}, {
|
|
69
|
+
type: "tag",
|
|
70
|
+
tag: "w:t",
|
|
71
|
+
position: "end"
|
|
72
|
+
}], [{
|
|
73
|
+
type: "content",
|
|
74
|
+
value: "Bye"
|
|
75
|
+
}]]);
|
|
76
|
+
});
|
|
77
|
+
});
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var expressionParser = require("../../expressions.js");
|
|
4
|
+
var expressionParserIE11 = require("../../expressions-ie11.js");
|
|
5
|
+
var _require = require("../utils.js"),
|
|
6
|
+
expect = _require.expect;
|
|
7
|
+
describe("Angular parser", function () {
|
|
8
|
+
it("should work", function () {
|
|
9
|
+
expect(expressionParser("x+x", {
|
|
10
|
+
tag: {
|
|
11
|
+
value: "x+x"
|
|
12
|
+
},
|
|
13
|
+
scopePath: []
|
|
14
|
+
}).get({
|
|
15
|
+
x: 1
|
|
16
|
+
}, {
|
|
17
|
+
scopePathItem: []
|
|
18
|
+
})).to.equal(2);
|
|
19
|
+
expect(expressionParser("x(y)", {
|
|
20
|
+
scopePath: []
|
|
21
|
+
}).get({
|
|
22
|
+
x: function x(y) {
|
|
23
|
+
return y * 2;
|
|
24
|
+
},
|
|
25
|
+
y: 3
|
|
26
|
+
}, {
|
|
27
|
+
scopePathItem: []
|
|
28
|
+
})).to.equal(6);
|
|
29
|
+
});
|
|
30
|
+
it("should work with ie 11", function () {
|
|
31
|
+
var result = expressionParserIE11("x+x", {
|
|
32
|
+
tag: {
|
|
33
|
+
value: "x+x"
|
|
34
|
+
},
|
|
35
|
+
scopePath: []
|
|
36
|
+
}).get({
|
|
37
|
+
x: 1
|
|
38
|
+
}, {
|
|
39
|
+
scopePathItem: []
|
|
40
|
+
});
|
|
41
|
+
expect(result).to.equal(2);
|
|
42
|
+
});
|
|
43
|
+
it("should be able to get object identifiers", function () {
|
|
44
|
+
expect(expressionParser("(x.y.z + x.m) / a").getObjectIdentifiers()).to.deep.equal({
|
|
45
|
+
a: {},
|
|
46
|
+
x: {
|
|
47
|
+
m: {},
|
|
48
|
+
y: {
|
|
49
|
+
z: {}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
expect(expressionParser("x(a.b.c)").getObjectIdentifiers()).to.deep.equal({
|
|
54
|
+
x: {},
|
|
55
|
+
a: {
|
|
56
|
+
b: {
|
|
57
|
+
c: {}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
});
|
|
62
|
+
it("should be able to get object identifiers ie11", function () {
|
|
63
|
+
expect(expressionParserIE11("(x.y.z + x.m) / a").getObjectIdentifiers()).to.deep.equal({
|
|
64
|
+
a: {},
|
|
65
|
+
x: {
|
|
66
|
+
m: {},
|
|
67
|
+
y: {
|
|
68
|
+
z: {}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
expect(expressionParserIE11("x(a.b.c)").getObjectIdentifiers()).to.deep.equal({
|
|
73
|
+
x: {},
|
|
74
|
+
a: {
|
|
75
|
+
b: {
|
|
76
|
+
c: {}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
});
|
|
81
|
+
it("should be able to getIdentifiers", function () {
|
|
82
|
+
expressionParser.filters.getimg = function () {
|
|
83
|
+
return 0;
|
|
84
|
+
};
|
|
85
|
+
expect(expressionParser("x+x", {
|
|
86
|
+
scopePath: [],
|
|
87
|
+
tag: {
|
|
88
|
+
value: "x+x"
|
|
89
|
+
}
|
|
90
|
+
}).getIdentifiers()).to.deep.equal(["x"]);
|
|
91
|
+
expect(expressionParser("x+users", {
|
|
92
|
+
scopePath: [],
|
|
93
|
+
tag: {
|
|
94
|
+
value: "x+users"
|
|
95
|
+
}
|
|
96
|
+
}).getIdentifiers()).to.deep.equal(["x", "users"]);
|
|
97
|
+
expect(expressionParser("users<= 3 && users!= 0 | getimg:foo", {
|
|
98
|
+
scopePath: [],
|
|
99
|
+
tag: {
|
|
100
|
+
value: "users<= 3 && users!= 0 | getimg:foo"
|
|
101
|
+
}
|
|
102
|
+
}).getIdentifiers()).to.deep.equal(["users", "foo"]);
|
|
103
|
+
});
|
|
104
|
+
it("should be able to getIdentifiers with ie 11", function () {
|
|
105
|
+
expressionParserIE11.filters.getimg = function name() {
|
|
106
|
+
return 0;
|
|
107
|
+
};
|
|
108
|
+
expect(expressionParserIE11("x+x", {
|
|
109
|
+
tag: {
|
|
110
|
+
value: "x+x"
|
|
111
|
+
}
|
|
112
|
+
}).getIdentifiers()).to.deep.equal(["x"]);
|
|
113
|
+
expect(expressionParserIE11("x+users", {
|
|
114
|
+
tag: {
|
|
115
|
+
value: "x+users"
|
|
116
|
+
}
|
|
117
|
+
}).getIdentifiers()).to.deep.equal(["x", "users"]);
|
|
118
|
+
expect(expressionParserIE11("users<= 3 && users!= 0 | getimg:foo", {
|
|
119
|
+
tag: {
|
|
120
|
+
value: "x+x"
|
|
121
|
+
}
|
|
122
|
+
}).getIdentifiers()).to.deep.equal(["users", "foo"]);
|
|
123
|
+
});
|
|
124
|
+
});
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _require = require("../utils.js"),
|
|
4
|
+
expect = _require.expect;
|
|
5
|
+
var mergesort = require("../../merge-sort.js");
|
|
6
|
+
describe("Mergesort", function () {
|
|
7
|
+
it("should work with simple", function () {
|
|
8
|
+
var sorted = mergesort([[{
|
|
9
|
+
offset: 1
|
|
10
|
+
}, {
|
|
11
|
+
offset: 4
|
|
12
|
+
}], [{
|
|
13
|
+
offset: 2
|
|
14
|
+
}, {
|
|
15
|
+
offset: 3
|
|
16
|
+
}]]);
|
|
17
|
+
var offsets = sorted.map(function (_ref) {
|
|
18
|
+
var offset = _ref.offset;
|
|
19
|
+
return offset;
|
|
20
|
+
});
|
|
21
|
+
expect(offsets).to.deep.equal([1, 2, 3, 4]);
|
|
22
|
+
});
|
|
23
|
+
it("should work even when having first array be the smallest values", function () {
|
|
24
|
+
// In previous versions, this simple example would fail with the
|
|
25
|
+
// message : `Cannot read property 'offset' of undefined`
|
|
26
|
+
var sorted = mergesort([[{
|
|
27
|
+
offset: 1
|
|
28
|
+
}, {
|
|
29
|
+
offset: 2
|
|
30
|
+
}], [{
|
|
31
|
+
offset: 4
|
|
32
|
+
}, {
|
|
33
|
+
offset: 5
|
|
34
|
+
}], [{
|
|
35
|
+
offset: 3
|
|
36
|
+
}, {
|
|
37
|
+
offset: 6
|
|
38
|
+
}]]);
|
|
39
|
+
var offsets = sorted.map(function (_ref2) {
|
|
40
|
+
var offset = _ref2.offset;
|
|
41
|
+
return offset;
|
|
42
|
+
});
|
|
43
|
+
expect(offsets).to.deep.equal([1, 2, 3, 4, 5, 6]);
|
|
44
|
+
});
|
|
45
|
+
it("should work for complex case with empty values", function () {
|
|
46
|
+
var sorted = mergesort([[{
|
|
47
|
+
offset: 2
|
|
48
|
+
}, {
|
|
49
|
+
offset: 6
|
|
50
|
+
}], [{
|
|
51
|
+
offset: 1
|
|
52
|
+
}, {
|
|
53
|
+
offset: 4
|
|
54
|
+
}], [], [{
|
|
55
|
+
offset: 7
|
|
56
|
+
}, {
|
|
57
|
+
offset: 8
|
|
58
|
+
}], [], [], [{
|
|
59
|
+
offset: 3
|
|
60
|
+
}, {
|
|
61
|
+
offset: 5
|
|
62
|
+
}], []]);
|
|
63
|
+
var offsets = sorted.map(function (_ref3) {
|
|
64
|
+
var offset = _ref3.offset;
|
|
65
|
+
return offset;
|
|
66
|
+
});
|
|
67
|
+
expect(offsets).to.deep.equal([1, 2, 3, 4, 5, 6, 7, 8]);
|
|
68
|
+
});
|
|
69
|
+
});
|
|
@@ -0,0 +1,76 @@
|
|
|
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 _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator["return"] && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, "catch": function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
5
|
+
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
6
|
+
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
7
|
+
var createScope = require("../../scope-manager.js");
|
|
8
|
+
var expressionParser = require("../../expressions.js");
|
|
9
|
+
var _require = require("../utils.js"),
|
|
10
|
+
expect = _require.expect;
|
|
11
|
+
var _require2 = require("../utils.js"),
|
|
12
|
+
resolveSoon = _require2.resolveSoon;
|
|
13
|
+
describe("ScopeManager", function () {
|
|
14
|
+
it("should work with simple tag", function () {
|
|
15
|
+
var sm = createScope({
|
|
16
|
+
tags: {
|
|
17
|
+
x: "y"
|
|
18
|
+
},
|
|
19
|
+
parser: expressionParser
|
|
20
|
+
});
|
|
21
|
+
var val = sm.getValue("x", {
|
|
22
|
+
part: {
|
|
23
|
+
value: "x"
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
expect(val).to.equal("y");
|
|
27
|
+
});
|
|
28
|
+
it("should work with resolve asynchronously", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
29
|
+
var sm, part, part2, list, val, subSm, subVal;
|
|
30
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
31
|
+
while (1) switch (_context.prev = _context.next) {
|
|
32
|
+
case 0:
|
|
33
|
+
sm = createScope({
|
|
34
|
+
tags: {
|
|
35
|
+
list: resolveSoon([{
|
|
36
|
+
x: resolveSoon("a")
|
|
37
|
+
}, {
|
|
38
|
+
x: "b"
|
|
39
|
+
}, {
|
|
40
|
+
x: "c"
|
|
41
|
+
}])
|
|
42
|
+
},
|
|
43
|
+
parser: expressionParser
|
|
44
|
+
});
|
|
45
|
+
part = {
|
|
46
|
+
type: "placeholder",
|
|
47
|
+
value: "list",
|
|
48
|
+
lIndex: 33
|
|
49
|
+
};
|
|
50
|
+
part2 = {
|
|
51
|
+
type: "placeholder",
|
|
52
|
+
value: "x",
|
|
53
|
+
lIndex: 44
|
|
54
|
+
};
|
|
55
|
+
_context.next = 5;
|
|
56
|
+
return sm.getValueAsync(part.value, {
|
|
57
|
+
part: part
|
|
58
|
+
});
|
|
59
|
+
case 5:
|
|
60
|
+
list = _context.sent;
|
|
61
|
+
val = list[0];
|
|
62
|
+
subSm = sm.createSubScopeManager(val, part.value, 0, part, 3);
|
|
63
|
+
_context.next = 10;
|
|
64
|
+
return subSm.getValueAsync(part2.value, {
|
|
65
|
+
part: part2
|
|
66
|
+
});
|
|
67
|
+
case 10:
|
|
68
|
+
subVal = _context.sent;
|
|
69
|
+
expect(subVal).to.equal("a");
|
|
70
|
+
case 12:
|
|
71
|
+
case "end":
|
|
72
|
+
return _context.stop();
|
|
73
|
+
}
|
|
74
|
+
}, _callee);
|
|
75
|
+
})));
|
|
76
|
+
});
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var xmlMatcher = require("../../xml-matcher.js");
|
|
4
|
+
var _require = require("../utils.js"),
|
|
5
|
+
expect = _require.expect;
|
|
6
|
+
var xmlprettify = require("../xml-prettify.js");
|
|
7
|
+
describe("XmlMatcher", function () {
|
|
8
|
+
it("should work with simple tag", function () {
|
|
9
|
+
var matcher = xmlMatcher("<w:t>Text</w:t>", ["w:t"]);
|
|
10
|
+
expect(matcher.matches[0].array[0]).to.be.equal("<w:t>Text</w:t>");
|
|
11
|
+
expect(matcher.matches[0].array[1]).to.be.equal("<w:t>");
|
|
12
|
+
expect(matcher.matches[0].array[2]).to.be.equal("Text");
|
|
13
|
+
expect(matcher.matches[0].offset).to.be.equal(0);
|
|
14
|
+
});
|
|
15
|
+
it("should work with multiple tags", function () {
|
|
16
|
+
var matcher = xmlMatcher("<w:t>Text</w:t> TAG <w:t>Text2</w:t>", ["w:t"]);
|
|
17
|
+
expect(matcher.matches[1].array[0]).to.be.equal("<w:t>Text2</w:t>");
|
|
18
|
+
expect(matcher.matches[1].array[1]).to.be.equal("<w:t>");
|
|
19
|
+
expect(matcher.matches[1].array[2]).to.be.equal("Text2");
|
|
20
|
+
expect(matcher.matches[1].offset).to.be.equal(20);
|
|
21
|
+
});
|
|
22
|
+
it("should work with selfclosing tag", function () {
|
|
23
|
+
var matcher = xmlMatcher(' <w:spacing w:before="0" w:after="200"/> ', ["w:spacing"]);
|
|
24
|
+
expect(matcher.matches.length).to.be.equal(1);
|
|
25
|
+
expect(matcher.matches[0].array[0]).to.be.equal('<w:spacing w:before="0" w:after="200"/>');
|
|
26
|
+
});
|
|
27
|
+
it("should not match with no </w:t> starter", function () {
|
|
28
|
+
var matcher = xmlMatcher("TAG<w:t>Text1</w:t>", ["w:t"]);
|
|
29
|
+
expect(matcher.matches[0].array[0]).to.be.equal("<w:t>Text1</w:t>");
|
|
30
|
+
expect(matcher.matches[0].array[1]).to.be.equal("<w:t>");
|
|
31
|
+
expect(matcher.matches[0].array[2]).to.be.equal("Text1");
|
|
32
|
+
expect(matcher.matches[0].offset).to.be.equal(3);
|
|
33
|
+
});
|
|
34
|
+
it("should not match with no <w:t> ender", function () {
|
|
35
|
+
var matcher = xmlMatcher("<w:t>Text1</w:t>TAG", ["w:t"]);
|
|
36
|
+
expect(matcher.matches.length).to.be.equal(1);
|
|
37
|
+
});
|
|
38
|
+
});
|
|
39
|
+
describe("XML prettify", function () {
|
|
40
|
+
it("should work with > inside attribute", function () {
|
|
41
|
+
var str = xmlprettify("<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n <w:lvlText w:val=\">\"/>");
|
|
42
|
+
expect(str).to.equal("<?xml version=\"1.0\" standalone=\"yes\"?>\n<w:lvlText w:val=\">\"/>\n");
|
|
43
|
+
});
|
|
44
|
+
it("should deduplicate xmlns:w", function () {
|
|
45
|
+
var str = '<w:sectPr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"><w:t xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"/></w:sectPr>';
|
|
46
|
+
str = xmlprettify(str);
|
|
47
|
+
expect(str).to.equal("<w:sectPr xmlns:w=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\">\n <w:t />\n</w:sectPr>\n");
|
|
48
|
+
});
|
|
49
|
+
it("should normalize d", function () {
|
|
50
|
+
var str = '<w foo="Rydcy9Ry
cy9"/>';
|
|
51
|
+
str = xmlprettify(str);
|
|
52
|
+
expect(str).to.equal("<w foo=\"Rydcy9Ry
cy9\"/>\n");
|
|
53
|
+
});
|
|
54
|
+
it("should sort attributes", function () {
|
|
55
|
+
var str = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?><foo zanc="bar" bar="foo"></foo><foo zak="foo" uk="bar"/>';
|
|
56
|
+
var prettified = xmlprettify(str);
|
|
57
|
+
expect(prettified).to.equal("<?xml version=\"1.0\" standalone=\"yes\"?>\n<foo bar=\"foo\" zanc=\"bar\">\n</foo>\n<foo uk=\"bar\" zak=\"foo\"/>\n");
|
|
58
|
+
});
|
|
59
|
+
it("should remove space inside tags", function () {
|
|
60
|
+
var str = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\t<sst count=\"9\" uniqueCount=\"9\" xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\">\n\t\t<si >\n\t\t\t<t xml:space=\"preserve\">Property</t>\n\t\t</si>\n\t\t<si >\n\t\t\t<t xml:space=\"preserve\">0 $</t>\n\t\t</si>\n\t\t<si >\n\t\t\t<t xml:space=\"preserve\"/>\n\t\t</si>\n\t\t<si>\n\t\t\t<t xml:space=\"preserve\"/>\n\t\t</si>\n\t\t<si>\n\t\t\t<t xml:space=\"preserve\"/>\n\t\t</si>\n\t\t<si>\n\t\t\t<t xml:space=\"preserve\"/>\n\t\t</si >\n\t\t<si>\n\t\t\t<t xml:space=\"preserve\"/>\n\t\t</si>\n\t\t<si>\n\t\t\t<t xml:space=\"preserve\"/>\n\t\t</si>\n\t\t<si />\n\t</sst>";
|
|
61
|
+
var prettified = xmlprettify(str);
|
|
62
|
+
expect(prettified).to.equal("<?xml version=\"1.0\" standalone=\"yes\"?>\n<sst count=\"9\" uniqueCount=\"9\" xmlns=\"http://schemas.openxmlformats.org/spreadsheetml/2006/main\">\n <si>\n <t xml:space=\"preserve\">Property</t>\n </si>\n <si>\n <t xml:space=\"preserve\">0 $</t>\n </si>\n <si>\n <t xml:space=\"preserve\"/>\n </si>\n <si>\n <t xml:space=\"preserve\"/>\n </si>\n <si>\n <t xml:space=\"preserve\"/>\n </si>\n <si>\n <t xml:space=\"preserve\"/>\n </si>\n <si>\n <t xml:space=\"preserve\"/>\n </si>\n <si>\n <t xml:space=\"preserve\"/>\n </si>\n <si/>\n</sst>\n");
|
|
63
|
+
});
|
|
64
|
+
it("should work with processing instruction : <?mso-contentType?>", function () {
|
|
65
|
+
var str = xmlprettify("<?xml version=\"1.0\"?>\n<?mso-contentType?>\n<FormTemplates xmlns=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\">\n <Display>DocumentLibraryForm</Display>\n <Edit>DocumentLibraryForm</Edit>\n <New>DocumentLibraryForm</New>\n</FormTemplates>");
|
|
66
|
+
expect(str).to.equal("<?xml version=\"1.0\"?>\n<?mso-contentType?>\n<FormTemplates xmlns=\"http://schemas.microsoft.com/sharepoint/v3/contenttype/forms\">\n <Display>DocumentLibraryForm</Display>\n <Edit>DocumentLibraryForm</Edit>\n <New>DocumentLibraryForm</New>\n</FormTemplates>\n");
|
|
67
|
+
});
|
|
68
|
+
it("should remove space in processing instruction <?space in xml ?>", function () {
|
|
69
|
+
var str = xmlprettify("<?xml version=\"1.0\" ?>\n<a></a>");
|
|
70
|
+
expect(str.replace(/\n/g, "")).to.equal('<?xml version="1.0"?><a></a>');
|
|
71
|
+
});
|
|
72
|
+
});
|