@ai-qa/workflow 2.0.3 → 2.0.6
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/.cursorrules +5 -0
- package/.github/copilot-instructions.md +3 -0
- package/PROJECT_GUIDE.md +102 -0
- package/README.md +15 -14
- package/agents/router.md +29 -0
- package/cli.js +14 -5
- package/docs/application-context.md +20 -0
- package/install.js +12 -2
- package/package.json +22 -1
- package/qa-dashboard/.env +3 -0
- package/qa-dashboard/data/projects.json +9 -0
- package/qa-dashboard/node_modules/.bin/ejs +16 -0
- package/qa-dashboard/node_modules/.bin/ejs.cmd +17 -0
- package/qa-dashboard/node_modules/.bin/ejs.ps1 +28 -0
- package/qa-dashboard/node_modules/.bin/jake +16 -0
- package/qa-dashboard/node_modules/.bin/jake.cmd +17 -0
- package/qa-dashboard/node_modules/.bin/jake.ps1 +28 -0
- package/qa-dashboard/node_modules/.bin/mime +16 -0
- package/qa-dashboard/node_modules/.bin/mime.cmd +17 -0
- package/qa-dashboard/node_modules/.bin/mime.ps1 +28 -0
- package/qa-dashboard/node_modules/.package-lock.json +990 -0
- package/qa-dashboard/node_modules/@kurkle/color/LICENSE.md +9 -0
- package/qa-dashboard/node_modules/@kurkle/color/README.md +79 -0
- package/qa-dashboard/node_modules/@kurkle/color/dist/color.cjs +624 -0
- package/qa-dashboard/node_modules/@kurkle/color/dist/color.d.ts +235 -0
- package/qa-dashboard/node_modules/@kurkle/color/dist/color.esm.js +589 -0
- package/qa-dashboard/node_modules/@kurkle/color/dist/color.min.js +8 -0
- package/qa-dashboard/node_modules/@kurkle/color/dist/color.min.js.map +1 -0
- package/qa-dashboard/node_modules/@kurkle/color/package.json +77 -0
- package/qa-dashboard/node_modules/accepts/HISTORY.md +243 -0
- package/qa-dashboard/node_modules/accepts/LICENSE +23 -0
- package/qa-dashboard/node_modules/accepts/README.md +140 -0
- package/qa-dashboard/node_modules/accepts/index.js +238 -0
- package/qa-dashboard/node_modules/accepts/package.json +47 -0
- package/qa-dashboard/node_modules/array-flatten/LICENSE +21 -0
- package/qa-dashboard/node_modules/array-flatten/README.md +43 -0
- package/qa-dashboard/node_modules/array-flatten/array-flatten.js +64 -0
- package/qa-dashboard/node_modules/array-flatten/package.json +39 -0
- package/qa-dashboard/node_modules/async/CHANGELOG.md +351 -0
- package/qa-dashboard/node_modules/async/LICENSE +19 -0
- package/qa-dashboard/node_modules/async/README.md +59 -0
- package/qa-dashboard/node_modules/async/all.js +119 -0
- package/qa-dashboard/node_modules/async/allLimit.js +46 -0
- package/qa-dashboard/node_modules/async/allSeries.js +45 -0
- package/qa-dashboard/node_modules/async/any.js +122 -0
- package/qa-dashboard/node_modules/async/anyLimit.js +47 -0
- package/qa-dashboard/node_modules/async/anySeries.js +46 -0
- package/qa-dashboard/node_modules/async/apply.js +11 -0
- package/qa-dashboard/node_modules/async/applyEach.js +57 -0
- package/qa-dashboard/node_modules/async/applyEachSeries.js +37 -0
- package/qa-dashboard/node_modules/async/asyncify.js +118 -0
- package/qa-dashboard/node_modules/async/auto.js +333 -0
- package/qa-dashboard/node_modules/async/autoInject.js +182 -0
- package/qa-dashboard/node_modules/async/bower.json +17 -0
- package/qa-dashboard/node_modules/async/cargo.js +63 -0
- package/qa-dashboard/node_modules/async/cargoQueue.js +71 -0
- package/qa-dashboard/node_modules/async/compose.js +55 -0
- package/qa-dashboard/node_modules/async/concat.js +115 -0
- package/qa-dashboard/node_modules/async/concatLimit.js +60 -0
- package/qa-dashboard/node_modules/async/concatSeries.js +41 -0
- package/qa-dashboard/node_modules/async/constant.js +14 -0
- package/qa-dashboard/node_modules/async/detect.js +96 -0
- package/qa-dashboard/node_modules/async/detectLimit.js +48 -0
- package/qa-dashboard/node_modules/async/detectSeries.js +47 -0
- package/qa-dashboard/node_modules/async/dir.js +43 -0
- package/qa-dashboard/node_modules/async/dist/async.js +6061 -0
- package/qa-dashboard/node_modules/async/dist/async.min.js +1 -0
- package/qa-dashboard/node_modules/async/dist/async.mjs +5948 -0
- package/qa-dashboard/node_modules/async/doDuring.js +68 -0
- package/qa-dashboard/node_modules/async/doUntil.js +46 -0
- package/qa-dashboard/node_modules/async/doWhilst.js +68 -0
- package/qa-dashboard/node_modules/async/during.js +78 -0
- package/qa-dashboard/node_modules/async/each.js +129 -0
- package/qa-dashboard/node_modules/async/eachLimit.js +50 -0
- package/qa-dashboard/node_modules/async/eachOf.js +185 -0
- package/qa-dashboard/node_modules/async/eachOfLimit.js +47 -0
- package/qa-dashboard/node_modules/async/eachOfSeries.js +39 -0
- package/qa-dashboard/node_modules/async/eachSeries.js +44 -0
- package/qa-dashboard/node_modules/async/ensureAsync.js +67 -0
- package/qa-dashboard/node_modules/async/every.js +119 -0
- package/qa-dashboard/node_modules/async/everyLimit.js +46 -0
- package/qa-dashboard/node_modules/async/everySeries.js +45 -0
- package/qa-dashboard/node_modules/async/filter.js +93 -0
- package/qa-dashboard/node_modules/async/filterLimit.js +45 -0
- package/qa-dashboard/node_modules/async/filterSeries.js +43 -0
- package/qa-dashboard/node_modules/async/find.js +96 -0
- package/qa-dashboard/node_modules/async/findLimit.js +48 -0
- package/qa-dashboard/node_modules/async/findSeries.js +47 -0
- package/qa-dashboard/node_modules/async/flatMap.js +115 -0
- package/qa-dashboard/node_modules/async/flatMapLimit.js +60 -0
- package/qa-dashboard/node_modules/async/flatMapSeries.js +41 -0
- package/qa-dashboard/node_modules/async/foldl.js +153 -0
- package/qa-dashboard/node_modules/async/foldr.js +41 -0
- package/qa-dashboard/node_modules/async/forEach.js +129 -0
- package/qa-dashboard/node_modules/async/forEachLimit.js +50 -0
- package/qa-dashboard/node_modules/async/forEachOf.js +185 -0
- package/qa-dashboard/node_modules/async/forEachOfLimit.js +47 -0
- package/qa-dashboard/node_modules/async/forEachOfSeries.js +39 -0
- package/qa-dashboard/node_modules/async/forEachSeries.js +44 -0
- package/qa-dashboard/node_modules/async/forever.js +68 -0
- package/qa-dashboard/node_modules/async/groupBy.js +108 -0
- package/qa-dashboard/node_modules/async/groupByLimit.js +71 -0
- package/qa-dashboard/node_modules/async/groupBySeries.js +36 -0
- package/qa-dashboard/node_modules/async/index.js +588 -0
- package/qa-dashboard/node_modules/async/inject.js +153 -0
- package/qa-dashboard/node_modules/async/internal/DoublyLinkedList.js +92 -0
- package/qa-dashboard/node_modules/async/internal/Heap.js +120 -0
- package/qa-dashboard/node_modules/async/internal/applyEach.js +29 -0
- package/qa-dashboard/node_modules/async/internal/asyncEachOfLimit.js +75 -0
- package/qa-dashboard/node_modules/async/internal/awaitify.js +28 -0
- package/qa-dashboard/node_modules/async/internal/breakLoop.js +10 -0
- package/qa-dashboard/node_modules/async/internal/consoleFunc.js +31 -0
- package/qa-dashboard/node_modules/async/internal/createTester.js +40 -0
- package/qa-dashboard/node_modules/async/internal/eachOfLimit.js +90 -0
- package/qa-dashboard/node_modules/async/internal/filter.js +55 -0
- package/qa-dashboard/node_modules/async/internal/getIterator.js +11 -0
- package/qa-dashboard/node_modules/async/internal/initialParams.js +14 -0
- package/qa-dashboard/node_modules/async/internal/isArrayLike.js +10 -0
- package/qa-dashboard/node_modules/async/internal/iterator.js +57 -0
- package/qa-dashboard/node_modules/async/internal/map.js +30 -0
- package/qa-dashboard/node_modules/async/internal/once.js +17 -0
- package/qa-dashboard/node_modules/async/internal/onlyOnce.js +15 -0
- package/qa-dashboard/node_modules/async/internal/parallel.js +34 -0
- package/qa-dashboard/node_modules/async/internal/promiseCallback.js +23 -0
- package/qa-dashboard/node_modules/async/internal/queue.js +294 -0
- package/qa-dashboard/node_modules/async/internal/range.js +14 -0
- package/qa-dashboard/node_modules/async/internal/reject.js +26 -0
- package/qa-dashboard/node_modules/async/internal/setImmediate.js +34 -0
- package/qa-dashboard/node_modules/async/internal/withoutIndex.js +10 -0
- package/qa-dashboard/node_modules/async/internal/wrapAsync.js +34 -0
- package/qa-dashboard/node_modules/async/log.js +41 -0
- package/qa-dashboard/node_modules/async/map.js +142 -0
- package/qa-dashboard/node_modules/async/mapLimit.js +45 -0
- package/qa-dashboard/node_modules/async/mapSeries.js +44 -0
- package/qa-dashboard/node_modules/async/mapValues.js +152 -0
- package/qa-dashboard/node_modules/async/mapValuesLimit.js +61 -0
- package/qa-dashboard/node_modules/async/mapValuesSeries.js +37 -0
- package/qa-dashboard/node_modules/async/memoize.js +91 -0
- package/qa-dashboard/node_modules/async/nextTick.js +52 -0
- package/qa-dashboard/node_modules/async/package.json +75 -0
- package/qa-dashboard/node_modules/async/parallel.js +180 -0
- package/qa-dashboard/node_modules/async/parallelLimit.js +41 -0
- package/qa-dashboard/node_modules/async/priorityQueue.js +60 -0
- package/qa-dashboard/node_modules/async/queue.js +24 -0
- package/qa-dashboard/node_modules/async/race.js +67 -0
- package/qa-dashboard/node_modules/async/reduce.js +153 -0
- package/qa-dashboard/node_modules/async/reduceRight.js +41 -0
- package/qa-dashboard/node_modules/async/reflect.js +78 -0
- package/qa-dashboard/node_modules/async/reflectAll.js +93 -0
- package/qa-dashboard/node_modules/async/reject.js +87 -0
- package/qa-dashboard/node_modules/async/rejectLimit.js +45 -0
- package/qa-dashboard/node_modules/async/rejectSeries.js +43 -0
- package/qa-dashboard/node_modules/async/retry.js +159 -0
- package/qa-dashboard/node_modules/async/retryable.js +77 -0
- package/qa-dashboard/node_modules/async/select.js +93 -0
- package/qa-dashboard/node_modules/async/selectLimit.js +45 -0
- package/qa-dashboard/node_modules/async/selectSeries.js +43 -0
- package/qa-dashboard/node_modules/async/seq.js +79 -0
- package/qa-dashboard/node_modules/async/series.js +186 -0
- package/qa-dashboard/node_modules/async/setImmediate.js +45 -0
- package/qa-dashboard/node_modules/async/some.js +122 -0
- package/qa-dashboard/node_modules/async/someLimit.js +47 -0
- package/qa-dashboard/node_modules/async/someSeries.js +46 -0
- package/qa-dashboard/node_modules/async/sortBy.js +190 -0
- package/qa-dashboard/node_modules/async/timeout.js +89 -0
- package/qa-dashboard/node_modules/async/times.js +50 -0
- package/qa-dashboard/node_modules/async/timesLimit.js +43 -0
- package/qa-dashboard/node_modules/async/timesSeries.js +32 -0
- package/qa-dashboard/node_modules/async/transform.js +173 -0
- package/qa-dashboard/node_modules/async/tryEach.js +78 -0
- package/qa-dashboard/node_modules/async/unmemoize.js +25 -0
- package/qa-dashboard/node_modules/async/until.js +61 -0
- package/qa-dashboard/node_modules/async/waterfall.js +105 -0
- package/qa-dashboard/node_modules/async/whilst.js +78 -0
- package/qa-dashboard/node_modules/async/wrapSync.js +118 -0
- package/qa-dashboard/node_modules/balanced-match/.github/FUNDING.yml +2 -0
- package/qa-dashboard/node_modules/balanced-match/LICENSE.md +21 -0
- package/qa-dashboard/node_modules/balanced-match/README.md +97 -0
- package/qa-dashboard/node_modules/balanced-match/index.js +62 -0
- package/qa-dashboard/node_modules/balanced-match/package.json +48 -0
- package/qa-dashboard/node_modules/basic-auth/HISTORY.md +52 -0
- package/qa-dashboard/node_modules/basic-auth/LICENSE +24 -0
- package/qa-dashboard/node_modules/basic-auth/README.md +113 -0
- package/qa-dashboard/node_modules/basic-auth/index.js +133 -0
- package/qa-dashboard/node_modules/basic-auth/node_modules/safe-buffer/LICENSE +21 -0
- package/qa-dashboard/node_modules/basic-auth/node_modules/safe-buffer/README.md +584 -0
- package/qa-dashboard/node_modules/basic-auth/node_modules/safe-buffer/index.d.ts +187 -0
- package/qa-dashboard/node_modules/basic-auth/node_modules/safe-buffer/index.js +62 -0
- package/qa-dashboard/node_modules/basic-auth/node_modules/safe-buffer/package.json +37 -0
- package/qa-dashboard/node_modules/basic-auth/package.json +41 -0
- package/qa-dashboard/node_modules/body-parser/HISTORY.md +686 -0
- package/qa-dashboard/node_modules/body-parser/LICENSE +23 -0
- package/qa-dashboard/node_modules/body-parser/README.md +476 -0
- package/qa-dashboard/node_modules/body-parser/index.js +156 -0
- package/qa-dashboard/node_modules/body-parser/lib/read.js +205 -0
- package/qa-dashboard/node_modules/body-parser/lib/types/json.js +243 -0
- package/qa-dashboard/node_modules/body-parser/lib/types/raw.js +101 -0
- package/qa-dashboard/node_modules/body-parser/lib/types/text.js +121 -0
- package/qa-dashboard/node_modules/body-parser/lib/types/urlencoded.js +299 -0
- package/qa-dashboard/node_modules/body-parser/package.json +55 -0
- package/qa-dashboard/node_modules/brace-expansion/.github/FUNDING.yml +2 -0
- package/qa-dashboard/node_modules/brace-expansion/LICENSE +21 -0
- package/qa-dashboard/node_modules/brace-expansion/README.md +135 -0
- package/qa-dashboard/node_modules/brace-expansion/index.js +205 -0
- package/qa-dashboard/node_modules/brace-expansion/package.json +49 -0
- package/qa-dashboard/node_modules/bytes/History.md +97 -0
- package/qa-dashboard/node_modules/bytes/LICENSE +23 -0
- package/qa-dashboard/node_modules/bytes/Readme.md +152 -0
- package/qa-dashboard/node_modules/bytes/index.js +170 -0
- package/qa-dashboard/node_modules/bytes/package.json +42 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/.eslintrc +17 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/.nycrc +9 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/CHANGELOG.md +30 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/LICENSE +21 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/README.md +62 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/actualApply.d.ts +1 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/applyBind.d.ts +19 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/applyBind.js +10 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/functionApply.d.ts +1 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/functionCall.d.ts +1 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/index.d.ts +64 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/reflectApply.d.ts +3 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/test/index.js +63 -0
- package/qa-dashboard/node_modules/call-bind-apply-helpers/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/call-bound/.eslintrc +13 -0
- package/qa-dashboard/node_modules/call-bound/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/call-bound/.nycrc +9 -0
- package/qa-dashboard/node_modules/call-bound/CHANGELOG.md +42 -0
- package/qa-dashboard/node_modules/call-bound/LICENSE +21 -0
- package/qa-dashboard/node_modules/call-bound/README.md +53 -0
- package/qa-dashboard/node_modules/call-bound/index.d.ts +94 -0
- package/qa-dashboard/node_modules/call-bound/index.js +19 -0
- package/qa-dashboard/node_modules/call-bound/package.json +99 -0
- package/qa-dashboard/node_modules/call-bound/test/index.js +61 -0
- package/qa-dashboard/node_modules/call-bound/tsconfig.json +10 -0
- package/qa-dashboard/node_modules/chart.js/LICENSE.md +9 -0
- package/qa-dashboard/node_modules/chart.js/README.md +38 -0
- package/qa-dashboard/node_modules/chart.js/auto/auto.cjs +6 -0
- package/qa-dashboard/node_modules/chart.js/auto/auto.d.ts +4 -0
- package/qa-dashboard/node_modules/chart.js/auto/auto.js +6 -0
- package/qa-dashboard/node_modules/chart.js/auto/package.json +14 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.cjs +11647 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.cjs.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.js +11599 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.js.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.umd.js +14 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.umd.js.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.umd.min.js +14 -0
- package/qa-dashboard/node_modules/chart.js/dist/chart.umd.min.js.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/chunks/helpers.dataset.cjs +2915 -0
- package/qa-dashboard/node_modules/chart.js/dist/chunks/helpers.dataset.cjs.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/chunks/helpers.dataset.js +2788 -0
- package/qa-dashboard/node_modules/chart.js/dist/chunks/helpers.dataset.js.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.bar.d.ts +65 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.bubble.d.ts +35 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.doughnut.d.ts +64 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.line.d.ts +13 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.pie.d.ts +3 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.polarArea.d.ts +35 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.radar.d.ts +19 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/controller.scatter.d.ts +20 -0
- package/qa-dashboard/node_modules/chart.js/dist/controllers/index.d.ts +8 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.adapters.d.ts +67 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.animation.d.ts +21 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.animations.d.ts +22 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.animations.defaults.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.animator.d.ts +67 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.config.d.ts +86 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.controller.d.ts +257 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.datasetController.d.ts +251 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.defaults.d.ts +80 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.element.d.ts +21 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.interaction.d.ts +92 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.layouts.d.ts +88 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.layouts.defaults.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.plugins.d.ts +64 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.registry.d.ts +90 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.scale.autoskip.d.ts +19 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.scale.d.ts +343 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.scale.defaults.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.ticks.d.ts +31 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/core.typedRegistry.d.ts +33 -0
- package/qa-dashboard/node_modules/chart.js/dist/core/index.d.ts +15 -0
- package/qa-dashboard/node_modules/chart.js/dist/elements/element.arc.d.ts +51 -0
- package/qa-dashboard/node_modules/chart.js/dist/elements/element.bar.d.ts +32 -0
- package/qa-dashboard/node_modules/chart.js/dist/elements/element.line.d.ts +87 -0
- package/qa-dashboard/node_modules/chart.js/dist/elements/element.point.d.ts +39 -0
- package/qa-dashboard/node_modules/chart.js/dist/elements/index.d.ts +4 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.canvas.d.ts +75 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.collection.d.ts +68 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.color.d.ts +13 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.config.d.ts +31 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.config.types.d.ts +41 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.core.d.ts +147 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.curve.d.ts +17 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.dataset.d.ts +2 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.dom.d.ts +48 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.easing.d.ts +40 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.extras.d.ts +45 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.interpolation.d.ts +22 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.intl.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.math.d.ts +84 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.options.d.ts +97 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.rtl.d.ts +10 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/helpers.segment.d.ts +65 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers/index.d.ts +16 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers.cjs +136 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers.cjs.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers.js +9 -0
- package/qa-dashboard/node_modules/chart.js/dist/helpers.js.map +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/index.d.ts +12 -0
- package/qa-dashboard/node_modules/chart.js/dist/index.umd.d.ts +5 -0
- package/qa-dashboard/node_modules/chart.js/dist/platform/index.d.ts +5 -0
- package/qa-dashboard/node_modules/chart.js/dist/platform/platform.base.d.ts +63 -0
- package/qa-dashboard/node_modules/chart.js/dist/platform/platform.basic.d.ts +10 -0
- package/qa-dashboard/node_modules/chart.js/dist/platform/platform.dom.d.ts +19 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/index.d.ts +7 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.colors.d.ts +11 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.decimation.d.ts +10 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/filler.drawing.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/filler.helper.d.ts +14 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/filler.options.d.ts +30 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/filler.segment.d.ts +36 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/filler.target.d.ts +9 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/filler.target.stack.d.ts +14 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/index.d.ts +12 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.filler/simpleArc.d.ts +12 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.legend.d.ts +114 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.subtitle.d.ts +27 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.title.d.ts +61 -0
- package/qa-dashboard/node_modules/chart.js/dist/plugins/plugin.tooltip.d.ts +288 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/index.d.ts +6 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.category.d.ts +21 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.linear.d.ts +10 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.linearbase.d.ts +20 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.logarithmic.d.ts +25 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.radialLinear.d.ts +63 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.time.d.ts +130 -0
- package/qa-dashboard/node_modules/chart.js/dist/scales/scale.timeseries.d.ts +39 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/animation.d.ts +34 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/basic.d.ts +3 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/color.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/geometric.d.ts +52 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/index.d.ts +3885 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/layout.d.ts +65 -0
- package/qa-dashboard/node_modules/chart.js/dist/types/utils.d.ts +30 -0
- package/qa-dashboard/node_modules/chart.js/dist/types.d.ts +10 -0
- package/qa-dashboard/node_modules/chart.js/helpers/helpers.cjs +1 -0
- package/qa-dashboard/node_modules/chart.js/helpers/helpers.d.ts +1 -0
- package/qa-dashboard/node_modules/chart.js/helpers/helpers.js +1 -0
- package/qa-dashboard/node_modules/chart.js/helpers/package.json +14 -0
- package/qa-dashboard/node_modules/chart.js/package.json +139 -0
- package/qa-dashboard/node_modules/content-disposition/HISTORY.md +60 -0
- package/qa-dashboard/node_modules/content-disposition/LICENSE +22 -0
- package/qa-dashboard/node_modules/content-disposition/README.md +142 -0
- package/qa-dashboard/node_modules/content-disposition/index.js +458 -0
- package/qa-dashboard/node_modules/content-disposition/package.json +44 -0
- package/qa-dashboard/node_modules/content-type/HISTORY.md +29 -0
- package/qa-dashboard/node_modules/content-type/LICENSE +22 -0
- package/qa-dashboard/node_modules/content-type/README.md +94 -0
- package/qa-dashboard/node_modules/content-type/index.js +225 -0
- package/qa-dashboard/node_modules/content-type/package.json +42 -0
- package/qa-dashboard/node_modules/cookie/LICENSE +24 -0
- package/qa-dashboard/node_modules/cookie/README.md +317 -0
- package/qa-dashboard/node_modules/cookie/SECURITY.md +25 -0
- package/qa-dashboard/node_modules/cookie/index.js +335 -0
- package/qa-dashboard/node_modules/cookie/package.json +44 -0
- package/qa-dashboard/node_modules/cookie-signature/History.md +42 -0
- package/qa-dashboard/node_modules/cookie-signature/Readme.md +42 -0
- package/qa-dashboard/node_modules/cookie-signature/index.js +51 -0
- package/qa-dashboard/node_modules/cookie-signature/package.json +18 -0
- package/qa-dashboard/node_modules/debug/.coveralls.yml +1 -0
- package/qa-dashboard/node_modules/debug/.eslintrc +11 -0
- package/qa-dashboard/node_modules/debug/.travis.yml +14 -0
- package/qa-dashboard/node_modules/debug/CHANGELOG.md +362 -0
- package/qa-dashboard/node_modules/debug/LICENSE +19 -0
- package/qa-dashboard/node_modules/debug/Makefile +50 -0
- package/qa-dashboard/node_modules/debug/README.md +312 -0
- package/qa-dashboard/node_modules/debug/component.json +19 -0
- package/qa-dashboard/node_modules/debug/karma.conf.js +70 -0
- package/qa-dashboard/node_modules/debug/node.js +1 -0
- package/qa-dashboard/node_modules/debug/package.json +49 -0
- package/qa-dashboard/node_modules/debug/src/browser.js +185 -0
- package/qa-dashboard/node_modules/debug/src/debug.js +202 -0
- package/qa-dashboard/node_modules/debug/src/index.js +10 -0
- package/qa-dashboard/node_modules/debug/src/inspector-log.js +15 -0
- package/qa-dashboard/node_modules/debug/src/node.js +248 -0
- package/qa-dashboard/node_modules/depd/History.md +103 -0
- package/qa-dashboard/node_modules/depd/LICENSE +22 -0
- package/qa-dashboard/node_modules/depd/Readme.md +280 -0
- package/qa-dashboard/node_modules/depd/index.js +538 -0
- package/qa-dashboard/node_modules/depd/lib/browser/index.js +77 -0
- package/qa-dashboard/node_modules/depd/package.json +45 -0
- package/qa-dashboard/node_modules/destroy/LICENSE +23 -0
- package/qa-dashboard/node_modules/destroy/README.md +63 -0
- package/qa-dashboard/node_modules/destroy/index.js +209 -0
- package/qa-dashboard/node_modules/destroy/package.json +48 -0
- package/qa-dashboard/node_modules/dotenv/CHANGELOG.md +520 -0
- package/qa-dashboard/node_modules/dotenv/LICENSE +23 -0
- package/qa-dashboard/node_modules/dotenv/README-es.md +411 -0
- package/qa-dashboard/node_modules/dotenv/README.md +645 -0
- package/qa-dashboard/node_modules/dotenv/SECURITY.md +1 -0
- package/qa-dashboard/node_modules/dotenv/config.d.ts +1 -0
- package/qa-dashboard/node_modules/dotenv/config.js +9 -0
- package/qa-dashboard/node_modules/dotenv/lib/cli-options.js +17 -0
- package/qa-dashboard/node_modules/dotenv/lib/env-options.js +28 -0
- package/qa-dashboard/node_modules/dotenv/lib/main.d.ts +162 -0
- package/qa-dashboard/node_modules/dotenv/lib/main.js +386 -0
- package/qa-dashboard/node_modules/dotenv/package.json +62 -0
- package/qa-dashboard/node_modules/dunder-proto/.eslintrc +5 -0
- package/qa-dashboard/node_modules/dunder-proto/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/dunder-proto/.nycrc +13 -0
- package/qa-dashboard/node_modules/dunder-proto/CHANGELOG.md +24 -0
- package/qa-dashboard/node_modules/dunder-proto/LICENSE +21 -0
- package/qa-dashboard/node_modules/dunder-proto/README.md +54 -0
- package/qa-dashboard/node_modules/dunder-proto/get.d.ts +5 -0
- package/qa-dashboard/node_modules/dunder-proto/get.js +30 -0
- package/qa-dashboard/node_modules/dunder-proto/package.json +76 -0
- package/qa-dashboard/node_modules/dunder-proto/set.d.ts +5 -0
- package/qa-dashboard/node_modules/dunder-proto/set.js +35 -0
- package/qa-dashboard/node_modules/dunder-proto/test/get.js +34 -0
- package/qa-dashboard/node_modules/dunder-proto/test/index.js +4 -0
- package/qa-dashboard/node_modules/dunder-proto/test/set.js +50 -0
- package/qa-dashboard/node_modules/dunder-proto/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/ee-first/LICENSE +22 -0
- package/qa-dashboard/node_modules/ee-first/README.md +80 -0
- package/qa-dashboard/node_modules/ee-first/index.js +95 -0
- package/qa-dashboard/node_modules/ee-first/package.json +29 -0
- package/qa-dashboard/node_modules/ejs/LICENSE +202 -0
- package/qa-dashboard/node_modules/ejs/README.md +358 -0
- package/qa-dashboard/node_modules/ejs/bin/cli.js +211 -0
- package/qa-dashboard/node_modules/ejs/ejs.js +1746 -0
- package/qa-dashboard/node_modules/ejs/ejs.min.js +1 -0
- package/qa-dashboard/node_modules/ejs/jakefile.js +88 -0
- package/qa-dashboard/node_modules/ejs/lib/ejs.js +952 -0
- package/qa-dashboard/node_modules/ejs/lib/utils.js +250 -0
- package/qa-dashboard/node_modules/ejs/package.json +42 -0
- package/qa-dashboard/node_modules/ejs/usage.txt +24 -0
- package/qa-dashboard/node_modules/encodeurl/LICENSE +22 -0
- package/qa-dashboard/node_modules/encodeurl/README.md +109 -0
- package/qa-dashboard/node_modules/encodeurl/index.js +60 -0
- package/qa-dashboard/node_modules/encodeurl/package.json +40 -0
- package/qa-dashboard/node_modules/es-define-property/.eslintrc +13 -0
- package/qa-dashboard/node_modules/es-define-property/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/es-define-property/.nycrc +9 -0
- package/qa-dashboard/node_modules/es-define-property/CHANGELOG.md +29 -0
- package/qa-dashboard/node_modules/es-define-property/LICENSE +21 -0
- package/qa-dashboard/node_modules/es-define-property/README.md +49 -0
- package/qa-dashboard/node_modules/es-define-property/index.d.ts +3 -0
- package/qa-dashboard/node_modules/es-define-property/index.js +14 -0
- package/qa-dashboard/node_modules/es-define-property/package.json +81 -0
- package/qa-dashboard/node_modules/es-define-property/test/index.js +56 -0
- package/qa-dashboard/node_modules/es-define-property/tsconfig.json +10 -0
- package/qa-dashboard/node_modules/es-errors/.eslintrc +5 -0
- package/qa-dashboard/node_modules/es-errors/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/es-errors/CHANGELOG.md +40 -0
- package/qa-dashboard/node_modules/es-errors/LICENSE +21 -0
- package/qa-dashboard/node_modules/es-errors/README.md +55 -0
- package/qa-dashboard/node_modules/es-errors/eval.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/eval.js +4 -0
- package/qa-dashboard/node_modules/es-errors/index.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/index.js +4 -0
- package/qa-dashboard/node_modules/es-errors/package.json +80 -0
- package/qa-dashboard/node_modules/es-errors/range.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/range.js +4 -0
- package/qa-dashboard/node_modules/es-errors/ref.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/ref.js +4 -0
- package/qa-dashboard/node_modules/es-errors/syntax.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/syntax.js +4 -0
- package/qa-dashboard/node_modules/es-errors/test/index.js +19 -0
- package/qa-dashboard/node_modules/es-errors/tsconfig.json +49 -0
- package/qa-dashboard/node_modules/es-errors/type.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/type.js +4 -0
- package/qa-dashboard/node_modules/es-errors/uri.d.ts +3 -0
- package/qa-dashboard/node_modules/es-errors/uri.js +4 -0
- package/qa-dashboard/node_modules/es-object-atoms/.eslintrc +16 -0
- package/qa-dashboard/node_modules/es-object-atoms/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/es-object-atoms/CHANGELOG.md +37 -0
- package/qa-dashboard/node_modules/es-object-atoms/LICENSE +21 -0
- package/qa-dashboard/node_modules/es-object-atoms/README.md +63 -0
- package/qa-dashboard/node_modules/es-object-atoms/RequireObjectCoercible.d.ts +3 -0
- package/qa-dashboard/node_modules/es-object-atoms/RequireObjectCoercible.js +11 -0
- package/qa-dashboard/node_modules/es-object-atoms/ToObject.d.ts +7 -0
- package/qa-dashboard/node_modules/es-object-atoms/ToObject.js +10 -0
- package/qa-dashboard/node_modules/es-object-atoms/index.d.ts +3 -0
- package/qa-dashboard/node_modules/es-object-atoms/index.js +4 -0
- package/qa-dashboard/node_modules/es-object-atoms/isObject.d.ts +3 -0
- package/qa-dashboard/node_modules/es-object-atoms/isObject.js +6 -0
- package/qa-dashboard/node_modules/es-object-atoms/package.json +80 -0
- package/qa-dashboard/node_modules/es-object-atoms/test/index.js +38 -0
- package/qa-dashboard/node_modules/es-object-atoms/tsconfig.json +6 -0
- package/qa-dashboard/node_modules/escape-html/LICENSE +24 -0
- package/qa-dashboard/node_modules/escape-html/Readme.md +43 -0
- package/qa-dashboard/node_modules/escape-html/index.js +78 -0
- package/qa-dashboard/node_modules/escape-html/package.json +24 -0
- package/qa-dashboard/node_modules/etag/HISTORY.md +83 -0
- package/qa-dashboard/node_modules/etag/LICENSE +22 -0
- package/qa-dashboard/node_modules/etag/README.md +159 -0
- package/qa-dashboard/node_modules/etag/index.js +131 -0
- package/qa-dashboard/node_modules/etag/package.json +47 -0
- package/qa-dashboard/node_modules/express/History.md +3676 -0
- package/qa-dashboard/node_modules/express/LICENSE +24 -0
- package/qa-dashboard/node_modules/express/Readme.md +260 -0
- package/qa-dashboard/node_modules/express/index.js +11 -0
- package/qa-dashboard/node_modules/express/lib/application.js +661 -0
- package/qa-dashboard/node_modules/express/lib/express.js +116 -0
- package/qa-dashboard/node_modules/express/lib/middleware/init.js +43 -0
- package/qa-dashboard/node_modules/express/lib/middleware/query.js +47 -0
- package/qa-dashboard/node_modules/express/lib/request.js +525 -0
- package/qa-dashboard/node_modules/express/lib/response.js +1179 -0
- package/qa-dashboard/node_modules/express/lib/router/index.js +673 -0
- package/qa-dashboard/node_modules/express/lib/router/layer.js +181 -0
- package/qa-dashboard/node_modules/express/lib/router/route.js +230 -0
- package/qa-dashboard/node_modules/express/lib/utils.js +304 -0
- package/qa-dashboard/node_modules/express/lib/view.js +182 -0
- package/qa-dashboard/node_modules/express/package.json +102 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/.travis.yml +3 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/LICENSE +7 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/Readme.md +266 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/example/index.js +27 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/example/views/layout.ejs +33 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/example/views/view.ejs +37 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/lib/express-layouts.js +117 -0
- package/qa-dashboard/node_modules/express-ejs-layouts/package.json +24 -0
- package/qa-dashboard/node_modules/filelist/README.md +84 -0
- package/qa-dashboard/node_modules/filelist/index.d.ts +110 -0
- package/qa-dashboard/node_modules/filelist/index.js +495 -0
- package/qa-dashboard/node_modules/filelist/jakefile.js +15 -0
- package/qa-dashboard/node_modules/filelist/package.json +28 -0
- package/qa-dashboard/node_modules/finalhandler/HISTORY.md +216 -0
- package/qa-dashboard/node_modules/finalhandler/LICENSE +22 -0
- package/qa-dashboard/node_modules/finalhandler/README.md +147 -0
- package/qa-dashboard/node_modules/finalhandler/SECURITY.md +25 -0
- package/qa-dashboard/node_modules/finalhandler/index.js +341 -0
- package/qa-dashboard/node_modules/finalhandler/package.json +47 -0
- package/qa-dashboard/node_modules/forwarded/HISTORY.md +21 -0
- package/qa-dashboard/node_modules/forwarded/LICENSE +22 -0
- package/qa-dashboard/node_modules/forwarded/README.md +57 -0
- package/qa-dashboard/node_modules/forwarded/index.js +90 -0
- package/qa-dashboard/node_modules/forwarded/package.json +45 -0
- package/qa-dashboard/node_modules/fresh/HISTORY.md +70 -0
- package/qa-dashboard/node_modules/fresh/LICENSE +23 -0
- package/qa-dashboard/node_modules/fresh/README.md +119 -0
- package/qa-dashboard/node_modules/fresh/index.js +137 -0
- package/qa-dashboard/node_modules/fresh/package.json +46 -0
- package/qa-dashboard/node_modules/function-bind/.eslintrc +21 -0
- package/qa-dashboard/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/qa-dashboard/node_modules/function-bind/.nycrc +13 -0
- package/qa-dashboard/node_modules/function-bind/CHANGELOG.md +136 -0
- package/qa-dashboard/node_modules/function-bind/LICENSE +20 -0
- package/qa-dashboard/node_modules/function-bind/README.md +46 -0
- package/qa-dashboard/node_modules/function-bind/implementation.js +84 -0
- package/qa-dashboard/node_modules/function-bind/index.js +5 -0
- package/qa-dashboard/node_modules/function-bind/package.json +87 -0
- package/qa-dashboard/node_modules/function-bind/test/.eslintrc +9 -0
- package/qa-dashboard/node_modules/function-bind/test/index.js +252 -0
- package/qa-dashboard/node_modules/get-intrinsic/.eslintrc +42 -0
- package/qa-dashboard/node_modules/get-intrinsic/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/get-intrinsic/.nycrc +9 -0
- package/qa-dashboard/node_modules/get-intrinsic/CHANGELOG.md +186 -0
- package/qa-dashboard/node_modules/get-intrinsic/LICENSE +21 -0
- package/qa-dashboard/node_modules/get-intrinsic/README.md +71 -0
- package/qa-dashboard/node_modules/get-intrinsic/index.js +378 -0
- package/qa-dashboard/node_modules/get-intrinsic/package.json +97 -0
- package/qa-dashboard/node_modules/get-intrinsic/test/GetIntrinsic.js +274 -0
- package/qa-dashboard/node_modules/get-proto/.eslintrc +10 -0
- package/qa-dashboard/node_modules/get-proto/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/get-proto/.nycrc +9 -0
- package/qa-dashboard/node_modules/get-proto/CHANGELOG.md +21 -0
- package/qa-dashboard/node_modules/get-proto/LICENSE +21 -0
- package/qa-dashboard/node_modules/get-proto/Object.getPrototypeOf.d.ts +5 -0
- package/qa-dashboard/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/qa-dashboard/node_modules/get-proto/README.md +50 -0
- package/qa-dashboard/node_modules/get-proto/Reflect.getPrototypeOf.d.ts +3 -0
- package/qa-dashboard/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/qa-dashboard/node_modules/get-proto/index.d.ts +5 -0
- package/qa-dashboard/node_modules/get-proto/index.js +27 -0
- package/qa-dashboard/node_modules/get-proto/package.json +81 -0
- package/qa-dashboard/node_modules/get-proto/test/index.js +68 -0
- package/qa-dashboard/node_modules/get-proto/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/gopd/.eslintrc +16 -0
- package/qa-dashboard/node_modules/gopd/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/gopd/CHANGELOG.md +45 -0
- package/qa-dashboard/node_modules/gopd/LICENSE +21 -0
- package/qa-dashboard/node_modules/gopd/README.md +40 -0
- package/qa-dashboard/node_modules/gopd/gOPD.d.ts +1 -0
- package/qa-dashboard/node_modules/gopd/gOPD.js +4 -0
- package/qa-dashboard/node_modules/gopd/index.d.ts +5 -0
- package/qa-dashboard/node_modules/gopd/index.js +15 -0
- package/qa-dashboard/node_modules/gopd/package.json +77 -0
- package/qa-dashboard/node_modules/gopd/test/index.js +36 -0
- package/qa-dashboard/node_modules/gopd/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/has-symbols/.eslintrc +11 -0
- package/qa-dashboard/node_modules/has-symbols/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/has-symbols/.nycrc +9 -0
- package/qa-dashboard/node_modules/has-symbols/CHANGELOG.md +91 -0
- package/qa-dashboard/node_modules/has-symbols/LICENSE +21 -0
- package/qa-dashboard/node_modules/has-symbols/README.md +46 -0
- package/qa-dashboard/node_modules/has-symbols/index.d.ts +3 -0
- package/qa-dashboard/node_modules/has-symbols/index.js +14 -0
- package/qa-dashboard/node_modules/has-symbols/package.json +111 -0
- package/qa-dashboard/node_modules/has-symbols/shams.d.ts +3 -0
- package/qa-dashboard/node_modules/has-symbols/shams.js +45 -0
- package/qa-dashboard/node_modules/has-symbols/test/index.js +22 -0
- package/qa-dashboard/node_modules/has-symbols/test/shams/core-js.js +29 -0
- package/qa-dashboard/node_modules/has-symbols/test/shams/get-own-property-symbols.js +29 -0
- package/qa-dashboard/node_modules/has-symbols/test/tests.js +58 -0
- package/qa-dashboard/node_modules/has-symbols/tsconfig.json +10 -0
- package/qa-dashboard/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/hasown/.nycrc +13 -0
- package/qa-dashboard/node_modules/hasown/CHANGELOG.md +51 -0
- package/qa-dashboard/node_modules/hasown/LICENSE +21 -0
- package/qa-dashboard/node_modules/hasown/README.md +40 -0
- package/qa-dashboard/node_modules/hasown/eslint.config.mjs +6 -0
- package/qa-dashboard/node_modules/hasown/index.d.ts +4 -0
- package/qa-dashboard/node_modules/hasown/index.js +8 -0
- package/qa-dashboard/node_modules/hasown/package.json +92 -0
- package/qa-dashboard/node_modules/hasown/tsconfig.json +6 -0
- package/qa-dashboard/node_modules/http-errors/HISTORY.md +186 -0
- package/qa-dashboard/node_modules/http-errors/LICENSE +23 -0
- package/qa-dashboard/node_modules/http-errors/README.md +169 -0
- package/qa-dashboard/node_modules/http-errors/index.js +290 -0
- package/qa-dashboard/node_modules/http-errors/package.json +54 -0
- package/qa-dashboard/node_modules/iconv-lite/Changelog.md +162 -0
- package/qa-dashboard/node_modules/iconv-lite/LICENSE +21 -0
- package/qa-dashboard/node_modules/iconv-lite/README.md +156 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/dbcs-codec.js +555 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/dbcs-data.js +176 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/index.js +22 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/internal.js +188 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/sbcs-codec.js +72 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/sbcs-data-generated.js +451 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/sbcs-data.js +174 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/big5-added.json +122 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/cp936.json +264 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/cp949.json +273 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/cp950.json +177 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/eucjp.json +182 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json +1 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/gbk-added.json +55 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/tables/shiftjis.json +125 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/utf16.js +177 -0
- package/qa-dashboard/node_modules/iconv-lite/encodings/utf7.js +290 -0
- package/qa-dashboard/node_modules/iconv-lite/lib/bom-handling.js +52 -0
- package/qa-dashboard/node_modules/iconv-lite/lib/extend-node.js +217 -0
- package/qa-dashboard/node_modules/iconv-lite/lib/index.d.ts +24 -0
- package/qa-dashboard/node_modules/iconv-lite/lib/index.js +153 -0
- package/qa-dashboard/node_modules/iconv-lite/lib/streams.js +121 -0
- package/qa-dashboard/node_modules/iconv-lite/package.json +46 -0
- package/qa-dashboard/node_modules/inherits/LICENSE +16 -0
- package/qa-dashboard/node_modules/inherits/README.md +42 -0
- package/qa-dashboard/node_modules/inherits/inherits.js +9 -0
- package/qa-dashboard/node_modules/inherits/inherits_browser.js +27 -0
- package/qa-dashboard/node_modules/inherits/package.json +29 -0
- package/qa-dashboard/node_modules/ipaddr.js/LICENSE +19 -0
- package/qa-dashboard/node_modules/ipaddr.js/README.md +233 -0
- package/qa-dashboard/node_modules/ipaddr.js/ipaddr.min.js +1 -0
- package/qa-dashboard/node_modules/ipaddr.js/lib/ipaddr.js +673 -0
- package/qa-dashboard/node_modules/ipaddr.js/lib/ipaddr.js.d.ts +68 -0
- package/qa-dashboard/node_modules/ipaddr.js/package.json +35 -0
- package/qa-dashboard/node_modules/jake/Makefile +44 -0
- package/qa-dashboard/node_modules/jake/README.md +17 -0
- package/qa-dashboard/node_modules/jake/bin/bash_completion.sh +41 -0
- package/qa-dashboard/node_modules/jake/bin/cli.js +31 -0
- package/qa-dashboard/node_modules/jake/jakefile.js +112 -0
- package/qa-dashboard/node_modules/jake/lib/api.js +409 -0
- package/qa-dashboard/node_modules/jake/lib/jake.js +330 -0
- package/qa-dashboard/node_modules/jake/lib/loader.js +174 -0
- package/qa-dashboard/node_modules/jake/lib/namespace.js +115 -0
- package/qa-dashboard/node_modules/jake/lib/package_task.js +406 -0
- package/qa-dashboard/node_modules/jake/lib/parseargs.js +134 -0
- package/qa-dashboard/node_modules/jake/lib/program.js +282 -0
- package/qa-dashboard/node_modules/jake/lib/publish_task.js +290 -0
- package/qa-dashboard/node_modules/jake/lib/rule.js +311 -0
- package/qa-dashboard/node_modules/jake/lib/task/directory_task.js +30 -0
- package/qa-dashboard/node_modules/jake/lib/task/file_task.js +126 -0
- package/qa-dashboard/node_modules/jake/lib/task/index.js +9 -0
- package/qa-dashboard/node_modules/jake/lib/task/task.js +458 -0
- package/qa-dashboard/node_modules/jake/lib/test_task.js +270 -0
- package/qa-dashboard/node_modules/jake/lib/utils/file.js +286 -0
- package/qa-dashboard/node_modules/jake/lib/utils/index.js +297 -0
- package/qa-dashboard/node_modules/jake/lib/utils/logger.js +24 -0
- package/qa-dashboard/node_modules/jake/package.json +44 -0
- package/qa-dashboard/node_modules/jake/test/integration/concurrent.js +45 -0
- package/qa-dashboard/node_modules/jake/test/integration/file.js +228 -0
- package/qa-dashboard/node_modules/jake/test/integration/file_task.js +141 -0
- package/qa-dashboard/node_modules/jake/test/integration/helpers.js +80 -0
- package/qa-dashboard/node_modules/jake/test/integration/jakefile.js +352 -0
- package/qa-dashboard/node_modules/jake/test/integration/jakelib/concurrent.jake.js +113 -0
- package/qa-dashboard/node_modules/jake/test/integration/jakelib/publish.jake.js +49 -0
- package/qa-dashboard/node_modules/jake/test/integration/jakelib/required_module.jake.js +10 -0
- package/qa-dashboard/node_modules/jake/test/integration/jakelib/rule.jake.js +222 -0
- package/qa-dashboard/node_modules/jake/test/integration/list_tasks.js +15 -0
- package/qa-dashboard/node_modules/jake/test/integration/publish_task.js +27 -0
- package/qa-dashboard/node_modules/jake/test/integration/rule.js +217 -0
- package/qa-dashboard/node_modules/jake/test/integration/selfdep.js +42 -0
- package/qa-dashboard/node_modules/jake/test/integration/task_base.js +167 -0
- package/qa-dashboard/node_modules/jake/test/unit/jakefile.js +36 -0
- package/qa-dashboard/node_modules/jake/test/unit/namespace.js +77 -0
- package/qa-dashboard/node_modules/jake/test/unit/parseargs.js +169 -0
- package/qa-dashboard/node_modules/jake/usage.txt +17 -0
- package/qa-dashboard/node_modules/math-intrinsics/.eslintrc +16 -0
- package/qa-dashboard/node_modules/math-intrinsics/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/math-intrinsics/CHANGELOG.md +24 -0
- package/qa-dashboard/node_modules/math-intrinsics/LICENSE +21 -0
- package/qa-dashboard/node_modules/math-intrinsics/README.md +50 -0
- package/qa-dashboard/node_modules/math-intrinsics/abs.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/abs.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/constants/maxArrayLength.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/constants/maxArrayLength.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/constants/maxSafeInteger.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/constants/maxSafeInteger.js +5 -0
- package/qa-dashboard/node_modules/math-intrinsics/constants/maxValue.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/constants/maxValue.js +5 -0
- package/qa-dashboard/node_modules/math-intrinsics/floor.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/floor.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/isFinite.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/isFinite.js +12 -0
- package/qa-dashboard/node_modules/math-intrinsics/isInteger.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/isInteger.js +16 -0
- package/qa-dashboard/node_modules/math-intrinsics/isNaN.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/isNaN.js +6 -0
- package/qa-dashboard/node_modules/math-intrinsics/isNegativeZero.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/isNegativeZero.js +6 -0
- package/qa-dashboard/node_modules/math-intrinsics/max.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/max.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/min.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/min.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/mod.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/mod.js +9 -0
- package/qa-dashboard/node_modules/math-intrinsics/package.json +86 -0
- package/qa-dashboard/node_modules/math-intrinsics/pow.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/pow.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/round.d.ts +1 -0
- package/qa-dashboard/node_modules/math-intrinsics/round.js +4 -0
- package/qa-dashboard/node_modules/math-intrinsics/sign.d.ts +3 -0
- package/qa-dashboard/node_modules/math-intrinsics/sign.js +11 -0
- package/qa-dashboard/node_modules/math-intrinsics/test/index.js +192 -0
- package/qa-dashboard/node_modules/math-intrinsics/tsconfig.json +3 -0
- package/qa-dashboard/node_modules/media-typer/HISTORY.md +22 -0
- package/qa-dashboard/node_modules/media-typer/LICENSE +22 -0
- package/qa-dashboard/node_modules/media-typer/README.md +81 -0
- package/qa-dashboard/node_modules/media-typer/index.js +270 -0
- package/qa-dashboard/node_modules/media-typer/package.json +26 -0
- package/qa-dashboard/node_modules/merge-descriptors/HISTORY.md +21 -0
- package/qa-dashboard/node_modules/merge-descriptors/LICENSE +23 -0
- package/qa-dashboard/node_modules/merge-descriptors/README.md +49 -0
- package/qa-dashboard/node_modules/merge-descriptors/index.js +60 -0
- package/qa-dashboard/node_modules/merge-descriptors/package.json +39 -0
- package/qa-dashboard/node_modules/methods/HISTORY.md +29 -0
- package/qa-dashboard/node_modules/methods/LICENSE +24 -0
- package/qa-dashboard/node_modules/methods/README.md +51 -0
- package/qa-dashboard/node_modules/methods/index.js +69 -0
- package/qa-dashboard/node_modules/methods/package.json +36 -0
- package/qa-dashboard/node_modules/mime/CHANGELOG.md +164 -0
- package/qa-dashboard/node_modules/mime/LICENSE +21 -0
- package/qa-dashboard/node_modules/mime/README.md +90 -0
- package/qa-dashboard/node_modules/mime/cli.js +8 -0
- package/qa-dashboard/node_modules/mime/mime.js +108 -0
- package/qa-dashboard/node_modules/mime/package.json +44 -0
- package/qa-dashboard/node_modules/mime/src/build.js +53 -0
- package/qa-dashboard/node_modules/mime/src/test.js +60 -0
- package/qa-dashboard/node_modules/mime/types.json +1 -0
- package/qa-dashboard/node_modules/mime-db/HISTORY.md +507 -0
- package/qa-dashboard/node_modules/mime-db/LICENSE +23 -0
- package/qa-dashboard/node_modules/mime-db/README.md +100 -0
- package/qa-dashboard/node_modules/mime-db/db.json +8519 -0
- package/qa-dashboard/node_modules/mime-db/index.js +12 -0
- package/qa-dashboard/node_modules/mime-db/package.json +60 -0
- package/qa-dashboard/node_modules/mime-types/HISTORY.md +397 -0
- package/qa-dashboard/node_modules/mime-types/LICENSE +23 -0
- package/qa-dashboard/node_modules/mime-types/README.md +113 -0
- package/qa-dashboard/node_modules/mime-types/index.js +188 -0
- package/qa-dashboard/node_modules/mime-types/package.json +44 -0
- package/qa-dashboard/node_modules/minimatch/LICENSE +15 -0
- package/qa-dashboard/node_modules/minimatch/README.md +296 -0
- package/qa-dashboard/node_modules/minimatch/changelog.md +35 -0
- package/qa-dashboard/node_modules/minimatch/lib/path.js +4 -0
- package/qa-dashboard/node_modules/minimatch/minimatch.js +996 -0
- package/qa-dashboard/node_modules/minimatch/package.json +35 -0
- package/qa-dashboard/node_modules/morgan/HISTORY.md +221 -0
- package/qa-dashboard/node_modules/morgan/LICENSE +23 -0
- package/qa-dashboard/node_modules/morgan/README.md +436 -0
- package/qa-dashboard/node_modules/morgan/index.js +544 -0
- package/qa-dashboard/node_modules/morgan/node_modules/on-finished/HISTORY.md +88 -0
- package/qa-dashboard/node_modules/morgan/node_modules/on-finished/LICENSE +23 -0
- package/qa-dashboard/node_modules/morgan/node_modules/on-finished/README.md +154 -0
- package/qa-dashboard/node_modules/morgan/node_modules/on-finished/index.js +196 -0
- package/qa-dashboard/node_modules/morgan/node_modules/on-finished/package.json +31 -0
- package/qa-dashboard/node_modules/morgan/package.json +52 -0
- package/qa-dashboard/node_modules/ms/index.js +152 -0
- package/qa-dashboard/node_modules/ms/license.md +21 -0
- package/qa-dashboard/node_modules/ms/package.json +37 -0
- package/qa-dashboard/node_modules/ms/readme.md +51 -0
- package/qa-dashboard/node_modules/negotiator/HISTORY.md +108 -0
- package/qa-dashboard/node_modules/negotiator/LICENSE +24 -0
- package/qa-dashboard/node_modules/negotiator/README.md +203 -0
- package/qa-dashboard/node_modules/negotiator/index.js +82 -0
- package/qa-dashboard/node_modules/negotiator/lib/charset.js +169 -0
- package/qa-dashboard/node_modules/negotiator/lib/encoding.js +184 -0
- package/qa-dashboard/node_modules/negotiator/lib/language.js +179 -0
- package/qa-dashboard/node_modules/negotiator/lib/mediaType.js +294 -0
- package/qa-dashboard/node_modules/negotiator/package.json +42 -0
- package/qa-dashboard/node_modules/object-inspect/.eslintrc +53 -0
- package/qa-dashboard/node_modules/object-inspect/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/object-inspect/.nycrc +13 -0
- package/qa-dashboard/node_modules/object-inspect/CHANGELOG.md +424 -0
- package/qa-dashboard/node_modules/object-inspect/LICENSE +21 -0
- package/qa-dashboard/node_modules/object-inspect/example/all.js +23 -0
- package/qa-dashboard/node_modules/object-inspect/example/circular.js +6 -0
- package/qa-dashboard/node_modules/object-inspect/example/fn.js +5 -0
- package/qa-dashboard/node_modules/object-inspect/example/inspect.js +10 -0
- package/qa-dashboard/node_modules/object-inspect/index.js +544 -0
- package/qa-dashboard/node_modules/object-inspect/package-support.json +20 -0
- package/qa-dashboard/node_modules/object-inspect/package.json +105 -0
- package/qa-dashboard/node_modules/object-inspect/readme.markdown +84 -0
- package/qa-dashboard/node_modules/object-inspect/test/bigint.js +58 -0
- package/qa-dashboard/node_modules/object-inspect/test/browser/dom.js +15 -0
- package/qa-dashboard/node_modules/object-inspect/test/circular.js +16 -0
- package/qa-dashboard/node_modules/object-inspect/test/deep.js +12 -0
- package/qa-dashboard/node_modules/object-inspect/test/element.js +53 -0
- package/qa-dashboard/node_modules/object-inspect/test/err.js +48 -0
- package/qa-dashboard/node_modules/object-inspect/test/fakes.js +29 -0
- package/qa-dashboard/node_modules/object-inspect/test/fn.js +76 -0
- package/qa-dashboard/node_modules/object-inspect/test/global.js +17 -0
- package/qa-dashboard/node_modules/object-inspect/test/has.js +15 -0
- package/qa-dashboard/node_modules/object-inspect/test/holes.js +15 -0
- package/qa-dashboard/node_modules/object-inspect/test/indent-option.js +271 -0
- package/qa-dashboard/node_modules/object-inspect/test/inspect.js +139 -0
- package/qa-dashboard/node_modules/object-inspect/test/lowbyte.js +12 -0
- package/qa-dashboard/node_modules/object-inspect/test/number.js +58 -0
- package/qa-dashboard/node_modules/object-inspect/test/quoteStyle.js +26 -0
- package/qa-dashboard/node_modules/object-inspect/test/toStringTag.js +40 -0
- package/qa-dashboard/node_modules/object-inspect/test/undef.js +12 -0
- package/qa-dashboard/node_modules/object-inspect/test/values.js +261 -0
- package/qa-dashboard/node_modules/object-inspect/test-core-js.js +26 -0
- package/qa-dashboard/node_modules/object-inspect/util.inspect.js +1 -0
- package/qa-dashboard/node_modules/on-finished/HISTORY.md +98 -0
- package/qa-dashboard/node_modules/on-finished/LICENSE +23 -0
- package/qa-dashboard/node_modules/on-finished/README.md +162 -0
- package/qa-dashboard/node_modules/on-finished/index.js +234 -0
- package/qa-dashboard/node_modules/on-finished/package.json +39 -0
- package/qa-dashboard/node_modules/on-headers/HISTORY.md +26 -0
- package/qa-dashboard/node_modules/on-headers/LICENSE +22 -0
- package/qa-dashboard/node_modules/on-headers/README.md +81 -0
- package/qa-dashboard/node_modules/on-headers/index.js +180 -0
- package/qa-dashboard/node_modules/on-headers/package.json +44 -0
- package/qa-dashboard/node_modules/parseurl/HISTORY.md +58 -0
- package/qa-dashboard/node_modules/parseurl/LICENSE +24 -0
- package/qa-dashboard/node_modules/parseurl/README.md +133 -0
- package/qa-dashboard/node_modules/parseurl/index.js +158 -0
- package/qa-dashboard/node_modules/parseurl/package.json +40 -0
- package/qa-dashboard/node_modules/path-to-regexp/LICENSE +21 -0
- package/qa-dashboard/node_modules/path-to-regexp/Readme.md +35 -0
- package/qa-dashboard/node_modules/path-to-regexp/index.js +158 -0
- package/qa-dashboard/node_modules/path-to-regexp/package.json +30 -0
- package/qa-dashboard/node_modules/picocolors/LICENSE +15 -0
- package/qa-dashboard/node_modules/picocolors/README.md +21 -0
- package/qa-dashboard/node_modules/picocolors/package.json +25 -0
- package/qa-dashboard/node_modules/picocolors/picocolors.browser.js +4 -0
- package/qa-dashboard/node_modules/picocolors/picocolors.d.ts +5 -0
- package/qa-dashboard/node_modules/picocolors/picocolors.js +75 -0
- package/qa-dashboard/node_modules/picocolors/types.d.ts +51 -0
- package/qa-dashboard/node_modules/proxy-addr/HISTORY.md +161 -0
- package/qa-dashboard/node_modules/proxy-addr/LICENSE +22 -0
- package/qa-dashboard/node_modules/proxy-addr/README.md +139 -0
- package/qa-dashboard/node_modules/proxy-addr/index.js +327 -0
- package/qa-dashboard/node_modules/proxy-addr/package.json +47 -0
- package/qa-dashboard/node_modules/qs/.editorconfig +46 -0
- package/qa-dashboard/node_modules/qs/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/qs/.github/SECURITY.md +11 -0
- package/qa-dashboard/node_modules/qs/.github/THREAT_MODEL.md +78 -0
- package/qa-dashboard/node_modules/qs/.nycrc +13 -0
- package/qa-dashboard/node_modules/qs/CHANGELOG.md +822 -0
- package/qa-dashboard/node_modules/qs/LICENSE.md +29 -0
- package/qa-dashboard/node_modules/qs/README.md +758 -0
- package/qa-dashboard/node_modules/qs/dist/qs.js +141 -0
- package/qa-dashboard/node_modules/qs/eslint.config.mjs +57 -0
- package/qa-dashboard/node_modules/qs/lib/formats.js +23 -0
- package/qa-dashboard/node_modules/qs/lib/index.js +11 -0
- package/qa-dashboard/node_modules/qs/lib/parse.js +403 -0
- package/qa-dashboard/node_modules/qs/lib/stringify.js +363 -0
- package/qa-dashboard/node_modules/qs/lib/utils.js +342 -0
- package/qa-dashboard/node_modules/qs/package.json +94 -0
- package/qa-dashboard/node_modules/qs/test/empty-keys-cases.js +267 -0
- package/qa-dashboard/node_modules/qs/test/parse.js +1703 -0
- package/qa-dashboard/node_modules/qs/test/stringify.js +1448 -0
- package/qa-dashboard/node_modules/qs/test/utils.js +432 -0
- package/qa-dashboard/node_modules/range-parser/HISTORY.md +56 -0
- package/qa-dashboard/node_modules/range-parser/LICENSE +23 -0
- package/qa-dashboard/node_modules/range-parser/README.md +84 -0
- package/qa-dashboard/node_modules/range-parser/index.js +162 -0
- package/qa-dashboard/node_modules/range-parser/package.json +44 -0
- package/qa-dashboard/node_modules/raw-body/LICENSE +22 -0
- package/qa-dashboard/node_modules/raw-body/README.md +223 -0
- package/qa-dashboard/node_modules/raw-body/index.d.ts +87 -0
- package/qa-dashboard/node_modules/raw-body/index.js +336 -0
- package/qa-dashboard/node_modules/raw-body/package.json +47 -0
- package/qa-dashboard/node_modules/safe-buffer/LICENSE +21 -0
- package/qa-dashboard/node_modules/safe-buffer/README.md +584 -0
- package/qa-dashboard/node_modules/safe-buffer/index.d.ts +187 -0
- package/qa-dashboard/node_modules/safe-buffer/index.js +65 -0
- package/qa-dashboard/node_modules/safe-buffer/package.json +51 -0
- package/qa-dashboard/node_modules/safer-buffer/LICENSE +21 -0
- package/qa-dashboard/node_modules/safer-buffer/Porting-Buffer.md +268 -0
- package/qa-dashboard/node_modules/safer-buffer/Readme.md +156 -0
- package/qa-dashboard/node_modules/safer-buffer/dangerous.js +58 -0
- package/qa-dashboard/node_modules/safer-buffer/package.json +34 -0
- package/qa-dashboard/node_modules/safer-buffer/safer.js +77 -0
- package/qa-dashboard/node_modules/safer-buffer/tests.js +406 -0
- package/qa-dashboard/node_modules/send/HISTORY.md +538 -0
- package/qa-dashboard/node_modules/send/LICENSE +23 -0
- package/qa-dashboard/node_modules/send/README.md +327 -0
- package/qa-dashboard/node_modules/send/SECURITY.md +24 -0
- package/qa-dashboard/node_modules/send/index.js +1142 -0
- package/qa-dashboard/node_modules/send/node_modules/ms/index.js +162 -0
- package/qa-dashboard/node_modules/send/node_modules/ms/license.md +21 -0
- package/qa-dashboard/node_modules/send/node_modules/ms/package.json +38 -0
- package/qa-dashboard/node_modules/send/node_modules/ms/readme.md +59 -0
- package/qa-dashboard/node_modules/send/package.json +62 -0
- package/qa-dashboard/node_modules/serve-static/HISTORY.md +493 -0
- package/qa-dashboard/node_modules/serve-static/LICENSE +25 -0
- package/qa-dashboard/node_modules/serve-static/README.md +257 -0
- package/qa-dashboard/node_modules/serve-static/index.js +209 -0
- package/qa-dashboard/node_modules/serve-static/package.json +42 -0
- package/qa-dashboard/node_modules/setprototypeof/LICENSE +13 -0
- package/qa-dashboard/node_modules/setprototypeof/README.md +31 -0
- package/qa-dashboard/node_modules/setprototypeof/index.d.ts +2 -0
- package/qa-dashboard/node_modules/setprototypeof/index.js +17 -0
- package/qa-dashboard/node_modules/setprototypeof/package.json +38 -0
- package/qa-dashboard/node_modules/setprototypeof/test/index.js +24 -0
- package/qa-dashboard/node_modules/side-channel/.editorconfig +9 -0
- package/qa-dashboard/node_modules/side-channel/.eslintrc +12 -0
- package/qa-dashboard/node_modules/side-channel/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/side-channel/.nycrc +13 -0
- package/qa-dashboard/node_modules/side-channel/CHANGELOG.md +110 -0
- package/qa-dashboard/node_modules/side-channel/LICENSE +21 -0
- package/qa-dashboard/node_modules/side-channel/README.md +61 -0
- package/qa-dashboard/node_modules/side-channel/index.d.ts +14 -0
- package/qa-dashboard/node_modules/side-channel/index.js +43 -0
- package/qa-dashboard/node_modules/side-channel/package.json +85 -0
- package/qa-dashboard/node_modules/side-channel/test/index.js +104 -0
- package/qa-dashboard/node_modules/side-channel/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/side-channel-list/.editorconfig +9 -0
- package/qa-dashboard/node_modules/side-channel-list/.eslintrc +11 -0
- package/qa-dashboard/node_modules/side-channel-list/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/side-channel-list/.nycrc +13 -0
- package/qa-dashboard/node_modules/side-channel-list/CHANGELOG.md +36 -0
- package/qa-dashboard/node_modules/side-channel-list/LICENSE +21 -0
- package/qa-dashboard/node_modules/side-channel-list/README.md +62 -0
- package/qa-dashboard/node_modules/side-channel-list/index.d.ts +13 -0
- package/qa-dashboard/node_modules/side-channel-list/index.js +111 -0
- package/qa-dashboard/node_modules/side-channel-list/list.d.ts +14 -0
- package/qa-dashboard/node_modules/side-channel-list/package.json +77 -0
- package/qa-dashboard/node_modules/side-channel-list/test/index.js +154 -0
- package/qa-dashboard/node_modules/side-channel-list/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/side-channel-map/.editorconfig +9 -0
- package/qa-dashboard/node_modules/side-channel-map/.eslintrc +11 -0
- package/qa-dashboard/node_modules/side-channel-map/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/side-channel-map/.nycrc +13 -0
- package/qa-dashboard/node_modules/side-channel-map/CHANGELOG.md +22 -0
- package/qa-dashboard/node_modules/side-channel-map/LICENSE +21 -0
- package/qa-dashboard/node_modules/side-channel-map/README.md +62 -0
- package/qa-dashboard/node_modules/side-channel-map/index.d.ts +15 -0
- package/qa-dashboard/node_modules/side-channel-map/index.js +68 -0
- package/qa-dashboard/node_modules/side-channel-map/package.json +80 -0
- package/qa-dashboard/node_modules/side-channel-map/test/index.js +114 -0
- package/qa-dashboard/node_modules/side-channel-map/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/.editorconfig +9 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/.eslintrc +12 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/.github/FUNDING.yml +12 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/.nycrc +13 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/CHANGELOG.md +28 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/LICENSE +21 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/README.md +62 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/index.d.ts +15 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/index.js +84 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/package.json +87 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/test/index.js +114 -0
- package/qa-dashboard/node_modules/side-channel-weakmap/tsconfig.json +9 -0
- package/qa-dashboard/node_modules/statuses/HISTORY.md +87 -0
- package/qa-dashboard/node_modules/statuses/LICENSE +23 -0
- package/qa-dashboard/node_modules/statuses/README.md +139 -0
- package/qa-dashboard/node_modules/statuses/codes.json +65 -0
- package/qa-dashboard/node_modules/statuses/index.js +146 -0
- package/qa-dashboard/node_modules/statuses/package.json +49 -0
- package/qa-dashboard/node_modules/toidentifier/HISTORY.md +9 -0
- package/qa-dashboard/node_modules/toidentifier/LICENSE +21 -0
- package/qa-dashboard/node_modules/toidentifier/README.md +61 -0
- package/qa-dashboard/node_modules/toidentifier/index.js +32 -0
- package/qa-dashboard/node_modules/toidentifier/package.json +38 -0
- package/qa-dashboard/node_modules/type-is/HISTORY.md +259 -0
- package/qa-dashboard/node_modules/type-is/LICENSE +23 -0
- package/qa-dashboard/node_modules/type-is/README.md +170 -0
- package/qa-dashboard/node_modules/type-is/index.js +266 -0
- package/qa-dashboard/node_modules/type-is/package.json +45 -0
- package/qa-dashboard/node_modules/unpipe/HISTORY.md +4 -0
- package/qa-dashboard/node_modules/unpipe/LICENSE +22 -0
- package/qa-dashboard/node_modules/unpipe/README.md +43 -0
- package/qa-dashboard/node_modules/unpipe/index.js +69 -0
- package/qa-dashboard/node_modules/unpipe/package.json +27 -0
- package/qa-dashboard/node_modules/utils-merge/LICENSE +20 -0
- package/qa-dashboard/node_modules/utils-merge/README.md +34 -0
- package/qa-dashboard/node_modules/utils-merge/index.js +23 -0
- package/qa-dashboard/node_modules/utils-merge/package.json +40 -0
- package/qa-dashboard/node_modules/vary/HISTORY.md +39 -0
- package/qa-dashboard/node_modules/vary/LICENSE +22 -0
- package/qa-dashboard/node_modules/vary/README.md +101 -0
- package/qa-dashboard/node_modules/vary/index.js +149 -0
- package/qa-dashboard/node_modules/vary/package.json +43 -0
- package/qa-dashboard/views/stories.ejs +2 -2
- package/qa-dashboard/views/story.ejs +3 -6
- package/test-results/run-2026-05-18T14-50-14/execution-output.json +3 -0
- package/test-results/run-2026-05-18T14-50-43/execution-output.json +2 -0
- package/test-results/run-2026-05-18T14-50-43/execution-result.json +11 -0
- package/test-results/run-2026-05-18T14-50-43/final-test-report.md +42 -0
- package/test-results/run-2026-05-18T14-50-43/healing-report.json +15 -0
- package/test-results/run-2026-05-18T14-51-36/execution-output.json +2 -0
- package/test-results/run-2026-05-18T14-51-36/execution-result.json +11 -0
- package/test-results/run-2026-05-18T14-51-36/final-test-report.md +42 -0
- package/test-results/run-2026-05-18T14-51-36/healing-report.json +15 -0
- package/.opencode/agents/qa-generator.md +0 -19
- package/.opencode/agents/qa-healer.md +0 -25
- package/.opencode/agents/qa-planner.md +0 -20
- package/.qa-workflow.json +0 -22
- package/DESIGN.md +0 -0
- package/opencode.json +0 -31
- package/specs/us-expense-01-test-plan.md +0 -55
|
@@ -0,0 +1,952 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* EJS Embedded JavaScript templates
|
|
3
|
+
* Copyright 2112 Matthew Eernisse (mde@fleegix.org)
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
* See the License for the specific language governing permissions and
|
|
15
|
+
* limitations under the License.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
|
|
19
|
+
'use strict';
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* @file Embedded JavaScript templating engine. {@link http://ejs.co}
|
|
23
|
+
* @author Matthew Eernisse <mde@fleegix.org>
|
|
24
|
+
* @author Tiancheng "Timothy" Gu <timothygu99@gmail.com>
|
|
25
|
+
* @project EJS
|
|
26
|
+
* @license {@link http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0}
|
|
27
|
+
*/
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* EJS internal functions.
|
|
31
|
+
*
|
|
32
|
+
* Technically this "module" lies in the same file as {@link module:ejs}, for
|
|
33
|
+
* the sake of organization all the private functions re grouped into this
|
|
34
|
+
* module.
|
|
35
|
+
*
|
|
36
|
+
* @module ejs-internal
|
|
37
|
+
* @private
|
|
38
|
+
*/
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Embedded JavaScript templating engine.
|
|
42
|
+
*
|
|
43
|
+
* @module ejs
|
|
44
|
+
* @public
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
var fs = require('fs');
|
|
49
|
+
var path = require('path');
|
|
50
|
+
var utils = require('./utils');
|
|
51
|
+
|
|
52
|
+
var scopeOptionWarned = false;
|
|
53
|
+
/** @type {string} */
|
|
54
|
+
var _VERSION_STRING = require('../package.json').version;
|
|
55
|
+
var _DEFAULT_OPEN_DELIMITER = '<';
|
|
56
|
+
var _DEFAULT_CLOSE_DELIMITER = '>';
|
|
57
|
+
var _DEFAULT_DELIMITER = '%';
|
|
58
|
+
var _DEFAULT_LOCALS_NAME = 'locals';
|
|
59
|
+
var _NAME = 'ejs';
|
|
60
|
+
var _REGEX_STRING = '(<%%|%%>|<%=|<%-|<%_|<%#|<%|%>|-%>|_%>)';
|
|
61
|
+
var _OPTS_PASSABLE_WITH_DATA = ['delimiter', 'scope', 'context', 'debug', 'compileDebug',
|
|
62
|
+
'client', '_with', 'rmWhitespace', 'strict', 'filename', 'async'];
|
|
63
|
+
// We don't allow 'cache' option to be passed in the data obj for
|
|
64
|
+
// the normal `render` call, but this is where Express 2 & 3 put it
|
|
65
|
+
// so we make an exception for `renderFile`
|
|
66
|
+
var _OPTS_PASSABLE_WITH_DATA_EXPRESS = _OPTS_PASSABLE_WITH_DATA.concat('cache');
|
|
67
|
+
var _BOM = /^\uFEFF/;
|
|
68
|
+
var _JS_IDENTIFIER = /^[a-zA-Z_$][0-9a-zA-Z_$]*$/;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* EJS template function cache. This can be a LRU object from lru-cache NPM
|
|
72
|
+
* module. By default, it is {@link module:utils.cache}, a simple in-process
|
|
73
|
+
* cache that grows continuously.
|
|
74
|
+
*
|
|
75
|
+
* @type {Cache}
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
exports.cache = utils.cache;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Custom file loader. Useful for template preprocessing or restricting access
|
|
82
|
+
* to a certain part of the filesystem.
|
|
83
|
+
*
|
|
84
|
+
* @type {fileLoader}
|
|
85
|
+
*/
|
|
86
|
+
|
|
87
|
+
exports.fileLoader = fs.readFileSync;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Name of the object containing the locals.
|
|
91
|
+
*
|
|
92
|
+
* This variable is overridden by {@link Options}`.localsName` if it is not
|
|
93
|
+
* `undefined`.
|
|
94
|
+
*
|
|
95
|
+
* @type {String}
|
|
96
|
+
* @public
|
|
97
|
+
*/
|
|
98
|
+
|
|
99
|
+
exports.localsName = _DEFAULT_LOCALS_NAME;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Promise implementation -- defaults to the native implementation if available
|
|
103
|
+
* This is mostly just for testability
|
|
104
|
+
*
|
|
105
|
+
* @type {PromiseConstructorLike}
|
|
106
|
+
* @public
|
|
107
|
+
*/
|
|
108
|
+
|
|
109
|
+
exports.promiseImpl = (new Function('return this;'))().Promise;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Get the path to the included file from the parent file path and the
|
|
113
|
+
* specified path.
|
|
114
|
+
*
|
|
115
|
+
* @param {String} name specified path
|
|
116
|
+
* @param {String} filename parent file path
|
|
117
|
+
* @param {Boolean} [isDir=false] whether the parent file path is a directory
|
|
118
|
+
* @return {String}
|
|
119
|
+
*/
|
|
120
|
+
exports.resolveInclude = function(name, filename, isDir) {
|
|
121
|
+
var dirname = path.dirname;
|
|
122
|
+
var extname = path.extname;
|
|
123
|
+
var resolve = path.resolve;
|
|
124
|
+
var includePath = resolve(isDir ? filename : dirname(filename), name);
|
|
125
|
+
var ext = extname(name);
|
|
126
|
+
if (!ext) {
|
|
127
|
+
includePath += '.ejs';
|
|
128
|
+
}
|
|
129
|
+
return includePath;
|
|
130
|
+
};
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Try to resolve file path on multiple directories
|
|
134
|
+
*
|
|
135
|
+
* @param {String} name specified path
|
|
136
|
+
* @param {Array<String>} paths list of possible parent directory paths
|
|
137
|
+
* @return {String}
|
|
138
|
+
*/
|
|
139
|
+
function resolvePaths(name, paths) {
|
|
140
|
+
var filePath;
|
|
141
|
+
if (paths.some(function (v) {
|
|
142
|
+
filePath = exports.resolveInclude(name, v, true);
|
|
143
|
+
return fs.existsSync(filePath);
|
|
144
|
+
})) {
|
|
145
|
+
return filePath;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* Get the path to the included file by Options
|
|
151
|
+
*
|
|
152
|
+
* @param {String} path specified path
|
|
153
|
+
* @param {Options} options compilation options
|
|
154
|
+
* @return {String}
|
|
155
|
+
*/
|
|
156
|
+
function getIncludePath(path, options) {
|
|
157
|
+
var includePath;
|
|
158
|
+
var filePath;
|
|
159
|
+
var views = options.views;
|
|
160
|
+
var match = /^[A-Za-z]+:\\|^\//.exec(path);
|
|
161
|
+
|
|
162
|
+
// Abs path
|
|
163
|
+
if (match && match.length) {
|
|
164
|
+
path = path.replace(/^\/*/, '');
|
|
165
|
+
if (Array.isArray(options.root)) {
|
|
166
|
+
includePath = resolvePaths(path, options.root);
|
|
167
|
+
} else {
|
|
168
|
+
includePath = exports.resolveInclude(path, options.root || '/', true);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
// Relative paths
|
|
172
|
+
else {
|
|
173
|
+
// Look relative to a passed filename first
|
|
174
|
+
if (options.filename) {
|
|
175
|
+
filePath = exports.resolveInclude(path, options.filename);
|
|
176
|
+
if (fs.existsSync(filePath)) {
|
|
177
|
+
includePath = filePath;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
// Then look in any views directories
|
|
181
|
+
if (!includePath && Array.isArray(views)) {
|
|
182
|
+
includePath = resolvePaths(path, views);
|
|
183
|
+
}
|
|
184
|
+
if (!includePath && typeof options.includer !== 'function') {
|
|
185
|
+
throw new Error('Could not find the include file "' +
|
|
186
|
+
options.escapeFunction(path) + '"');
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
return includePath;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
/**
|
|
193
|
+
* Get the template from a string or a file, either compiled on-the-fly or
|
|
194
|
+
* read from cache (if enabled), and cache the template if needed.
|
|
195
|
+
*
|
|
196
|
+
* If `template` is not set, the file specified in `options.filename` will be
|
|
197
|
+
* read.
|
|
198
|
+
*
|
|
199
|
+
* If `options.cache` is true, this function reads the file from
|
|
200
|
+
* `options.filename` so it must be set prior to calling this function.
|
|
201
|
+
*
|
|
202
|
+
* @memberof module:ejs-internal
|
|
203
|
+
* @param {Options} options compilation options
|
|
204
|
+
* @param {String} [template] template source
|
|
205
|
+
* @return {(TemplateFunction|ClientFunction)}
|
|
206
|
+
* Depending on the value of `options.client`, either type might be returned.
|
|
207
|
+
* @static
|
|
208
|
+
*/
|
|
209
|
+
|
|
210
|
+
function handleCache(options, template) {
|
|
211
|
+
var func;
|
|
212
|
+
var filename = options.filename;
|
|
213
|
+
var hasTemplate = arguments.length > 1;
|
|
214
|
+
|
|
215
|
+
if (options.cache) {
|
|
216
|
+
if (!filename) {
|
|
217
|
+
throw new Error('cache option requires a filename');
|
|
218
|
+
}
|
|
219
|
+
func = exports.cache.get(filename);
|
|
220
|
+
if (func) {
|
|
221
|
+
return func;
|
|
222
|
+
}
|
|
223
|
+
if (!hasTemplate) {
|
|
224
|
+
template = fileLoader(filename).toString().replace(_BOM, '');
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
else if (!hasTemplate) {
|
|
228
|
+
// istanbul ignore if: should not happen at all
|
|
229
|
+
if (!filename) {
|
|
230
|
+
throw new Error('Internal EJS error: no file name or template '
|
|
231
|
+
+ 'provided');
|
|
232
|
+
}
|
|
233
|
+
template = fileLoader(filename).toString().replace(_BOM, '');
|
|
234
|
+
}
|
|
235
|
+
func = exports.compile(template, options);
|
|
236
|
+
if (options.cache) {
|
|
237
|
+
exports.cache.set(filename, func);
|
|
238
|
+
}
|
|
239
|
+
return func;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Try calling handleCache with the given options and data and call the
|
|
244
|
+
* callback with the result. If an error occurs, call the callback with
|
|
245
|
+
* the error. Used by renderFile().
|
|
246
|
+
*
|
|
247
|
+
* @memberof module:ejs-internal
|
|
248
|
+
* @param {Options} options compilation options
|
|
249
|
+
* @param {Object} data template data
|
|
250
|
+
* @param {RenderFileCallback} cb callback
|
|
251
|
+
* @static
|
|
252
|
+
*/
|
|
253
|
+
|
|
254
|
+
function tryHandleCache(options, data, cb) {
|
|
255
|
+
var result;
|
|
256
|
+
if (!cb) {
|
|
257
|
+
if (typeof exports.promiseImpl == 'function') {
|
|
258
|
+
return new exports.promiseImpl(function (resolve, reject) {
|
|
259
|
+
try {
|
|
260
|
+
result = handleCache(options)(data);
|
|
261
|
+
resolve(result);
|
|
262
|
+
}
|
|
263
|
+
catch (err) {
|
|
264
|
+
reject(err);
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
else {
|
|
269
|
+
throw new Error('Please provide a callback function');
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
else {
|
|
273
|
+
try {
|
|
274
|
+
result = handleCache(options)(data);
|
|
275
|
+
}
|
|
276
|
+
catch (err) {
|
|
277
|
+
return cb(err);
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
cb(null, result);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* fileLoader is independent
|
|
286
|
+
*
|
|
287
|
+
* @param {String} filePath ejs file path.
|
|
288
|
+
* @return {String} The contents of the specified file.
|
|
289
|
+
* @static
|
|
290
|
+
*/
|
|
291
|
+
|
|
292
|
+
function fileLoader(filePath){
|
|
293
|
+
return exports.fileLoader(filePath);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* Get the template function.
|
|
298
|
+
*
|
|
299
|
+
* If `options.cache` is `true`, then the template is cached.
|
|
300
|
+
*
|
|
301
|
+
* @memberof module:ejs-internal
|
|
302
|
+
* @param {String} path path for the specified file
|
|
303
|
+
* @param {Options} options compilation options
|
|
304
|
+
* @return {(TemplateFunction|ClientFunction)}
|
|
305
|
+
* Depending on the value of `options.client`, either type might be returned
|
|
306
|
+
* @static
|
|
307
|
+
*/
|
|
308
|
+
|
|
309
|
+
function includeFile(path, options) {
|
|
310
|
+
var opts = utils.shallowCopy(utils.createNullProtoObjWherePossible(), options);
|
|
311
|
+
opts.filename = getIncludePath(path, opts);
|
|
312
|
+
if (typeof options.includer === 'function') {
|
|
313
|
+
var includerResult = options.includer(path, opts.filename);
|
|
314
|
+
if (includerResult) {
|
|
315
|
+
if (includerResult.filename) {
|
|
316
|
+
opts.filename = includerResult.filename;
|
|
317
|
+
}
|
|
318
|
+
if (includerResult.template) {
|
|
319
|
+
return handleCache(opts, includerResult.template);
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
return handleCache(opts);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Re-throw the given `err` in context to the `str` of ejs, `filename`, and
|
|
328
|
+
* `lineno`.
|
|
329
|
+
*
|
|
330
|
+
* @implements {RethrowCallback}
|
|
331
|
+
* @memberof module:ejs-internal
|
|
332
|
+
* @param {Error} err Error object
|
|
333
|
+
* @param {String} str EJS source
|
|
334
|
+
* @param {String} flnm file name of the EJS file
|
|
335
|
+
* @param {Number} lineno line number of the error
|
|
336
|
+
* @param {EscapeCallback} esc
|
|
337
|
+
* @static
|
|
338
|
+
*/
|
|
339
|
+
|
|
340
|
+
function rethrow(err, str, flnm, lineno, esc) {
|
|
341
|
+
var lines = str.split('\n');
|
|
342
|
+
var start = Math.max(lineno - 3, 0);
|
|
343
|
+
var end = Math.min(lines.length, lineno + 3);
|
|
344
|
+
var filename = esc(flnm);
|
|
345
|
+
// Error context
|
|
346
|
+
var context = lines.slice(start, end).map(function (line, i){
|
|
347
|
+
var curr = i + start + 1;
|
|
348
|
+
return (curr == lineno ? ' >> ' : ' ')
|
|
349
|
+
+ curr
|
|
350
|
+
+ '| '
|
|
351
|
+
+ line;
|
|
352
|
+
}).join('\n');
|
|
353
|
+
|
|
354
|
+
// Alter exception message
|
|
355
|
+
err.path = filename;
|
|
356
|
+
err.message = (filename || 'ejs') + ':'
|
|
357
|
+
+ lineno + '\n'
|
|
358
|
+
+ context + '\n\n'
|
|
359
|
+
+ err.message;
|
|
360
|
+
|
|
361
|
+
throw err;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
function stripSemi(str){
|
|
365
|
+
return str.replace(/;(\s*$)/, '$1');
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
/**
|
|
369
|
+
* Compile the given `str` of ejs into a template function.
|
|
370
|
+
*
|
|
371
|
+
* @param {String} template EJS template
|
|
372
|
+
*
|
|
373
|
+
* @param {Options} [opts] compilation options
|
|
374
|
+
*
|
|
375
|
+
* @return {(TemplateFunction|ClientFunction)}
|
|
376
|
+
* Depending on the value of `opts.client`, either type might be returned.
|
|
377
|
+
* Note that the return type of the function also depends on the value of `opts.async`.
|
|
378
|
+
* @public
|
|
379
|
+
*/
|
|
380
|
+
|
|
381
|
+
exports.compile = function compile(template, opts) {
|
|
382
|
+
var templ;
|
|
383
|
+
|
|
384
|
+
// v1 compat
|
|
385
|
+
// 'scope' is 'context'
|
|
386
|
+
// FIXME: Remove this in a future version
|
|
387
|
+
if (opts && opts.scope) {
|
|
388
|
+
if (!scopeOptionWarned){
|
|
389
|
+
console.warn('`scope` option is deprecated and will be removed in EJS 3');
|
|
390
|
+
scopeOptionWarned = true;
|
|
391
|
+
}
|
|
392
|
+
if (!opts.context) {
|
|
393
|
+
opts.context = opts.scope;
|
|
394
|
+
}
|
|
395
|
+
delete opts.scope;
|
|
396
|
+
}
|
|
397
|
+
templ = new Template(template, opts);
|
|
398
|
+
return templ.compile();
|
|
399
|
+
};
|
|
400
|
+
|
|
401
|
+
/**
|
|
402
|
+
* Render the given `template` of ejs.
|
|
403
|
+
*
|
|
404
|
+
* If you would like to include options but not data, you need to explicitly
|
|
405
|
+
* call this function with `data` being an empty object or `null`.
|
|
406
|
+
*
|
|
407
|
+
* @param {String} template EJS template
|
|
408
|
+
* @param {Object} [data={}] template data
|
|
409
|
+
* @param {Options} [opts={}] compilation and rendering options
|
|
410
|
+
* @return {(String|Promise<String>)}
|
|
411
|
+
* Return value type depends on `opts.async`.
|
|
412
|
+
* @public
|
|
413
|
+
*/
|
|
414
|
+
|
|
415
|
+
exports.render = function (template, d, o) {
|
|
416
|
+
var data = d || utils.createNullProtoObjWherePossible();
|
|
417
|
+
var opts = o || utils.createNullProtoObjWherePossible();
|
|
418
|
+
|
|
419
|
+
// No options object -- if there are optiony names
|
|
420
|
+
// in the data, copy them to options
|
|
421
|
+
if (arguments.length == 2) {
|
|
422
|
+
utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA);
|
|
423
|
+
}
|
|
424
|
+
|
|
425
|
+
return handleCache(opts, template)(data);
|
|
426
|
+
};
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* Render an EJS file at the given `path` and callback `cb(err, str)`.
|
|
430
|
+
*
|
|
431
|
+
* If you would like to include options but not data, you need to explicitly
|
|
432
|
+
* call this function with `data` being an empty object or `null`.
|
|
433
|
+
*
|
|
434
|
+
* @param {String} path path to the EJS file
|
|
435
|
+
* @param {Object} [data={}] template data
|
|
436
|
+
* @param {Options} [opts={}] compilation and rendering options
|
|
437
|
+
* @param {RenderFileCallback} cb callback
|
|
438
|
+
* @public
|
|
439
|
+
*/
|
|
440
|
+
|
|
441
|
+
exports.renderFile = function () {
|
|
442
|
+
var args = Array.prototype.slice.call(arguments);
|
|
443
|
+
var filename = args.shift();
|
|
444
|
+
var cb;
|
|
445
|
+
var opts = {filename: filename};
|
|
446
|
+
var data;
|
|
447
|
+
var viewOpts;
|
|
448
|
+
|
|
449
|
+
// Do we have a callback?
|
|
450
|
+
if (typeof arguments[arguments.length - 1] == 'function') {
|
|
451
|
+
cb = args.pop();
|
|
452
|
+
}
|
|
453
|
+
// Do we have data/opts?
|
|
454
|
+
if (args.length) {
|
|
455
|
+
// Should always have data obj
|
|
456
|
+
data = args.shift();
|
|
457
|
+
// Normal passed opts (data obj + opts obj)
|
|
458
|
+
if (args.length) {
|
|
459
|
+
// Use shallowCopy so we don't pollute passed in opts obj with new vals
|
|
460
|
+
utils.shallowCopy(opts, args.pop());
|
|
461
|
+
}
|
|
462
|
+
// Special casing for Express (settings + opts-in-data)
|
|
463
|
+
else {
|
|
464
|
+
// Express 3 and 4
|
|
465
|
+
if (data.settings) {
|
|
466
|
+
// Pull a few things from known locations
|
|
467
|
+
if (data.settings.views) {
|
|
468
|
+
opts.views = data.settings.views;
|
|
469
|
+
}
|
|
470
|
+
if (data.settings['view cache']) {
|
|
471
|
+
opts.cache = true;
|
|
472
|
+
}
|
|
473
|
+
// Undocumented after Express 2, but still usable, esp. for
|
|
474
|
+
// items that are unsafe to be passed along with data, like `root`
|
|
475
|
+
viewOpts = data.settings['view options'];
|
|
476
|
+
if (viewOpts) {
|
|
477
|
+
utils.shallowCopy(opts, viewOpts);
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
// Express 2 and lower, values set in app.locals, or people who just
|
|
481
|
+
// want to pass options in their data. NOTE: These values will override
|
|
482
|
+
// anything previously set in settings or settings['view options']
|
|
483
|
+
utils.shallowCopyFromList(opts, data, _OPTS_PASSABLE_WITH_DATA_EXPRESS);
|
|
484
|
+
}
|
|
485
|
+
opts.filename = filename;
|
|
486
|
+
}
|
|
487
|
+
else {
|
|
488
|
+
data = utils.createNullProtoObjWherePossible();
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
return tryHandleCache(opts, data, cb);
|
|
492
|
+
};
|
|
493
|
+
|
|
494
|
+
/**
|
|
495
|
+
* Clear intermediate JavaScript cache. Calls {@link Cache#reset}.
|
|
496
|
+
* @public
|
|
497
|
+
*/
|
|
498
|
+
|
|
499
|
+
/**
|
|
500
|
+
* EJS template class
|
|
501
|
+
* @public
|
|
502
|
+
*/
|
|
503
|
+
exports.Template = Template;
|
|
504
|
+
|
|
505
|
+
exports.clearCache = function () {
|
|
506
|
+
exports.cache.reset();
|
|
507
|
+
};
|
|
508
|
+
|
|
509
|
+
function Template(text, optsParam) {
|
|
510
|
+
var opts = utils.hasOwnOnlyObject(optsParam);
|
|
511
|
+
var options = utils.createNullProtoObjWherePossible();
|
|
512
|
+
this.templateText = text;
|
|
513
|
+
/** @type {string | null} */
|
|
514
|
+
this.mode = null;
|
|
515
|
+
this.truncate = false;
|
|
516
|
+
this.currentLine = 1;
|
|
517
|
+
this.source = '';
|
|
518
|
+
options.client = opts.client || false;
|
|
519
|
+
options.escapeFunction = opts.escape || opts.escapeFunction || utils.escapeXML;
|
|
520
|
+
options.compileDebug = opts.compileDebug !== false;
|
|
521
|
+
options.debug = !!opts.debug;
|
|
522
|
+
options.filename = opts.filename;
|
|
523
|
+
options.openDelimiter = opts.openDelimiter || exports.openDelimiter || _DEFAULT_OPEN_DELIMITER;
|
|
524
|
+
options.closeDelimiter = opts.closeDelimiter || exports.closeDelimiter || _DEFAULT_CLOSE_DELIMITER;
|
|
525
|
+
options.delimiter = opts.delimiter || exports.delimiter || _DEFAULT_DELIMITER;
|
|
526
|
+
options.strict = opts.strict || false;
|
|
527
|
+
options.context = opts.context;
|
|
528
|
+
options.cache = opts.cache || false;
|
|
529
|
+
options.rmWhitespace = opts.rmWhitespace;
|
|
530
|
+
options.root = opts.root;
|
|
531
|
+
options.includer = opts.includer;
|
|
532
|
+
options.outputFunctionName = opts.outputFunctionName;
|
|
533
|
+
options.localsName = opts.localsName || exports.localsName || _DEFAULT_LOCALS_NAME;
|
|
534
|
+
options.views = opts.views;
|
|
535
|
+
options.async = opts.async;
|
|
536
|
+
options.destructuredLocals = opts.destructuredLocals;
|
|
537
|
+
options.legacyInclude = typeof opts.legacyInclude != 'undefined' ? !!opts.legacyInclude : true;
|
|
538
|
+
|
|
539
|
+
if (options.strict) {
|
|
540
|
+
options._with = false;
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
options._with = typeof opts._with != 'undefined' ? opts._with : true;
|
|
544
|
+
}
|
|
545
|
+
|
|
546
|
+
this.opts = options;
|
|
547
|
+
|
|
548
|
+
this.regex = this.createRegex();
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
Template.modes = {
|
|
552
|
+
EVAL: 'eval',
|
|
553
|
+
ESCAPED: 'escaped',
|
|
554
|
+
RAW: 'raw',
|
|
555
|
+
COMMENT: 'comment',
|
|
556
|
+
LITERAL: 'literal'
|
|
557
|
+
};
|
|
558
|
+
|
|
559
|
+
Template.prototype = {
|
|
560
|
+
createRegex: function () {
|
|
561
|
+
var str = _REGEX_STRING;
|
|
562
|
+
var delim = utils.escapeRegExpChars(this.opts.delimiter);
|
|
563
|
+
var open = utils.escapeRegExpChars(this.opts.openDelimiter);
|
|
564
|
+
var close = utils.escapeRegExpChars(this.opts.closeDelimiter);
|
|
565
|
+
str = str.replace(/%/g, delim)
|
|
566
|
+
.replace(/</g, open)
|
|
567
|
+
.replace(/>/g, close);
|
|
568
|
+
return new RegExp(str);
|
|
569
|
+
},
|
|
570
|
+
|
|
571
|
+
compile: function () {
|
|
572
|
+
/** @type {string} */
|
|
573
|
+
var src;
|
|
574
|
+
/** @type {ClientFunction} */
|
|
575
|
+
var fn;
|
|
576
|
+
var opts = this.opts;
|
|
577
|
+
var prepended = '';
|
|
578
|
+
var appended = '';
|
|
579
|
+
/** @type {EscapeCallback} */
|
|
580
|
+
var escapeFn = opts.escapeFunction;
|
|
581
|
+
/** @type {FunctionConstructor} */
|
|
582
|
+
var ctor;
|
|
583
|
+
/** @type {string} */
|
|
584
|
+
var sanitizedFilename = opts.filename ? JSON.stringify(opts.filename) : 'undefined';
|
|
585
|
+
|
|
586
|
+
if (!this.source) {
|
|
587
|
+
this.generateSource();
|
|
588
|
+
prepended +=
|
|
589
|
+
' var __output = "";\n' +
|
|
590
|
+
' function __append(s) { if (s !== undefined && s !== null) __output += s }\n';
|
|
591
|
+
if (opts.outputFunctionName) {
|
|
592
|
+
if (!_JS_IDENTIFIER.test(opts.outputFunctionName)) {
|
|
593
|
+
throw new Error('outputFunctionName is not a valid JS identifier.');
|
|
594
|
+
}
|
|
595
|
+
prepended += ' var ' + opts.outputFunctionName + ' = __append;' + '\n';
|
|
596
|
+
}
|
|
597
|
+
if (opts.localsName && !_JS_IDENTIFIER.test(opts.localsName)) {
|
|
598
|
+
throw new Error('localsName is not a valid JS identifier.');
|
|
599
|
+
}
|
|
600
|
+
if (opts.destructuredLocals && opts.destructuredLocals.length) {
|
|
601
|
+
var destructuring = ' var __locals = (' + opts.localsName + ' || {}),\n';
|
|
602
|
+
for (var i = 0; i < opts.destructuredLocals.length; i++) {
|
|
603
|
+
var name = opts.destructuredLocals[i];
|
|
604
|
+
if (!_JS_IDENTIFIER.test(name)) {
|
|
605
|
+
throw new Error('destructuredLocals[' + i + '] is not a valid JS identifier.');
|
|
606
|
+
}
|
|
607
|
+
if (i > 0) {
|
|
608
|
+
destructuring += ',\n ';
|
|
609
|
+
}
|
|
610
|
+
destructuring += name + ' = __locals.' + name;
|
|
611
|
+
}
|
|
612
|
+
prepended += destructuring + ';\n';
|
|
613
|
+
}
|
|
614
|
+
if (opts._with !== false) {
|
|
615
|
+
prepended += ' with (' + opts.localsName + ' || {}) {' + '\n';
|
|
616
|
+
appended += ' }' + '\n';
|
|
617
|
+
}
|
|
618
|
+
appended += ' return __output;' + '\n';
|
|
619
|
+
this.source = prepended + this.source + appended;
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
if (opts.compileDebug) {
|
|
623
|
+
src = 'var __line = 1' + '\n'
|
|
624
|
+
+ ' , __lines = ' + JSON.stringify(this.templateText) + '\n'
|
|
625
|
+
+ ' , __filename = ' + sanitizedFilename + ';' + '\n'
|
|
626
|
+
+ 'try {' + '\n'
|
|
627
|
+
+ this.source
|
|
628
|
+
+ '} catch (e) {' + '\n'
|
|
629
|
+
+ ' rethrow(e, __lines, __filename, __line, escapeFn);' + '\n'
|
|
630
|
+
+ '}' + '\n';
|
|
631
|
+
}
|
|
632
|
+
else {
|
|
633
|
+
src = this.source;
|
|
634
|
+
}
|
|
635
|
+
|
|
636
|
+
if (opts.client) {
|
|
637
|
+
src = 'escapeFn = escapeFn || ' + escapeFn.toString() + ';' + '\n' + src;
|
|
638
|
+
if (opts.compileDebug) {
|
|
639
|
+
src = 'rethrow = rethrow || ' + rethrow.toString() + ';' + '\n' + src;
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
if (opts.strict) {
|
|
644
|
+
src = '"use strict";\n' + src;
|
|
645
|
+
}
|
|
646
|
+
if (opts.debug) {
|
|
647
|
+
console.log(src);
|
|
648
|
+
}
|
|
649
|
+
if (opts.compileDebug && opts.filename) {
|
|
650
|
+
src = src + '\n'
|
|
651
|
+
+ '//# sourceURL=' + sanitizedFilename + '\n';
|
|
652
|
+
}
|
|
653
|
+
|
|
654
|
+
try {
|
|
655
|
+
if (opts.async) {
|
|
656
|
+
// Have to use generated function for this, since in envs without support,
|
|
657
|
+
// it breaks in parsing
|
|
658
|
+
try {
|
|
659
|
+
ctor = (new Function('return (async function(){}).constructor;'))();
|
|
660
|
+
}
|
|
661
|
+
catch(e) {
|
|
662
|
+
if (e instanceof SyntaxError) {
|
|
663
|
+
throw new Error('This environment does not support async/await');
|
|
664
|
+
}
|
|
665
|
+
else {
|
|
666
|
+
throw e;
|
|
667
|
+
}
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
else {
|
|
671
|
+
ctor = Function;
|
|
672
|
+
}
|
|
673
|
+
fn = new ctor(opts.localsName + ', escapeFn, include, rethrow', src);
|
|
674
|
+
}
|
|
675
|
+
catch(e) {
|
|
676
|
+
// istanbul ignore else
|
|
677
|
+
if (e instanceof SyntaxError) {
|
|
678
|
+
if (opts.filename) {
|
|
679
|
+
e.message += ' in ' + opts.filename;
|
|
680
|
+
}
|
|
681
|
+
e.message += ' while compiling ejs\n\n';
|
|
682
|
+
e.message += 'If the above error is not helpful, you may want to try EJS-Lint:\n';
|
|
683
|
+
e.message += 'https://github.com/RyanZim/EJS-Lint';
|
|
684
|
+
if (!opts.async) {
|
|
685
|
+
e.message += '\n';
|
|
686
|
+
e.message += 'Or, if you meant to create an async function, pass `async: true` as an option.';
|
|
687
|
+
}
|
|
688
|
+
}
|
|
689
|
+
throw e;
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
// Return a callable function which will execute the function
|
|
693
|
+
// created by the source-code, with the passed data as locals
|
|
694
|
+
// Adds a local `include` function which allows full recursive include
|
|
695
|
+
var returnedFn = opts.client ? fn : function anonymous(data) {
|
|
696
|
+
var include = function (path, includeData) {
|
|
697
|
+
var d = utils.shallowCopy(utils.createNullProtoObjWherePossible(), data);
|
|
698
|
+
if (includeData) {
|
|
699
|
+
d = utils.shallowCopy(d, includeData);
|
|
700
|
+
}
|
|
701
|
+
return includeFile(path, opts)(d);
|
|
702
|
+
};
|
|
703
|
+
return fn.apply(opts.context,
|
|
704
|
+
[data || utils.createNullProtoObjWherePossible(), escapeFn, include, rethrow]);
|
|
705
|
+
};
|
|
706
|
+
if (opts.filename && typeof Object.defineProperty === 'function') {
|
|
707
|
+
var filename = opts.filename;
|
|
708
|
+
var basename = path.basename(filename, path.extname(filename));
|
|
709
|
+
try {
|
|
710
|
+
Object.defineProperty(returnedFn, 'name', {
|
|
711
|
+
value: basename,
|
|
712
|
+
writable: false,
|
|
713
|
+
enumerable: false,
|
|
714
|
+
configurable: true
|
|
715
|
+
});
|
|
716
|
+
} catch (e) {/* ignore */}
|
|
717
|
+
}
|
|
718
|
+
return returnedFn;
|
|
719
|
+
},
|
|
720
|
+
|
|
721
|
+
generateSource: function () {
|
|
722
|
+
var opts = this.opts;
|
|
723
|
+
|
|
724
|
+
if (opts.rmWhitespace) {
|
|
725
|
+
// Have to use two separate replace here as `^` and `$` operators don't
|
|
726
|
+
// work well with `\r` and empty lines don't work well with the `m` flag.
|
|
727
|
+
this.templateText =
|
|
728
|
+
this.templateText.replace(/[\r\n]+/g, '\n').replace(/^\s+|\s+$/gm, '');
|
|
729
|
+
}
|
|
730
|
+
|
|
731
|
+
// Slurp spaces and tabs before <%_ and after _%>
|
|
732
|
+
this.templateText =
|
|
733
|
+
this.templateText.replace(/[ \t]*<%_/gm, '<%_').replace(/_%>[ \t]*/gm, '_%>');
|
|
734
|
+
|
|
735
|
+
var self = this;
|
|
736
|
+
var matches = this.parseTemplateText();
|
|
737
|
+
var d = this.opts.delimiter;
|
|
738
|
+
var o = this.opts.openDelimiter;
|
|
739
|
+
var c = this.opts.closeDelimiter;
|
|
740
|
+
|
|
741
|
+
if (matches && matches.length) {
|
|
742
|
+
matches.forEach(function (line, index) {
|
|
743
|
+
var closing;
|
|
744
|
+
// If this is an opening tag, check for closing tags
|
|
745
|
+
// FIXME: May end up with some false positives here
|
|
746
|
+
// Better to store modes as k/v with openDelimiter + delimiter as key
|
|
747
|
+
// Then this can simply check against the map
|
|
748
|
+
if ( line.indexOf(o + d) === 0 // If it is a tag
|
|
749
|
+
&& line.indexOf(o + d + d) !== 0) { // and is not escaped
|
|
750
|
+
closing = matches[index + 2];
|
|
751
|
+
if (!(closing == d + c || closing == '-' + d + c || closing == '_' + d + c)) {
|
|
752
|
+
throw new Error('Could not find matching close tag for "' + line + '".');
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
self.scanLine(line);
|
|
756
|
+
});
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
},
|
|
760
|
+
|
|
761
|
+
parseTemplateText: function () {
|
|
762
|
+
var str = this.templateText;
|
|
763
|
+
var pat = this.regex;
|
|
764
|
+
var result = pat.exec(str);
|
|
765
|
+
var arr = [];
|
|
766
|
+
var firstPos;
|
|
767
|
+
|
|
768
|
+
while (result) {
|
|
769
|
+
firstPos = result.index;
|
|
770
|
+
|
|
771
|
+
if (firstPos !== 0) {
|
|
772
|
+
arr.push(str.substring(0, firstPos));
|
|
773
|
+
str = str.slice(firstPos);
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
arr.push(result[0]);
|
|
777
|
+
str = str.slice(result[0].length);
|
|
778
|
+
result = pat.exec(str);
|
|
779
|
+
}
|
|
780
|
+
|
|
781
|
+
if (str) {
|
|
782
|
+
arr.push(str);
|
|
783
|
+
}
|
|
784
|
+
|
|
785
|
+
return arr;
|
|
786
|
+
},
|
|
787
|
+
|
|
788
|
+
_addOutput: function (line) {
|
|
789
|
+
if (this.truncate) {
|
|
790
|
+
// Only replace single leading linebreak in the line after
|
|
791
|
+
// -%> tag -- this is the single, trailing linebreak
|
|
792
|
+
// after the tag that the truncation mode replaces
|
|
793
|
+
// Handle Win / Unix / old Mac linebreaks -- do the \r\n
|
|
794
|
+
// combo first in the regex-or
|
|
795
|
+
line = line.replace(/^(?:\r\n|\r|\n)/, '');
|
|
796
|
+
this.truncate = false;
|
|
797
|
+
}
|
|
798
|
+
if (!line) {
|
|
799
|
+
return line;
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
// Preserve literal slashes
|
|
803
|
+
line = line.replace(/\\/g, '\\\\');
|
|
804
|
+
|
|
805
|
+
// Convert linebreaks
|
|
806
|
+
line = line.replace(/\n/g, '\\n');
|
|
807
|
+
line = line.replace(/\r/g, '\\r');
|
|
808
|
+
|
|
809
|
+
// Escape double-quotes
|
|
810
|
+
// - this will be the delimiter during execution
|
|
811
|
+
line = line.replace(/"/g, '\\"');
|
|
812
|
+
this.source += ' ; __append("' + line + '")' + '\n';
|
|
813
|
+
},
|
|
814
|
+
|
|
815
|
+
scanLine: function (line) {
|
|
816
|
+
var self = this;
|
|
817
|
+
var d = this.opts.delimiter;
|
|
818
|
+
var o = this.opts.openDelimiter;
|
|
819
|
+
var c = this.opts.closeDelimiter;
|
|
820
|
+
var newLineCount = 0;
|
|
821
|
+
|
|
822
|
+
newLineCount = (line.split('\n').length - 1);
|
|
823
|
+
|
|
824
|
+
switch (line) {
|
|
825
|
+
case o + d:
|
|
826
|
+
case o + d + '_':
|
|
827
|
+
this.mode = Template.modes.EVAL;
|
|
828
|
+
break;
|
|
829
|
+
case o + d + '=':
|
|
830
|
+
this.mode = Template.modes.ESCAPED;
|
|
831
|
+
break;
|
|
832
|
+
case o + d + '-':
|
|
833
|
+
this.mode = Template.modes.RAW;
|
|
834
|
+
break;
|
|
835
|
+
case o + d + '#':
|
|
836
|
+
this.mode = Template.modes.COMMENT;
|
|
837
|
+
break;
|
|
838
|
+
case o + d + d:
|
|
839
|
+
this.mode = Template.modes.LITERAL;
|
|
840
|
+
this.source += ' ; __append("' + line.replace(o + d + d, o + d) + '")' + '\n';
|
|
841
|
+
break;
|
|
842
|
+
case d + d + c:
|
|
843
|
+
this.mode = Template.modes.LITERAL;
|
|
844
|
+
this.source += ' ; __append("' + line.replace(d + d + c, d + c) + '")' + '\n';
|
|
845
|
+
break;
|
|
846
|
+
case d + c:
|
|
847
|
+
case '-' + d + c:
|
|
848
|
+
case '_' + d + c:
|
|
849
|
+
if (this.mode == Template.modes.LITERAL) {
|
|
850
|
+
this._addOutput(line);
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
this.mode = null;
|
|
854
|
+
this.truncate = line.indexOf('-') === 0 || line.indexOf('_') === 0;
|
|
855
|
+
break;
|
|
856
|
+
default:
|
|
857
|
+
// In script mode, depends on type of tag
|
|
858
|
+
if (this.mode) {
|
|
859
|
+
// If '//' is found without a line break, add a line break.
|
|
860
|
+
switch (this.mode) {
|
|
861
|
+
case Template.modes.EVAL:
|
|
862
|
+
case Template.modes.ESCAPED:
|
|
863
|
+
case Template.modes.RAW:
|
|
864
|
+
if (line.lastIndexOf('//') > line.lastIndexOf('\n')) {
|
|
865
|
+
line += '\n';
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
switch (this.mode) {
|
|
869
|
+
// Just executing code
|
|
870
|
+
case Template.modes.EVAL:
|
|
871
|
+
this.source += ' ; ' + line + '\n';
|
|
872
|
+
break;
|
|
873
|
+
// Exec, esc, and output
|
|
874
|
+
case Template.modes.ESCAPED:
|
|
875
|
+
this.source += ' ; __append(escapeFn(' + stripSemi(line) + '))' + '\n';
|
|
876
|
+
break;
|
|
877
|
+
// Exec and output
|
|
878
|
+
case Template.modes.RAW:
|
|
879
|
+
this.source += ' ; __append(' + stripSemi(line) + ')' + '\n';
|
|
880
|
+
break;
|
|
881
|
+
case Template.modes.COMMENT:
|
|
882
|
+
// Do nothing
|
|
883
|
+
break;
|
|
884
|
+
// Literal <%% mode, append as raw output
|
|
885
|
+
case Template.modes.LITERAL:
|
|
886
|
+
this._addOutput(line);
|
|
887
|
+
break;
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
// In string mode, just add the output
|
|
891
|
+
else {
|
|
892
|
+
this._addOutput(line);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
if (self.opts.compileDebug && newLineCount) {
|
|
897
|
+
this.currentLine += newLineCount;
|
|
898
|
+
this.source += ' ; __line = ' + this.currentLine + '\n';
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
};
|
|
902
|
+
|
|
903
|
+
/**
|
|
904
|
+
* Escape characters reserved in XML.
|
|
905
|
+
*
|
|
906
|
+
* This is simply an export of {@link module:utils.escapeXML}.
|
|
907
|
+
*
|
|
908
|
+
* If `markup` is `undefined` or `null`, the empty string is returned.
|
|
909
|
+
*
|
|
910
|
+
* @param {String} markup Input string
|
|
911
|
+
* @return {String} Escaped string
|
|
912
|
+
* @public
|
|
913
|
+
* @func
|
|
914
|
+
* */
|
|
915
|
+
exports.escapeXML = utils.escapeXML;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Express.js support.
|
|
919
|
+
*
|
|
920
|
+
* This is an alias for {@link module:ejs.renderFile}, in order to support
|
|
921
|
+
* Express.js out-of-the-box.
|
|
922
|
+
*
|
|
923
|
+
* @func
|
|
924
|
+
*/
|
|
925
|
+
|
|
926
|
+
exports.__express = exports.renderFile;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Version of EJS.
|
|
930
|
+
*
|
|
931
|
+
* @readonly
|
|
932
|
+
* @type {String}
|
|
933
|
+
* @public
|
|
934
|
+
*/
|
|
935
|
+
|
|
936
|
+
exports.VERSION = _VERSION_STRING;
|
|
937
|
+
|
|
938
|
+
/**
|
|
939
|
+
* Name for detection of EJS.
|
|
940
|
+
*
|
|
941
|
+
* @readonly
|
|
942
|
+
* @type {String}
|
|
943
|
+
* @public
|
|
944
|
+
*/
|
|
945
|
+
|
|
946
|
+
exports.name = _NAME;
|
|
947
|
+
|
|
948
|
+
/* istanbul ignore if */
|
|
949
|
+
if (typeof window != 'undefined') {
|
|
950
|
+
window.ejs = exports;
|
|
951
|
+
}
|
|
952
|
+
|