@contrast/agent 4.16.0 → 4.17.0
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/bin/VERSION +1 -1
- package/bin/linux/contrast-service +0 -0
- package/bin/mac/contrast-service +0 -0
- package/bin/windows/contrast-service.exe +0 -0
- package/esm.mjs +21 -11
- package/lib/assess/policy/propagators.json +4 -0
- package/lib/assess/policy/signatures.json +5 -0
- package/lib/assess/propagators/fastify-static/allowed-path.js +85 -0
- package/lib/contrast.js +1 -1
- package/lib/core/rewrite/index.js +2 -2
- package/lib/protect/rules/cmd-injection/cmdinjection-rule.js +1 -1
- package/node_modules/@colors/colors/LICENSE +26 -0
- package/node_modules/@colors/colors/README.md +219 -0
- package/node_modules/@colors/colors/examples/normal-usage.js +83 -0
- package/node_modules/@colors/colors/examples/safe-string.js +80 -0
- package/node_modules/@colors/colors/index.d.ts +136 -0
- package/node_modules/@colors/colors/lib/colors.js +211 -0
- package/node_modules/@colors/colors/lib/custom/trap.js +46 -0
- package/node_modules/@colors/colors/lib/custom/zalgo.js +110 -0
- package/node_modules/@colors/colors/lib/extendStringPrototype.js +110 -0
- package/node_modules/@colors/colors/lib/index.js +13 -0
- package/node_modules/@colors/colors/lib/maps/america.js +10 -0
- package/node_modules/@colors/colors/lib/maps/rainbow.js +12 -0
- package/node_modules/@colors/colors/lib/maps/random.js +11 -0
- package/node_modules/@colors/colors/lib/maps/zebra.js +5 -0
- package/node_modules/@colors/colors/lib/styles.js +95 -0
- package/node_modules/@colors/colors/lib/system/has-flag.js +35 -0
- package/node_modules/@colors/colors/lib/system/supports-colors.js +151 -0
- package/node_modules/@colors/colors/package.json +49 -0
- package/node_modules/@colors/colors/safe.d.ts +48 -0
- package/node_modules/@colors/colors/safe.js +10 -0
- package/node_modules/@colors/colors/themes/generic-logging.js +12 -0
- package/node_modules/@dabh/diagnostics/README.md +16 -16
- package/node_modules/@dabh/diagnostics/package.json +9 -9
- package/node_modules/async/CHANGELOG.md +13 -0
- package/node_modules/async/all.js +74 -9
- package/node_modules/async/allLimit.js +3 -3
- package/node_modules/async/allSeries.js +3 -3
- package/node_modules/async/any.js +75 -9
- package/node_modules/async/anyLimit.js +3 -3
- package/node_modules/async/anySeries.js +3 -3
- package/node_modules/async/applyEach.js +2 -2
- package/node_modules/async/applyEachSeries.js +2 -2
- package/node_modules/async/asyncify.js +3 -3
- package/node_modules/async/auto.js +81 -15
- package/node_modules/async/autoInject.js +30 -4
- package/node_modules/async/cargo.js +1 -1
- package/node_modules/async/cargoQueue.js +1 -1
- package/node_modules/async/compose.js +1 -1
- package/node_modules/async/concat.js +72 -4
- package/node_modules/async/concatLimit.js +3 -3
- package/node_modules/async/concatSeries.js +2 -2
- package/node_modules/async/detect.js +43 -8
- package/node_modules/async/detectLimit.js +3 -3
- package/node_modules/async/detectSeries.js +3 -3
- package/node_modules/async/dir.js +1 -1
- package/node_modules/async/dist/async.js +1379 -168
- package/node_modules/async/dist/async.min.js +1 -1
- package/node_modules/async/dist/async.mjs +1372 -161
- package/node_modules/async/doDuring.js +3 -3
- package/node_modules/async/doUntil.js +2 -2
- package/node_modules/async/doWhilst.js +3 -3
- package/node_modules/async/during.js +3 -3
- package/node_modules/async/each.js +69 -28
- package/node_modules/async/eachLimit.js +4 -4
- package/node_modules/async/eachOf.js +85 -16
- package/node_modules/async/eachOfLimit.js +3 -3
- package/node_modules/async/eachOfSeries.js +2 -2
- package/node_modules/async/eachSeries.js +2 -2
- package/node_modules/async/ensureAsync.js +2 -2
- package/node_modules/async/every.js +74 -9
- package/node_modules/async/everyLimit.js +3 -3
- package/node_modules/async/everySeries.js +3 -3
- package/node_modules/async/filter.js +49 -9
- package/node_modules/async/filterLimit.js +3 -3
- package/node_modules/async/filterSeries.js +3 -3
- package/node_modules/async/find.js +43 -8
- package/node_modules/async/findLimit.js +3 -3
- package/node_modules/async/findSeries.js +3 -3
- package/node_modules/async/flatMap.js +72 -4
- package/node_modules/async/flatMapLimit.js +3 -3
- package/node_modules/async/flatMapSeries.js +2 -2
- package/node_modules/async/foldl.js +87 -11
- package/node_modules/async/foldr.js +2 -2
- package/node_modules/async/forEach.js +69 -28
- package/node_modules/async/forEachLimit.js +4 -4
- package/node_modules/async/forEachOf.js +85 -16
- package/node_modules/async/forEachOfLimit.js +3 -3
- package/node_modules/async/forEachOfSeries.js +2 -2
- package/node_modules/async/forEachSeries.js +2 -2
- package/node_modules/async/forever.js +4 -4
- package/node_modules/async/groupBy.js +62 -8
- package/node_modules/async/groupByLimit.js +3 -3
- package/node_modules/async/groupBySeries.js +2 -2
- package/node_modules/async/inject.js +87 -11
- package/node_modules/async/internal/applyEach.js +2 -2
- package/node_modules/async/internal/asyncEachOfLimit.js +1 -1
- package/node_modules/async/internal/consoleFunc.js +5 -1
- package/node_modules/async/internal/createTester.js +2 -2
- package/node_modules/async/internal/eachOfLimit.js +6 -6
- package/node_modules/async/internal/filter.js +2 -2
- package/node_modules/async/internal/iterator.js +5 -2
- package/node_modules/async/internal/map.js +1 -1
- package/node_modules/async/internal/parallel.js +3 -3
- package/node_modules/async/internal/queue.js +4 -4
- package/node_modules/async/internal/reject.js +2 -2
- package/node_modules/async/internal/setImmediate.js +6 -2
- package/node_modules/async/internal/wrapAsync.js +1 -1
- package/node_modules/async/log.js +1 -1
- package/node_modules/async/map.js +86 -6
- package/node_modules/async/mapLimit.js +3 -3
- package/node_modules/async/mapSeries.js +3 -3
- package/node_modules/async/mapValues.js +102 -12
- package/node_modules/async/mapValuesLimit.js +4 -4
- package/node_modules/async/mapValuesSeries.js +1 -1
- package/node_modules/async/memoize.js +3 -3
- package/node_modules/async/nextTick.js +3 -3
- package/node_modules/async/package.json +4 -6
- package/node_modules/async/parallel.js +96 -7
- package/node_modules/async/parallelLimit.js +2 -2
- package/node_modules/async/priorityQueue.js +11 -4
- package/node_modules/async/queue.js +4 -4
- package/node_modules/async/race.js +3 -3
- package/node_modules/async/reduce.js +87 -11
- package/node_modules/async/reduceRight.js +2 -2
- package/node_modules/async/reflect.js +2 -2
- package/node_modules/async/reflectAll.js +1 -1
- package/node_modules/async/reject.js +44 -10
- package/node_modules/async/rejectLimit.js +3 -3
- package/node_modules/async/rejectSeries.js +3 -3
- package/node_modules/async/retry.js +2 -2
- package/node_modules/async/retryable.js +4 -4
- package/node_modules/async/select.js +49 -9
- package/node_modules/async/selectLimit.js +3 -3
- package/node_modules/async/selectSeries.js +3 -3
- package/node_modules/async/seq.js +4 -4
- package/node_modules/async/series.js +112 -12
- package/node_modules/async/setImmediate.js +1 -1
- package/node_modules/async/some.js +75 -9
- package/node_modules/async/someLimit.js +3 -3
- package/node_modules/async/someSeries.js +3 -3
- package/node_modules/async/sortBy.js +121 -19
- package/node_modules/async/timeout.js +2 -2
- package/node_modules/async/times.js +1 -1
- package/node_modules/async/timesLimit.js +3 -3
- package/node_modules/async/timesSeries.js +1 -1
- package/node_modules/async/transform.js +111 -19
- package/node_modules/async/tryEach.js +3 -3
- package/node_modules/async/until.js +3 -3
- package/node_modules/async/waterfall.js +4 -4
- package/node_modules/async/whilst.js +3 -3
- package/node_modules/async/wrapSync.js +3 -3
- package/node_modules/color/README.md +9 -0
- package/node_modules/color/index.js +4 -1
- package/node_modules/color/package.json +8 -8
- package/node_modules/color-string/README.md +6 -2
- package/node_modules/color-string/index.js +21 -13
- package/node_modules/color-string/package.json +4 -4
- package/node_modules/colorspace/package.json +5 -5
- package/node_modules/fecha/dist/fecha.min.js +1 -1
- package/node_modules/fecha/dist/fecha.min.js.map +1 -0
- package/node_modules/fecha/lib/fecha.d.ts +2 -2
- package/node_modules/fecha/lib/fecha.js +35 -18
- package/node_modules/fecha/lib/fecha.js.map +1 -0
- package/node_modules/fecha/lib/fecha.umd.js +35 -18
- package/node_modules/fecha/lib/fecha.umd.js.map +1 -0
- package/node_modules/fecha/package.json +9 -10
- package/node_modules/fecha/src/fecha.ts +524 -0
- package/node_modules/logform/.eslintrc +1 -1
- package/node_modules/logform/CHANGELOG.md +24 -0
- package/node_modules/logform/README.md +15 -17
- package/node_modules/logform/browser.js +3 -1
- package/node_modules/logform/cli.js +1 -1
- package/node_modules/logform/colorize.js +2 -2
- package/node_modules/logform/dist/browser.js +8 -2
- package/node_modules/logform/dist/cli.js +2 -2
- package/node_modules/logform/dist/colorize.js +5 -5
- package/node_modules/logform/dist/errors.js +1 -1
- package/node_modules/logform/dist/format.js +9 -5
- package/node_modules/logform/dist/index.js +53 -20
- package/node_modules/logform/dist/json.js +7 -6
- package/node_modules/logform/dist/logstash.js +1 -1
- package/node_modules/logform/dist/pad-levels.js +4 -4
- package/node_modules/logform/dist/printf.js +1 -1
- package/node_modules/logform/dist/simple.js +1 -1
- package/node_modules/logform/dist/splat.js +2 -2
- package/node_modules/logform/dist/uncolorize.js +1 -1
- package/node_modules/logform/errors.js +1 -1
- package/node_modules/logform/index.d.ts +36 -0
- package/node_modules/logform/index.js +19 -20
- package/node_modules/logform/json.js +7 -7
- package/node_modules/logform/logstash.js +1 -1
- package/node_modules/logform/package.json +10 -9
- package/node_modules/logform/simple.js +1 -1
- package/node_modules/logform/uncolorize.js +1 -1
- package/node_modules/moment/CHANGELOG.md +6 -0
- package/node_modules/moment/dist/locale/ar-kw.js +4 -3
- package/node_modules/moment/dist/locale/ar-ly.js +1 -1
- package/node_modules/moment/dist/locale/ar-ma.js +4 -3
- package/node_modules/moment/dist/locale/ar-sa.js +4 -3
- package/node_modules/moment/dist/locale/ar-tn.js +4 -3
- package/node_modules/moment/dist/locale/az.js +4 -3
- package/node_modules/moment/dist/locale/be.js +10 -9
- package/node_modules/moment/dist/locale/bn-bd.js +4 -3
- package/node_modules/moment/dist/locale/bn.js +4 -3
- package/node_modules/moment/dist/locale/bo.js +8 -6
- package/node_modules/moment/dist/locale/br.js +6 -3
- package/node_modules/moment/dist/locale/bs.js +4 -3
- package/node_modules/moment/dist/locale/ca.js +12 -9
- package/node_modules/moment/dist/locale/cs.js +15 -6
- package/node_modules/moment/dist/locale/cv.js +4 -3
- package/node_modules/moment/dist/locale/cy.js +4 -3
- package/node_modules/moment/dist/locale/de-at.js +6 -6
- package/node_modules/moment/dist/locale/de-ch.js +6 -6
- package/node_modules/moment/dist/locale/de.js +6 -6
- package/node_modules/moment/dist/locale/el.js +8 -6
- package/node_modules/moment/dist/locale/es-do.js +10 -6
- package/node_modules/moment/dist/locale/es-mx.js +10 -6
- package/node_modules/moment/dist/locale/es-us.js +10 -6
- package/node_modules/moment/dist/locale/es.js +10 -6
- package/node_modules/moment/dist/locale/et.js +6 -6
- package/node_modules/moment/dist/locale/eu.js +8 -6
- package/node_modules/moment/dist/locale/fa.js +12 -9
- package/node_modules/moment/dist/locale/fi.js +12 -9
- package/node_modules/moment/dist/locale/fo.js +4 -3
- package/node_modules/moment/dist/locale/fr-ca.js +4 -3
- package/node_modules/moment/dist/locale/fr-ch.js +4 -3
- package/node_modules/moment/dist/locale/fr.js +10 -6
- package/node_modules/moment/dist/locale/fy.js +4 -6
- package/node_modules/moment/dist/locale/gl.js +4 -3
- package/node_modules/moment/dist/locale/gom-deva.js +8 -6
- package/node_modules/moment/dist/locale/gom-latn.js +6 -6
- package/node_modules/moment/dist/locale/gu.js +4 -3
- package/node_modules/moment/dist/locale/he.js +4 -4
- package/node_modules/moment/dist/locale/hi.js +14 -10
- package/node_modules/moment/dist/locale/hr.js +7 -5
- package/node_modules/moment/dist/locale/hu.js +6 -6
- package/node_modules/moment/dist/locale/hy-am.js +8 -6
- package/node_modules/moment/dist/locale/is.js +4 -3
- package/node_modules/moment/dist/locale/ka.js +10 -10
- package/node_modules/moment/dist/locale/km.js +4 -3
- package/node_modules/moment/dist/locale/kn.js +4 -3
- package/node_modules/moment/dist/locale/ku.js +6 -6
- package/node_modules/moment/dist/locale/lb.js +8 -6
- package/node_modules/moment/dist/locale/lo.js +4 -3
- package/node_modules/moment/dist/locale/lt.js +8 -6
- package/node_modules/moment/dist/locale/lv.js +4 -3
- package/node_modules/moment/dist/locale/me.js +2 -3
- package/node_modules/moment/dist/locale/mi.js +4 -3
- package/node_modules/moment/dist/locale/ml.js +8 -6
- package/node_modules/moment/dist/locale/mn.js +4 -3
- package/node_modules/moment/dist/locale/mr.js +4 -3
- package/node_modules/moment/dist/locale/mt.js +4 -3
- package/node_modules/moment/dist/locale/nb.js +2 -3
- package/node_modules/moment/dist/locale/ne.js +4 -3
- package/node_modules/moment/dist/locale/nl-be.js +12 -12
- package/node_modules/moment/dist/locale/nl.js +12 -12
- package/node_modules/moment/dist/locale/nn.js +2 -3
- package/node_modules/moment/dist/locale/oc-lnc.js +8 -6
- package/node_modules/moment/dist/locale/pa-in.js +4 -3
- package/node_modules/moment/dist/locale/pl.js +10 -9
- package/node_modules/moment/dist/locale/pt-br.js +4 -3
- package/node_modules/moment/dist/locale/pt.js +4 -3
- package/node_modules/moment/dist/locale/ro.js +4 -3
- package/node_modules/moment/dist/locale/ru.js +20 -13
- package/node_modules/moment/dist/locale/se.js +6 -6
- package/node_modules/moment/dist/locale/si.js +4 -3
- package/node_modules/moment/dist/locale/sk.js +4 -3
- package/node_modules/moment/dist/locale/sl.js +4 -3
- package/node_modules/moment/dist/locale/sr-cyrl.js +32 -22
- package/node_modules/moment/dist/locale/sr.js +32 -22
- package/node_modules/moment/dist/locale/ss.js +4 -3
- package/node_modules/moment/dist/locale/sw.js +4 -3
- package/node_modules/moment/dist/locale/ta.js +8 -6
- package/node_modules/moment/dist/locale/te.js +8 -6
- package/node_modules/moment/dist/locale/tg.js +4 -3
- package/node_modules/moment/dist/locale/th.js +4 -3
- package/node_modules/moment/dist/locale/tlh.js +8 -9
- package/node_modules/moment/dist/locale/tr.js +1 -1
- package/node_modules/moment/dist/locale/tzm-latn.js +4 -3
- package/node_modules/moment/dist/locale/tzm.js +4 -3
- package/node_modules/moment/dist/locale/ug-cn.js +4 -3
- package/node_modules/moment/dist/locale/uk.js +16 -12
- package/node_modules/moment/dist/locale/uz-latn.js +4 -3
- package/node_modules/moment/dist/locale/vi.js +4 -3
- package/node_modules/moment/dist/locale/x-pseudo.js +8 -6
- package/node_modules/moment/dist/moment.js +95 -80
- package/node_modules/moment/locale/ar-kw.js +4 -3
- package/node_modules/moment/locale/ar-ly.js +1 -1
- package/node_modules/moment/locale/ar-ma.js +4 -3
- package/node_modules/moment/locale/ar-sa.js +4 -3
- package/node_modules/moment/locale/ar-tn.js +4 -3
- package/node_modules/moment/locale/az.js +4 -3
- package/node_modules/moment/locale/be.js +10 -9
- package/node_modules/moment/locale/bn-bd.js +4 -3
- package/node_modules/moment/locale/bn.js +4 -3
- package/node_modules/moment/locale/bo.js +8 -6
- package/node_modules/moment/locale/br.js +6 -3
- package/node_modules/moment/locale/bs.js +4 -3
- package/node_modules/moment/locale/ca.js +12 -9
- package/node_modules/moment/locale/cs.js +15 -6
- package/node_modules/moment/locale/cv.js +4 -3
- package/node_modules/moment/locale/cy.js +4 -3
- package/node_modules/moment/locale/de-at.js +6 -6
- package/node_modules/moment/locale/de-ch.js +6 -6
- package/node_modules/moment/locale/de.js +6 -6
- package/node_modules/moment/locale/el.js +8 -6
- package/node_modules/moment/locale/es-do.js +10 -6
- package/node_modules/moment/locale/es-mx.js +10 -6
- package/node_modules/moment/locale/es-us.js +10 -6
- package/node_modules/moment/locale/es.js +10 -6
- package/node_modules/moment/locale/et.js +6 -6
- package/node_modules/moment/locale/eu.js +8 -6
- package/node_modules/moment/locale/fa.js +12 -9
- package/node_modules/moment/locale/fi.js +12 -9
- package/node_modules/moment/locale/fo.js +4 -3
- package/node_modules/moment/locale/fr-ca.js +4 -3
- package/node_modules/moment/locale/fr-ch.js +4 -3
- package/node_modules/moment/locale/fr.js +10 -6
- package/node_modules/moment/locale/fy.js +4 -6
- package/node_modules/moment/locale/gl.js +4 -3
- package/node_modules/moment/locale/gom-deva.js +8 -6
- package/node_modules/moment/locale/gom-latn.js +6 -6
- package/node_modules/moment/locale/gu.js +4 -3
- package/node_modules/moment/locale/he.js +4 -4
- package/node_modules/moment/locale/hi.js +14 -10
- package/node_modules/moment/locale/hr.js +7 -5
- package/node_modules/moment/locale/hu.js +6 -6
- package/node_modules/moment/locale/hy-am.js +8 -6
- package/node_modules/moment/locale/is.js +4 -3
- package/node_modules/moment/locale/ka.js +10 -10
- package/node_modules/moment/locale/km.js +4 -3
- package/node_modules/moment/locale/kn.js +4 -3
- package/node_modules/moment/locale/ku.js +6 -6
- package/node_modules/moment/locale/lb.js +8 -6
- package/node_modules/moment/locale/lo.js +4 -3
- package/node_modules/moment/locale/lt.js +8 -6
- package/node_modules/moment/locale/lv.js +4 -3
- package/node_modules/moment/locale/me.js +2 -3
- package/node_modules/moment/locale/mi.js +4 -3
- package/node_modules/moment/locale/ml.js +8 -6
- package/node_modules/moment/locale/mn.js +4 -3
- package/node_modules/moment/locale/mr.js +4 -3
- package/node_modules/moment/locale/mt.js +4 -3
- package/node_modules/moment/locale/nb.js +2 -3
- package/node_modules/moment/locale/ne.js +4 -3
- package/node_modules/moment/locale/nl-be.js +12 -12
- package/node_modules/moment/locale/nl.js +12 -12
- package/node_modules/moment/locale/nn.js +2 -3
- package/node_modules/moment/locale/oc-lnc.js +8 -6
- package/node_modules/moment/locale/pa-in.js +4 -3
- package/node_modules/moment/locale/pl.js +10 -9
- package/node_modules/moment/locale/pt-br.js +4 -3
- package/node_modules/moment/locale/pt.js +4 -3
- package/node_modules/moment/locale/ro.js +4 -3
- package/node_modules/moment/locale/ru.js +20 -13
- package/node_modules/moment/locale/se.js +6 -6
- package/node_modules/moment/locale/si.js +4 -3
- package/node_modules/moment/locale/sk.js +4 -3
- package/node_modules/moment/locale/sl.js +4 -3
- package/node_modules/moment/locale/sr-cyrl.js +32 -22
- package/node_modules/moment/locale/sr.js +32 -22
- package/node_modules/moment/locale/ss.js +4 -3
- package/node_modules/moment/locale/sw.js +4 -3
- package/node_modules/moment/locale/ta.js +8 -6
- package/node_modules/moment/locale/te.js +8 -6
- package/node_modules/moment/locale/tg.js +4 -3
- package/node_modules/moment/locale/th.js +4 -3
- package/node_modules/moment/locale/tlh.js +8 -9
- package/node_modules/moment/locale/tr.js +1 -1
- package/node_modules/moment/locale/tzm-latn.js +4 -3
- package/node_modules/moment/locale/tzm.js +4 -3
- package/node_modules/moment/locale/ug-cn.js +4 -3
- package/node_modules/moment/locale/uk.js +16 -12
- package/node_modules/moment/locale/uz-latn.js +4 -3
- package/node_modules/moment/locale/vi.js +4 -3
- package/node_modules/moment/locale/x-pseudo.js +8 -6
- package/node_modules/moment/min/locales.js +613 -474
- package/node_modules/moment/min/locales.min.js +1 -1
- package/node_modules/moment/min/locales.min.js.map +1 -1
- package/node_modules/moment/min/moment-with-locales.js +707 -553
- package/node_modules/moment/min/moment-with-locales.min.js +1 -1
- package/node_modules/moment/min/moment-with-locales.min.js.map +1 -1
- package/node_modules/moment/min/moment.min.js +1 -1
- package/node_modules/moment/min/moment.min.js.map +1 -1
- package/node_modules/moment/moment.js +95 -80
- package/node_modules/moment/package.json +4 -4
- package/node_modules/moment/src/lib/create/from-string-and-array.js +4 -3
- package/node_modules/moment/src/lib/create/from-string-and-format.js +4 -3
- package/node_modules/moment/src/lib/create/from-string.js +11 -7
- package/node_modules/moment/src/lib/duration/create.js +2 -1
- package/node_modules/moment/src/lib/duration/valid.js +3 -2
- package/node_modules/moment/src/lib/format/format.js +2 -1
- package/node_modules/moment/src/lib/locale/locales.js +7 -1
- package/node_modules/moment/src/lib/moment/constructor.js +6 -3
- package/node_modules/moment/src/lib/moment/get-set.js +3 -2
- package/node_modules/moment/src/lib/parse/regex.js +8 -10
- package/node_modules/moment/src/lib/parse/token.js +4 -2
- package/node_modules/moment/src/lib/units/day-of-week.js +2 -3
- package/node_modules/moment/src/lib/units/era.js +10 -12
- package/node_modules/moment/src/lib/units/month.js +6 -6
- package/node_modules/moment/src/lib/units/week-year.js +6 -8
- package/node_modules/moment/src/lib/units/week.js +6 -8
- package/node_modules/moment/src/lib/utils/deprecate.js +3 -2
- package/node_modules/moment/src/lib/utils/is-moment-input.js +3 -2
- package/node_modules/moment/src/lib/utils/map.js +3 -2
- package/node_modules/moment/src/locale/ar-kw.js +4 -3
- package/node_modules/moment/src/locale/ar-ly.js +1 -1
- package/node_modules/moment/src/locale/ar-ma.js +4 -3
- package/node_modules/moment/src/locale/ar-sa.js +4 -3
- package/node_modules/moment/src/locale/ar-tn.js +4 -3
- package/node_modules/moment/src/locale/az.js +4 -3
- package/node_modules/moment/src/locale/be.js +10 -9
- package/node_modules/moment/src/locale/bn-bd.js +4 -3
- package/node_modules/moment/src/locale/bn.js +4 -3
- package/node_modules/moment/src/locale/bo.js +8 -6
- package/node_modules/moment/src/locale/br.js +6 -3
- package/node_modules/moment/src/locale/bs.js +4 -3
- package/node_modules/moment/src/locale/ca.js +12 -9
- package/node_modules/moment/src/locale/cs.js +15 -6
- package/node_modules/moment/src/locale/cv.js +4 -3
- package/node_modules/moment/src/locale/cy.js +4 -3
- package/node_modules/moment/src/locale/de-at.js +6 -6
- package/node_modules/moment/src/locale/de-ch.js +6 -6
- package/node_modules/moment/src/locale/de.js +6 -6
- package/node_modules/moment/src/locale/el.js +8 -6
- package/node_modules/moment/src/locale/es-do.js +10 -6
- package/node_modules/moment/src/locale/es-mx.js +10 -6
- package/node_modules/moment/src/locale/es-us.js +10 -6
- package/node_modules/moment/src/locale/es.js +10 -6
- package/node_modules/moment/src/locale/et.js +6 -6
- package/node_modules/moment/src/locale/eu.js +8 -6
- package/node_modules/moment/src/locale/fa.js +12 -9
- package/node_modules/moment/src/locale/fi.js +12 -9
- package/node_modules/moment/src/locale/fo.js +4 -3
- package/node_modules/moment/src/locale/fr-ca.js +4 -3
- package/node_modules/moment/src/locale/fr-ch.js +4 -3
- package/node_modules/moment/src/locale/fr.js +10 -6
- package/node_modules/moment/src/locale/fy.js +4 -6
- package/node_modules/moment/src/locale/gl.js +4 -3
- package/node_modules/moment/src/locale/gom-deva.js +8 -6
- package/node_modules/moment/src/locale/gom-latn.js +6 -6
- package/node_modules/moment/src/locale/gu.js +4 -3
- package/node_modules/moment/src/locale/he.js +4 -4
- package/node_modules/moment/src/locale/hi.js +14 -10
- package/node_modules/moment/src/locale/hr.js +7 -5
- package/node_modules/moment/src/locale/hu.js +6 -6
- package/node_modules/moment/src/locale/hy-am.js +8 -6
- package/node_modules/moment/src/locale/is.js +4 -3
- package/node_modules/moment/src/locale/ka.js +10 -10
- package/node_modules/moment/src/locale/km.js +4 -3
- package/node_modules/moment/src/locale/kn.js +4 -3
- package/node_modules/moment/src/locale/ku.js +6 -6
- package/node_modules/moment/src/locale/lb.js +8 -6
- package/node_modules/moment/src/locale/lo.js +4 -3
- package/node_modules/moment/src/locale/lt.js +8 -6
- package/node_modules/moment/src/locale/lv.js +4 -3
- package/node_modules/moment/src/locale/me.js +2 -3
- package/node_modules/moment/src/locale/mi.js +4 -3
- package/node_modules/moment/src/locale/ml.js +8 -6
- package/node_modules/moment/src/locale/mn.js +4 -3
- package/node_modules/moment/src/locale/mr.js +4 -3
- package/node_modules/moment/src/locale/mt.js +4 -3
- package/node_modules/moment/src/locale/nb.js +2 -3
- package/node_modules/moment/src/locale/ne.js +4 -3
- package/node_modules/moment/src/locale/nl-be.js +12 -12
- package/node_modules/moment/src/locale/nl.js +12 -12
- package/node_modules/moment/src/locale/nn.js +2 -3
- package/node_modules/moment/src/locale/oc-lnc.js +8 -6
- package/node_modules/moment/src/locale/pa-in.js +4 -3
- package/node_modules/moment/src/locale/pl.js +10 -9
- package/node_modules/moment/src/locale/pt-br.js +4 -3
- package/node_modules/moment/src/locale/pt.js +4 -3
- package/node_modules/moment/src/locale/ro.js +4 -3
- package/node_modules/moment/src/locale/ru.js +20 -13
- package/node_modules/moment/src/locale/se.js +6 -6
- package/node_modules/moment/src/locale/si.js +4 -3
- package/node_modules/moment/src/locale/sk.js +4 -3
- package/node_modules/moment/src/locale/sl.js +4 -3
- package/node_modules/moment/src/locale/sr-cyrl.js +32 -22
- package/node_modules/moment/src/locale/sr.js +32 -22
- package/node_modules/moment/src/locale/ss.js +4 -3
- package/node_modules/moment/src/locale/sw.js +4 -3
- package/node_modules/moment/src/locale/ta.js +8 -6
- package/node_modules/moment/src/locale/te.js +8 -6
- package/node_modules/moment/src/locale/tg.js +4 -3
- package/node_modules/moment/src/locale/th.js +4 -3
- package/node_modules/moment/src/locale/tlh.js +8 -9
- package/node_modules/moment/src/locale/tr.js +1 -1
- package/node_modules/moment/src/locale/tzm-latn.js +4 -3
- package/node_modules/moment/src/locale/tzm.js +4 -3
- package/node_modules/moment/src/locale/ug-cn.js +4 -3
- package/node_modules/moment/src/locale/uk.js +16 -12
- package/node_modules/moment/src/locale/uz-latn.js +4 -3
- package/node_modules/moment/src/locale/vi.js +4 -3
- package/node_modules/moment/src/locale/x-pseudo.js +8 -6
- package/node_modules/moment/src/moment.js +2 -2
- package/node_modules/moment/ts3.1-typings/moment.d.ts +1 -1
- package/node_modules/safe-stable-stringify/CHANGELOG.md +75 -0
- package/node_modules/safe-stable-stringify/LICENSE +21 -0
- package/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/node_modules/safe-stable-stringify/index.d.ts +18 -0
- package/node_modules/safe-stable-stringify/index.js +618 -0
- package/node_modules/safe-stable-stringify/package.json +69 -0
- package/node_modules/safe-stable-stringify/readme.md +170 -0
- package/node_modules/safe-stable-stringify/tsconfig.json +22 -0
- package/node_modules/winston/LICENSE +18 -18
- package/node_modules/winston/README.md +1231 -1230
- package/node_modules/winston/dist/winston/common.js +10 -10
- package/node_modules/winston/dist/winston/config/index.js +17 -17
- package/node_modules/winston/dist/winston/container.js +46 -46
- package/node_modules/winston/dist/winston/create-logger.js +28 -24
- package/node_modules/winston/dist/winston/exception-handler.js +49 -49
- package/node_modules/winston/dist/winston/exception-stream.js +27 -27
- package/node_modules/winston/dist/winston/logger.js +152 -138
- package/node_modules/winston/dist/winston/profiler.js +22 -22
- package/node_modules/winston/dist/winston/rejection-handler.js +54 -54
- package/node_modules/winston/dist/winston/tail-file.js +14 -14
- package/node_modules/winston/dist/winston/transports/console.js +31 -31
- package/node_modules/winston/dist/winston/transports/file.js +101 -101
- package/node_modules/winston/dist/winston/transports/http.js +119 -41
- package/node_modules/winston/dist/winston/transports/index.js +17 -17
- package/node_modules/winston/dist/winston/transports/stream.js +24 -24
- package/node_modules/winston/dist/winston.js +91 -97
- package/node_modules/winston/index.d.ts +213 -193
- package/node_modules/winston/lib/winston/common.js +61 -61
- package/node_modules/winston/lib/winston/config/index.d.ts +99 -98
- package/node_modules/winston/lib/winston/config/index.js +35 -35
- package/node_modules/winston/lib/winston/container.js +114 -114
- package/node_modules/winston/lib/winston/create-logger.js +104 -104
- package/node_modules/winston/lib/winston/exception-handler.js +245 -245
- package/node_modules/winston/lib/winston/exception-stream.js +54 -54
- package/node_modules/winston/lib/winston/logger.js +676 -667
- package/node_modules/winston/lib/winston/profiler.js +51 -51
- package/node_modules/winston/lib/winston/rejection-handler.js +251 -251
- package/node_modules/winston/lib/winston/tail-file.js +124 -124
- package/node_modules/winston/lib/winston/transports/console.js +117 -117
- package/node_modules/winston/lib/winston/transports/file.js +695 -695
- package/node_modules/winston/lib/winston/transports/http.js +267 -202
- package/node_modules/winston/lib/winston/transports/index.d.ts +103 -100
- package/node_modules/winston/lib/winston/transports/index.js +56 -56
- package/node_modules/winston/lib/winston/transports/stream.js +63 -63
- package/node_modules/winston/lib/winston.js +176 -182
- package/node_modules/winston/node_modules/winston-transport/.babelrc +3 -0
- package/node_modules/winston/node_modules/winston-transport/.eslintrc +7 -0
- package/node_modules/winston/node_modules/winston-transport/.gitattributes +1 -0
- package/node_modules/winston/node_modules/winston-transport/.nyc_output/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
- package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/c3d7ddb9-cc26-466b-a4f6-993ad69e86f6.json +1 -0
- package/node_modules/winston/node_modules/winston-transport/.nyc_output/processinfo/index.json +1 -0
- package/node_modules/winston/node_modules/winston-transport/CHANGELOG.md +126 -0
- package/node_modules/winston/node_modules/winston-transport/LICENSE +22 -0
- package/node_modules/winston/node_modules/winston-transport/README.md +50 -0
- package/node_modules/winston/node_modules/winston-transport/dist/index.js +215 -0
- package/node_modules/winston/node_modules/winston-transport/dist/legacy.js +116 -0
- package/node_modules/winston/node_modules/winston-transport/index.d.ts +39 -0
- package/node_modules/winston/node_modules/winston-transport/index.js +215 -0
- package/node_modules/winston/node_modules/winston-transport/legacy.js +119 -0
- package/node_modules/winston/node_modules/winston-transport/package.json +56 -0
- package/node_modules/winston/package.json +76 -75
- package/package.json +6 -4
- package/node_modules/@dabh/diagnostics/example.png +0 -0
- package/node_modules/color-string/CHANGELOG.md +0 -18
- package/node_modules/colorspace/test.js +0 -14
- package/node_modules/fecha/CHANGELOG.md +0 -67
- package/node_modules/logform/.travis.yml +0 -17
- package/node_modules/winston/CHANGELOG.md +0 -560
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/*
|
|
2
|
+
The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
var styles = {};
|
|
27
|
+
module['exports'] = styles;
|
|
28
|
+
|
|
29
|
+
var codes = {
|
|
30
|
+
reset: [0, 0],
|
|
31
|
+
|
|
32
|
+
bold: [1, 22],
|
|
33
|
+
dim: [2, 22],
|
|
34
|
+
italic: [3, 23],
|
|
35
|
+
underline: [4, 24],
|
|
36
|
+
inverse: [7, 27],
|
|
37
|
+
hidden: [8, 28],
|
|
38
|
+
strikethrough: [9, 29],
|
|
39
|
+
|
|
40
|
+
black: [30, 39],
|
|
41
|
+
red: [31, 39],
|
|
42
|
+
green: [32, 39],
|
|
43
|
+
yellow: [33, 39],
|
|
44
|
+
blue: [34, 39],
|
|
45
|
+
magenta: [35, 39],
|
|
46
|
+
cyan: [36, 39],
|
|
47
|
+
white: [37, 39],
|
|
48
|
+
gray: [90, 39],
|
|
49
|
+
grey: [90, 39],
|
|
50
|
+
|
|
51
|
+
brightRed: [91, 39],
|
|
52
|
+
brightGreen: [92, 39],
|
|
53
|
+
brightYellow: [93, 39],
|
|
54
|
+
brightBlue: [94, 39],
|
|
55
|
+
brightMagenta: [95, 39],
|
|
56
|
+
brightCyan: [96, 39],
|
|
57
|
+
brightWhite: [97, 39],
|
|
58
|
+
|
|
59
|
+
bgBlack: [40, 49],
|
|
60
|
+
bgRed: [41, 49],
|
|
61
|
+
bgGreen: [42, 49],
|
|
62
|
+
bgYellow: [43, 49],
|
|
63
|
+
bgBlue: [44, 49],
|
|
64
|
+
bgMagenta: [45, 49],
|
|
65
|
+
bgCyan: [46, 49],
|
|
66
|
+
bgWhite: [47, 49],
|
|
67
|
+
bgGray: [100, 49],
|
|
68
|
+
bgGrey: [100, 49],
|
|
69
|
+
|
|
70
|
+
bgBrightRed: [101, 49],
|
|
71
|
+
bgBrightGreen: [102, 49],
|
|
72
|
+
bgBrightYellow: [103, 49],
|
|
73
|
+
bgBrightBlue: [104, 49],
|
|
74
|
+
bgBrightMagenta: [105, 49],
|
|
75
|
+
bgBrightCyan: [106, 49],
|
|
76
|
+
bgBrightWhite: [107, 49],
|
|
77
|
+
|
|
78
|
+
// legacy styles for colors pre v1.0.0
|
|
79
|
+
blackBG: [40, 49],
|
|
80
|
+
redBG: [41, 49],
|
|
81
|
+
greenBG: [42, 49],
|
|
82
|
+
yellowBG: [43, 49],
|
|
83
|
+
blueBG: [44, 49],
|
|
84
|
+
magentaBG: [45, 49],
|
|
85
|
+
cyanBG: [46, 49],
|
|
86
|
+
whiteBG: [47, 49],
|
|
87
|
+
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
Object.keys(codes).forEach(function(key) {
|
|
91
|
+
var val = codes[key];
|
|
92
|
+
var style = styles[key] = [];
|
|
93
|
+
style.open = '\u001b[' + val[0] + 'm';
|
|
94
|
+
style.close = '\u001b[' + val[1] + 'm';
|
|
95
|
+
});
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*
|
|
2
|
+
MIT License
|
|
3
|
+
|
|
4
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
7
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
8
|
+
the Software without restriction, including without limitation the rights to
|
|
9
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
10
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
11
|
+
so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in all
|
|
14
|
+
copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
22
|
+
SOFTWARE.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
'use strict';
|
|
26
|
+
|
|
27
|
+
module.exports = function(flag, argv) {
|
|
28
|
+
argv = argv || process.argv;
|
|
29
|
+
|
|
30
|
+
var terminatorPos = argv.indexOf('--');
|
|
31
|
+
var prefix = /^-{1,2}/.test(flag) ? '' : '--';
|
|
32
|
+
var pos = argv.indexOf(prefix + flag);
|
|
33
|
+
|
|
34
|
+
return pos !== -1 && (terminatorPos === -1 ? true : pos < terminatorPos);
|
|
35
|
+
};
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
/*
|
|
2
|
+
The MIT License (MIT)
|
|
3
|
+
|
|
4
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
5
|
+
|
|
6
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
7
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
8
|
+
in the Software without restriction, including without limitation the rights
|
|
9
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
10
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
11
|
+
furnished to do so, subject to the following conditions:
|
|
12
|
+
|
|
13
|
+
The above copyright notice and this permission notice shall be included in
|
|
14
|
+
all copies or substantial portions of the Software.
|
|
15
|
+
|
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
17
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
18
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
19
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
20
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
21
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
22
|
+
THE SOFTWARE.
|
|
23
|
+
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
'use strict';
|
|
27
|
+
|
|
28
|
+
var os = require('os');
|
|
29
|
+
var hasFlag = require('./has-flag.js');
|
|
30
|
+
|
|
31
|
+
var env = process.env;
|
|
32
|
+
|
|
33
|
+
var forceColor = void 0;
|
|
34
|
+
if (hasFlag('no-color') || hasFlag('no-colors') || hasFlag('color=false')) {
|
|
35
|
+
forceColor = false;
|
|
36
|
+
} else if (hasFlag('color') || hasFlag('colors') || hasFlag('color=true')
|
|
37
|
+
|| hasFlag('color=always')) {
|
|
38
|
+
forceColor = true;
|
|
39
|
+
}
|
|
40
|
+
if ('FORCE_COLOR' in env) {
|
|
41
|
+
forceColor = env.FORCE_COLOR.length === 0
|
|
42
|
+
|| parseInt(env.FORCE_COLOR, 10) !== 0;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
function translateLevel(level) {
|
|
46
|
+
if (level === 0) {
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
return {
|
|
51
|
+
level: level,
|
|
52
|
+
hasBasic: true,
|
|
53
|
+
has256: level >= 2,
|
|
54
|
+
has16m: level >= 3,
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
function supportsColor(stream) {
|
|
59
|
+
if (forceColor === false) {
|
|
60
|
+
return 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
if (hasFlag('color=16m') || hasFlag('color=full')
|
|
64
|
+
|| hasFlag('color=truecolor')) {
|
|
65
|
+
return 3;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
if (hasFlag('color=256')) {
|
|
69
|
+
return 2;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
if (stream && !stream.isTTY && forceColor !== true) {
|
|
73
|
+
return 0;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
var min = forceColor ? 1 : 0;
|
|
77
|
+
|
|
78
|
+
if (process.platform === 'win32') {
|
|
79
|
+
// Node.js 7.5.0 is the first version of Node.js to include a patch to
|
|
80
|
+
// libuv that enables 256 color output on Windows. Anything earlier and it
|
|
81
|
+
// won't work. However, here we target Node.js 8 at minimum as it is an LTS
|
|
82
|
+
// release, and Node.js 7 is not. Windows 10 build 10586 is the first
|
|
83
|
+
// Windows release that supports 256 colors. Windows 10 build 14931 is the
|
|
84
|
+
// first release that supports 16m/TrueColor.
|
|
85
|
+
var osRelease = os.release().split('.');
|
|
86
|
+
if (Number(process.versions.node.split('.')[0]) >= 8
|
|
87
|
+
&& Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
88
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return 1;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if ('CI' in env) {
|
|
95
|
+
if (['TRAVIS', 'CIRCLECI', 'APPVEYOR', 'GITLAB_CI'].some(function(sign) {
|
|
96
|
+
return sign in env;
|
|
97
|
+
}) || env.CI_NAME === 'codeship') {
|
|
98
|
+
return 1;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
return min;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
if ('TEAMCITY_VERSION' in env) {
|
|
105
|
+
return (/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0
|
|
106
|
+
);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
if ('TERM_PROGRAM' in env) {
|
|
110
|
+
var version = parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
|
|
111
|
+
|
|
112
|
+
switch (env.TERM_PROGRAM) {
|
|
113
|
+
case 'iTerm.app':
|
|
114
|
+
return version >= 3 ? 3 : 2;
|
|
115
|
+
case 'Hyper':
|
|
116
|
+
return 3;
|
|
117
|
+
case 'Apple_Terminal':
|
|
118
|
+
return 2;
|
|
119
|
+
// No default
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
124
|
+
return 2;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (/^screen|^xterm|^vt100|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
128
|
+
return 1;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if ('COLORTERM' in env) {
|
|
132
|
+
return 1;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
if (env.TERM === 'dumb') {
|
|
136
|
+
return min;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
return min;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
function getSupportLevel(stream) {
|
|
143
|
+
var level = supportsColor(stream);
|
|
144
|
+
return translateLevel(level);
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
module.exports = {
|
|
148
|
+
supportsColor: getSupportLevel,
|
|
149
|
+
stdout: getSupportLevel(process.stdout),
|
|
150
|
+
stderr: getSupportLevel(process.stderr),
|
|
151
|
+
};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@colors/colors",
|
|
3
|
+
"description": "get colors in your node.js console",
|
|
4
|
+
"version": "1.5.0",
|
|
5
|
+
"author": "DABH",
|
|
6
|
+
"contributors": [
|
|
7
|
+
{
|
|
8
|
+
"name": "DABH",
|
|
9
|
+
"url": "https://github.com/DABH"
|
|
10
|
+
}
|
|
11
|
+
],
|
|
12
|
+
"homepage": "https://github.com/DABH/colors.js",
|
|
13
|
+
"bugs": "https://github.com/DABH/colors.js/issues",
|
|
14
|
+
"keywords": [
|
|
15
|
+
"ansi",
|
|
16
|
+
"terminal",
|
|
17
|
+
"colors"
|
|
18
|
+
],
|
|
19
|
+
"repository": {
|
|
20
|
+
"type": "git",
|
|
21
|
+
"url": "http://github.com/DABH/colors.js.git"
|
|
22
|
+
},
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"scripts": {
|
|
25
|
+
"lint": "eslint . --fix",
|
|
26
|
+
"test": "export FORCE_COLOR=1 && node tests/basic-test.js && node tests/safe-test.js"
|
|
27
|
+
},
|
|
28
|
+
"engines": {
|
|
29
|
+
"node": ">=0.1.90"
|
|
30
|
+
},
|
|
31
|
+
"main": "lib/index.js",
|
|
32
|
+
"files": [
|
|
33
|
+
"examples",
|
|
34
|
+
"lib",
|
|
35
|
+
"LICENSE",
|
|
36
|
+
"safe.js",
|
|
37
|
+
"themes",
|
|
38
|
+
"index.d.ts",
|
|
39
|
+
"safe.d.ts"
|
|
40
|
+
],
|
|
41
|
+
"devDependencies": {
|
|
42
|
+
"eslint": "^5.2.0",
|
|
43
|
+
"eslint-config-google": "^0.11.0"
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
,"_resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.5.0.tgz"
|
|
47
|
+
,"_integrity": "sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ=="
|
|
48
|
+
,"_from": "@colors/colors@1.5.0"
|
|
49
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// Type definitions for Colors.js 1.2
|
|
2
|
+
// Project: https://github.com/Marak/colors.js
|
|
3
|
+
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>, Staffan Eketorp <https://github.com/staeke>
|
|
4
|
+
// Definitions: https://github.com/Marak/colors.js
|
|
5
|
+
|
|
6
|
+
export const enabled: boolean;
|
|
7
|
+
export function enable(): void;
|
|
8
|
+
export function disable(): void;
|
|
9
|
+
export function setTheme(theme: any): void;
|
|
10
|
+
|
|
11
|
+
export function strip(str: string): string;
|
|
12
|
+
export function stripColors(str: string): string;
|
|
13
|
+
|
|
14
|
+
export function black(str: string): string;
|
|
15
|
+
export function red(str: string): string;
|
|
16
|
+
export function green(str: string): string;
|
|
17
|
+
export function yellow(str: string): string;
|
|
18
|
+
export function blue(str: string): string;
|
|
19
|
+
export function magenta(str: string): string;
|
|
20
|
+
export function cyan(str: string): string;
|
|
21
|
+
export function white(str: string): string;
|
|
22
|
+
export function gray(str: string): string;
|
|
23
|
+
export function grey(str: string): string;
|
|
24
|
+
|
|
25
|
+
export function bgBlack(str: string): string;
|
|
26
|
+
export function bgRed(str: string): string;
|
|
27
|
+
export function bgGreen(str: string): string;
|
|
28
|
+
export function bgYellow(str: string): string;
|
|
29
|
+
export function bgBlue(str: string): string;
|
|
30
|
+
export function bgMagenta(str: string): string;
|
|
31
|
+
export function bgCyan(str: string): string;
|
|
32
|
+
export function bgWhite(str: string): string;
|
|
33
|
+
|
|
34
|
+
export function reset(str: string): string;
|
|
35
|
+
export function bold(str: string): string;
|
|
36
|
+
export function dim(str: string): string;
|
|
37
|
+
export function italic(str: string): string;
|
|
38
|
+
export function underline(str: string): string;
|
|
39
|
+
export function inverse(str: string): string;
|
|
40
|
+
export function hidden(str: string): string;
|
|
41
|
+
export function strikethrough(str: string): string;
|
|
42
|
+
|
|
43
|
+
export function rainbow(str: string): string;
|
|
44
|
+
export function zebra(str: string): string;
|
|
45
|
+
export function america(str: string): string;
|
|
46
|
+
export function trap(str: string): string;
|
|
47
|
+
export function random(str: string): string;
|
|
48
|
+
export function zalgo(str: string): string;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Remark: Requiring this file will use the "safe" colors API,
|
|
3
|
+
// which will not touch String.prototype.
|
|
4
|
+
//
|
|
5
|
+
// var colors = require('colors/safe');
|
|
6
|
+
// colors.red("foo")
|
|
7
|
+
//
|
|
8
|
+
//
|
|
9
|
+
var colors = require('./lib/colors');
|
|
10
|
+
module['exports'] = colors;
|
|
@@ -19,7 +19,7 @@ The module is released in the public npm registry and can be installed by
|
|
|
19
19
|
running:
|
|
20
20
|
|
|
21
21
|
```
|
|
22
|
-
npm install --save diagnostics
|
|
22
|
+
npm install --save @dabh/diagnostics
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
@@ -47,7 +47,7 @@ npm install --save diagnostics
|
|
|
47
47
|
|
|
48
48
|
### Introduction
|
|
49
49
|
|
|
50
|
-
To create a new logger simply `require` the
|
|
50
|
+
To create a new logger simply `require` the `@dabh/diagnostics` module and call
|
|
51
51
|
the returned function. It accepts 2 arguments:
|
|
52
52
|
|
|
53
53
|
1. `namespace` **Required** This is the namespace of your logger so we know if we need to
|
|
@@ -62,8 +62,8 @@ the returned function. It accepts 2 arguments:
|
|
|
62
62
|
option to `false` to disable it.
|
|
63
63
|
|
|
64
64
|
```js
|
|
65
|
-
const debug = require('diagnostics')('foo:bar:baz');
|
|
66
|
-
const debug = require('diagnostics')('foo:bar:baz', { options });
|
|
65
|
+
const debug = require('@dabh/diagnostics')('foo:bar:baz');
|
|
66
|
+
const debug = require('@dabh/diagnostics')('foo:bar:baz', { options });
|
|
67
67
|
|
|
68
68
|
debug('this is a log message %s', 'that will only show up when enabled');
|
|
69
69
|
debug('that is pretty neat', { log: 'more', data: 1337 });
|
|
@@ -102,7 +102,7 @@ of past log messages, and output those when an uncaught exception happens in
|
|
|
102
102
|
your application so you have additional context
|
|
103
103
|
|
|
104
104
|
```js
|
|
105
|
-
const diagnostics = require('diagnostics');
|
|
105
|
+
const diagnostics = require('@dabh/diagnostics');
|
|
106
106
|
|
|
107
107
|
let index = 0;
|
|
108
108
|
const limit = 200;
|
|
@@ -133,7 +133,7 @@ queue of all debug messages that can be referenced when your application crashes
|
|
|
133
133
|
|
|
134
134
|
#### Production and development builds
|
|
135
135
|
|
|
136
|
-
When you `require` the
|
|
136
|
+
When you `require` the `@dabh/diagnostics` module you will be given a logger that is
|
|
137
137
|
optimized for `development` so it can provide the best developer experience
|
|
138
138
|
possible.
|
|
139
139
|
|
|
@@ -149,7 +149,7 @@ messages in production. You can `force` the debugger to be enabled, and
|
|
|
149
149
|
supply a [custom logger](#loggers).
|
|
150
150
|
|
|
151
151
|
```js
|
|
152
|
-
const diagnostics = require('diagnostics');
|
|
152
|
+
const diagnostics = require('@dabh/diagnostics');
|
|
153
153
|
const debug = debug('foo:bar', { force: true });
|
|
154
154
|
|
|
155
155
|
//
|
|
@@ -197,7 +197,7 @@ The returned logger will have a `.enabled` property assigned to it. This boolean
|
|
|
197
197
|
can be used to check if the logger was enabled:
|
|
198
198
|
|
|
199
199
|
```js
|
|
200
|
-
const debug = require('diagnostics')('foo:bar');
|
|
200
|
+
const debug = require('@dabh/diagnostics')('foo:bar');
|
|
201
201
|
|
|
202
202
|
if (debug.enabled) {
|
|
203
203
|
//
|
|
@@ -216,7 +216,7 @@ This property is exposed as:
|
|
|
216
216
|
This is the namespace that you originally provided to the function.
|
|
217
217
|
|
|
218
218
|
```js
|
|
219
|
-
const debug = require('diagnostics')('foo:bar');
|
|
219
|
+
const debug = require('@dabh/diagnostics')('foo:bar');
|
|
220
220
|
|
|
221
221
|
console.log(debug.namespace); // foo:bar
|
|
222
222
|
```
|
|
@@ -235,7 +235,7 @@ The `dev` and `prod` booleans on the returned logger indicate if you have a
|
|
|
235
235
|
production or development version of the logger.
|
|
236
236
|
|
|
237
237
|
```js
|
|
238
|
-
const debug = require('diagnostics')('foo:bar');
|
|
238
|
+
const debug = require('@dabh/diagnostics')('foo:bar');
|
|
239
239
|
|
|
240
240
|
if (debug.prod) {
|
|
241
241
|
// do stuff
|
|
@@ -260,7 +260,7 @@ want. It receives 2 arguments:
|
|
|
260
260
|
2. `args` An array of the log messages that needs to be written.
|
|
261
261
|
|
|
262
262
|
```js
|
|
263
|
-
const debug = require('diagnostics')('foo:more:namespaces');
|
|
263
|
+
const debug = require('@dabh/diagnostics')('foo:more:namespaces');
|
|
264
264
|
|
|
265
265
|
debug.use(function logger(meta, args) {
|
|
266
266
|
console.log(meta);
|
|
@@ -285,7 +285,7 @@ message after modification. The function receives 2 arguments:
|
|
|
285
285
|
initially created.
|
|
286
286
|
|
|
287
287
|
```js
|
|
288
|
-
const debug = require('diagnostics')('example:modifiers');
|
|
288
|
+
const debug = require('@dabh/diagnostics')('example:modifiers');
|
|
289
289
|
|
|
290
290
|
debug.modify(function (message, options) {
|
|
291
291
|
return messages;
|
|
@@ -307,7 +307,7 @@ should be a function returns a boolean that indicates if the passed in
|
|
|
307
307
|
`namespace` is allowed to write log messages.
|
|
308
308
|
|
|
309
309
|
```js
|
|
310
|
-
const diagnostics = require('diagnostics');
|
|
310
|
+
const diagnostics = require('@dabh/diagnostics');
|
|
311
311
|
const debug = diagnostics('foo:bar');
|
|
312
312
|
|
|
313
313
|
debug.use(function (namespace) {
|
|
@@ -335,7 +335,7 @@ For example, you want the messages to be prefixed with the date-time of when
|
|
|
335
335
|
the log message occured:
|
|
336
336
|
|
|
337
337
|
```js
|
|
338
|
-
const diagnostics = require('diagnostics');
|
|
338
|
+
const diagnostics = require('@dabh/diagnostics');
|
|
339
339
|
|
|
340
340
|
diagnostics.modify(function datetime(args, options) {
|
|
341
341
|
args.unshift(new Date());
|
|
@@ -378,9 +378,9 @@ will receive the `namespace` of a logger as argument and it should return a
|
|
|
378
378
|
boolean that indicates if that logger should be enabled or not.
|
|
379
379
|
|
|
380
380
|
```js
|
|
381
|
-
const debug = require('diagnostics')('example:namespace');
|
|
381
|
+
const debug = require('@dabh/diagnostics')('example:namespace');
|
|
382
382
|
|
|
383
|
-
debug.adapter(require('diagnostics/adapters/localstorage'));
|
|
383
|
+
debug.adapter(require('@dabh/diagnostics/adapters/localstorage'));
|
|
384
384
|
```
|
|
385
385
|
|
|
386
386
|
The modifiers are only enabled for `development`. The following adapters are
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dabh/diagnostics",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Tools for debugging your node.js modules and event loop",
|
|
5
5
|
"main": "./node",
|
|
6
6
|
"browser": "./browser",
|
|
@@ -37,16 +37,16 @@
|
|
|
37
37
|
},
|
|
38
38
|
"homepage": "https://github.com/3rd-Eden/diagnostics",
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"assume": "2.
|
|
40
|
+
"assume": "2.3.x",
|
|
41
41
|
"asyncstorageapi": "^1.0.2",
|
|
42
|
-
"mocha": "
|
|
43
|
-
"nyc": "^
|
|
42
|
+
"mocha": "9.2.x",
|
|
43
|
+
"nyc": "^15.1.0",
|
|
44
44
|
"objstorage": "^1.0.0",
|
|
45
45
|
"pre-commit": "1.2.x",
|
|
46
46
|
"require-poisoning": "^2.0.0",
|
|
47
|
-
"webpack": "
|
|
47
|
+
"webpack": "4.x",
|
|
48
48
|
"webpack-bundle-size-analyzer": "^3.0.0",
|
|
49
|
-
"webpack-cli": "
|
|
49
|
+
"webpack-cli": "3.x"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"colorspace": "1.1.x",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"test": "test"
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
,"_resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.
|
|
66
|
-
,"_integrity": "sha512
|
|
67
|
-
,"_from": "@dabh/diagnostics@2.0.
|
|
65
|
+
,"_resolved": "https://registry.npmjs.org/@dabh/diagnostics/-/diagnostics-2.0.3.tgz"
|
|
66
|
+
,"_integrity": "sha512-hrlQOIi7hAfzsMqlGSFyVucrx38O+j6wiGOf//H2ecvIEqYN4ADBSS2iLMh5UFyDunCNniUIPk/q3riFv45xRA=="
|
|
67
|
+
,"_from": "@dabh/diagnostics@2.0.3"
|
|
68
68
|
}
|
|
@@ -1,3 +1,16 @@
|
|
|
1
|
+
# v3.2.3
|
|
2
|
+
- Fix bugs in comment parsing in `autoInject`. (#1767, #1780)
|
|
3
|
+
|
|
4
|
+
# v3.2.2
|
|
5
|
+
- Fix potential prototype pollution exploit
|
|
6
|
+
|
|
7
|
+
# v3.2.1
|
|
8
|
+
- Use `queueMicrotask` if available to the environment (#1761)
|
|
9
|
+
- Minor perf improvement in `priorityQueue` (#1727)
|
|
10
|
+
- More examples in documentation (#1726)
|
|
11
|
+
- Various doc fixes (#1708, #1712, #1717, #1740, #1739, #1749, #1756)
|
|
12
|
+
- Improved test coverage (#1754)
|
|
13
|
+
|
|
1
14
|
# v3.2.0
|
|
2
15
|
- Fix a bug in Safari related to overwriting `func.name`
|
|
3
16
|
- Remove built-in browserify configuration (#1653)
|