@elastic/synthetics 1.0.0-beta.26 → 1.0.0-beta.27
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/README.md +1 -1
- package/dist/cli.js +19 -11
- package/dist/cli.js.map +1 -1
- package/dist/core/gatherer.js +2 -2
- package/dist/core/gatherer.js.map +1 -1
- package/dist/dsl/locations.d.ts +37 -0
- package/dist/dsl/locations.d.ts.map +1 -0
- package/dist/dsl/locations.js +41 -0
- package/dist/dsl/locations.js.map +1 -0
- package/dist/dsl/monitor.d.ts +3 -2
- package/dist/dsl/monitor.d.ts.map +1 -1
- package/dist/dsl/monitor.js +2 -1
- package/dist/dsl/monitor.js.map +1 -1
- package/dist/generator/index.d.ts +8 -1
- package/dist/generator/index.d.ts.map +1 -1
- package/dist/generator/index.js +42 -7
- package/dist/generator/index.js.map +1 -1
- package/dist/generator/utils.d.ts +1 -0
- package/dist/generator/utils.d.ts.map +1 -1
- package/dist/generator/utils.js +14 -1
- package/dist/generator/utils.js.map +1 -1
- package/dist/options.d.ts +0 -5
- package/dist/options.d.ts.map +1 -1
- package/dist/options.js +20 -28
- package/dist/options.js.map +1 -1
- package/dist/push/monitor.d.ts.map +1 -1
- package/dist/push/monitor.js +2 -7
- package/dist/push/monitor.js.map +1 -1
- package/dist/push/request.d.ts.map +1 -1
- package/dist/push/request.js +1 -7
- package/dist/push/request.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +3 -1
- package/src/cli.ts +27 -13
- package/src/core/gatherer.ts +2 -2
- package/src/dsl/locations.ts +38 -0
- package/src/dsl/monitor.ts +6 -2
- package/src/generator/index.ts +53 -11
- package/src/generator/utils.ts +13 -0
- package/src/options.ts +23 -29
- package/src/push/monitor.ts +2 -11
- package/src/push/request.ts +1 -8
- package/templates/synthetics.config.ts +7 -0
package/dist/push/request.js
CHANGED
|
@@ -30,12 +30,6 @@ const undici_1 = require("undici");
|
|
|
30
30
|
const helpers_1 = require("../helpers");
|
|
31
31
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
32
32
|
const { version } = require('../../package.json');
|
|
33
|
-
function encodeAuth(auth) {
|
|
34
|
-
if (auth.includes(':')) {
|
|
35
|
-
return Buffer.from(auth).toString('base64');
|
|
36
|
-
}
|
|
37
|
-
return auth;
|
|
38
|
-
}
|
|
39
33
|
function getAPIUrl(options) {
|
|
40
34
|
return (options.url + `/s/${options.space}/api/synthetics/service/project/monitors`);
|
|
41
35
|
}
|
|
@@ -53,7 +47,7 @@ async function createMonitors(monitors, options) {
|
|
|
53
47
|
method: 'PUT',
|
|
54
48
|
body: JSON.stringify(schema),
|
|
55
49
|
headers: {
|
|
56
|
-
authorization: `
|
|
50
|
+
authorization: `ApiKey ${options.auth}`,
|
|
57
51
|
'content-type': 'application/json',
|
|
58
52
|
'user-agent': `Elastic/Synthetics ${version}`,
|
|
59
53
|
'kbn-xsrf': 'true',
|
package/dist/push/request.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/push/request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,yCAAkD;AAClD,mCAAiC;AAEjC,wCAA6C;AAG7C,uDAAuD;AACvD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAQlD,SAAS,
|
|
1
|
+
{"version":3,"file":"request.js","sourceRoot":"","sources":["../../src/push/request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;;;AAEH,yCAAkD;AAClD,mCAAiC;AAEjC,wCAA6C;AAG7C,uDAAuD;AACvD,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAAC;AAQlD,SAAS,SAAS,CAAC,OAAoB;IACrC,OAAO,CACL,OAAO,CAAC,GAAG,GAAG,MAAM,OAAO,CAAC,KAAK,0CAA0C,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,EAAE,CAAC,UAAkB;IACnC,OAAO,UAAU,IAAI,GAAG,IAAI,UAAU,IAAI,GAAG,CAAC;AAChD,CAAC;AAFD,gBAEC;AAEM,KAAK,UAAU,cAAc,CAClC,QAAyB,EACzB,OAAoB;IAEpB,MAAM,MAAM,GAAc;QACxB,OAAO,EAAE,OAAO,CAAC,OAAO;QACxB,UAAU,EAAE,CAAC,OAAO,CAAC,MAAM;QAC3B,QAAQ;KACT,CAAC;IAEF,OAAO,MAAM,IAAA,gBAAO,EAAC,SAAS,CAAC,OAAO,CAAC,EAAE;QACvC,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;QAC5B,OAAO,EAAE;YACP,aAAa,EAAE,UAAU,OAAO,CAAC,IAAI,EAAE;YACvC,cAAc,EAAE,kBAAkB;YAClC,YAAY,EAAE,sBAAsB,OAAO,EAAE;YAC7C,UAAU,EAAE,MAAM;SACnB;KACF,CAAC,CAAC;AACL,CAAC;AApBD,wCAoBC;AAQD,SAAgB,mBAAmB,CAAC,OAAe;IACjD,OAAO,IAAA,aAAI,EACT,GAAG,iBAAO,CAAC,QAAQ,CAAC,qDAAqD,OAAO,EAAE,CACnF,CAAC;AACJ,CAAC;AAJD,kDAIC;AAED,SAAgB,cAAc,CAC5B,SAAiB,EACjB,KAAa,EACb,OAAe;IAEf,IAAI,KAAK,GAAG,IAAA,aAAI,EAAC,GAAG,iBAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACjD,IAAI,KAAK,GAAG,IAAA,aAAI,EACd,GAAG,iBAAO,CAAC,QAAQ,CAAC,8BAA8B,SAAS,IAAI,KAAK,IAAI,CACzE,CAAC;IACF,KAAK,IAAI,IAAA,gBAAM,EAAC,OAAO,EAAE,MAAM,CAAC,CAAC;IACjC,KAAK,IAAI,IAAA,gBAAM,EAAC,KAAK,CAAC,CAAC;IACvB,OAAO,KAAK,CAAC;AACf,CAAC;AAZD,wCAYC;AAED,SAAgB,oBAAoB,CAAC,MAAyB;IAC5D,IAAI,KAAK,GAAG,IAAA,aAAI,EAAC,GAAG,iBAAO,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IACjD,KAAK,MAAM,KAAK,IAAI,MAAM,EAAE;QAC1B,MAAM,SAAS,GAAG,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,aAAa,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;QAC3D,IAAI,KAAK,GAAG,IAAA,aAAI,EAAC,KAAK,KAAK,CAAC,MAAM,GAAG,SAAS,IAAI,CAAC,CAAC;QACpD,KAAK,IAAI,IAAA,gBAAM,EAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACvC,KAAK,IAAI,IAAA,gBAAM,EAAC,KAAK,CAAC,GAAG,IAAI,CAAC;QAC9B,KAAK,IAAI,IAAI,CAAC;KACf;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,oDAUC;AAED,SAAgB,mBAAmB;IACjC,IAAI,KAAK,GAAG,IAAA,aAAI,EAAC,IAAA,eAAM,EAAC,GAAG,iBAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,CAAC,CAAC;IACzE,MAAM,KAAK,GAAG,IAAA,aAAI,EAAC,iDAAiD,CAAC,CAAC;IACtE,KAAK,IAAI,IAAA,gBAAM,EAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IAC9B,OAAO,KAAK,CAAC;AACf,CAAC;AALD,kDAKC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/commander/typings/index.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/types.d.ts","../node_modules/playwright-chromium/index.d.ts","../node_modules/@types/braces/index.d.ts","../node_modules/@types/micromatch/index.d.ts","../src/dsl/step.ts","../node_modules/deepmerge/index.d.ts","../src/dsl/monitor.ts","../src/dsl/journey.ts","../src/dsl/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/sonic-boom/types/index.d.ts","../node_modules/kleur/colors.d.ts","../node_modules/@cspotcode/source-map-consumer/source-map.d.ts","../node_modules/@cspotcode/source-map-support/source-map-support.d.ts","../src/helpers.ts","../src/reporters/base.ts","../node_modules/@types/sharp/index.d.ts","../node_modules/snakecase-keys/index.d.ts","../src/reporters/json.ts","../src/reporters/junit.ts","../src/reporters/index.ts","../src/common_types.ts","../src/config.ts","../src/options.ts","../src/plugins/plugin-manager.ts","../src/plugins/network.ts","../src/plugins/performance.ts","../src/core/logger.ts","../src/sdk/lh-trace-processor.ts","../src/sdk/trace-processor.ts","../src/sdk/trace-metrics.ts","../src/plugins/tracing.ts","../src/plugins/browser-console.ts","../src/plugins/index.ts","../src/core/gatherer.ts","../src/core/runner.ts","../src/core/index.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/Global.d.ts","../node_modules/expect/node_modules/@jest/types/build/Circus.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/expect/node_modules/@types/yargs/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/Config.d.ts","../node_modules/expect/node_modules/@jest/types/build/TestResult.d.ts","../node_modules/expect/node_modules/@jest/types/build/Transform.d.ts","../node_modules/expect/node_modules/@jest/types/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/jestMatchersObject.d.ts","../node_modules/expect/build/types.d.ts","../node_modules/expect/build/index.d.ts","../src/core/expect.ts","../src/loader.ts","../src/formatter/javascript.ts","../src/index.ts","../node_modules/buffer/index.d.ts","../node_modules/undici/types/readable.d.ts","../node_modules/undici/types/dispatcher.d.ts","../node_modules/undici/types/global-dispatcher.d.ts","../node_modules/undici/types/connector.d.ts","../node_modules/undici/types/client.d.ts","../node_modules/undici/types/pool.d.ts","../node_modules/undici/types/balanced-pool.d.ts","../node_modules/undici/types/errors.d.ts","../node_modules/undici/types/agent.d.ts","../node_modules/undici/types/file.d.ts","../node_modules/undici/types/formdata.d.ts","../node_modules/undici/types/fetch.d.ts","../node_modules/undici/types/mock-interceptor.d.ts","../node_modules/undici/types/mock-agent.d.ts","../node_modules/undici/types/mock-client.d.ts","../node_modules/undici/types/mock-pool.d.ts","../node_modules/undici/types/mock-errors.d.ts","../node_modules/undici/types/proxy-agent.d.ts","../node_modules/undici/types/api.d.ts","../node_modules/undici/index.d.ts","../node_modules/esbuild/lib/main.d.ts","../src/push/plugin.ts","../src/push/bundler.ts","../src/push/monitor.ts","../src/push/request.ts","../src/push/index.ts","../src/generator/utils.ts","../src/generator/index.ts","../src/cli.ts","../src/core/browser-service.ts","../src/run-browser-service.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","5cb8e940313a5dfb1eea8025ce3f3426de46b3f7caa25676ed9b31d77bc918d0","6190fc794153dec7b344b11a361077413cc09627415416fef1375569f4028736","3f4eca17bf5cb95dd385a861ff52eaa6f69c9d35d4d410d3781c3c8bb1b711e1","026b4436ecf3884b9032fde46614f4ffb2513805177283c5cb592b6048e6cc9e","b07f64ff6ec710998a62b07377fbda0ab4c313ba1f0055bfe9faa22cffedd47c","cfb42d1c8aa66607ef3b1e2cee85d28148358ba62dc5e5146b317dae7bfd9a96","9c36d6df17ca69a65a2a654d9bbd86d74c6d6055e566429cd0a1de82827680eb","1e421ddd61b9216d1236a719d75097dcb6eb9b1c35676190646ca67ee5ee37a7","f163b1edf76fbde01836f8522fbe646fe2f55e313bb7fdd363891748f9b57c60","83c20d690dfafd14c12753e17649bf63ee07995477b63b2089b3c5dc9fea41a6","fb30c4db44de9e0628df971a739726018163bf8cf33f264bca1c445290cce691","b66519e16229b704374ea63956a9f46b638d7c109640d4e745c718990cd0d34d","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"e71aa3dcef67c4e22d57a8ff085806b986818c27d515a6c548547dbb06153c01","affectsGlobalScope":true},"64e2803203b14d7f104f570f2152fde13abb6edc17b2ddb33d81ad86cf43d494","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9b2a8f604e7c0482a9061755f00b287cc99bd8718dc82d8207dd74c599b6dc43","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","64576aba4ff801004122056ccd049f0597aa471dcfd7670a6a0b877ee8dd97c0","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"cc829932ffaf5c49092f878bec18af1fa5d8591b45a45e2b7f757f793cb3b4ed","47db10fdc4e76c4f4598cf7c91ba6bfde6cf6d8082c51860fe751643bf359739","53d2c24a3cbc00a88ebaf8ab8e1b6e206bc3a6647d544f877241684ea3d484e3","3be5ff21956db30c674bf2a98eb348e4ce7b4635cd9673413d86fbce761b77d8","0ce99c641ea20b0c0c09d093fc28f18f5ab31dc80033707a1ac3154399de2559","f0c33a0b325d3499cc9aded7d32886f998c9a27b465097c6cc136944d0aafdaa","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","9878d10740b7a3ab6f0e9a8df3a9660fa3f51eb5e84ab2f8cf7e12a775268b08","1606ea615c0a5ea9f5c1376a33e34c0e1112e8dee31a5b3b8a74ce781893aa6f","9fef9de633d01cb7f01f68195626a890ededd25cf96a1e785617d08c8668230d","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","82e1723b20fa0b15a7da0d1a03fec88348f82f640f7a2f308d6c0fac780cfc7c","605c24042a348b033b30121cff64380eb5d6d82853c5608f1f94ef72385cf5c9","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"79d679a1d56574cc5cef92be1f0e5e8fb4af62fb55933b236670a0e0a23c83f6","c621d85bf77a7236ed73ee49672b43ded019200001a70008030ebf321774e6f1","d2a2f3fd9fd566004a9e99237baeb5dc1e1bb6540e2628e7d15d60585677d9ad","4d2ed619e48724def9b6ba8fe94809ba48d7590f778c65cc65c70e9209b54712","52969c1dbbbd68bab02d490e91a9ca033d8abf59f1d3d74f6de2f9c347c6d5d6","e816a1afa18c813ee9f06fac91c434e061b523ec4e8c987605978939ff0a213e","66ae3e727e27bfae52ea3977a7a8489abacdc3c5eef927a38b60d8863115187a","68be16a65e76ebe8b2fdf643f18522cc16260c394d69e23acdbf6c31efd3b6b8","68bf2547c99e4b015a4d2ab72457ad03ee68efc06ce0f5b06aefa0ba6ce1be88","94ea9331171f3a201250df171e4fda00aea7f23bbf1f72a097d43eab2a963510","9d3c1e4427d18a8ca963d9a5876fc39c65e5a1241f85cc064c39ca350a5895ff","32b43bc66d19c25e28912ff8808b57b902eb9f034f936f5c4e2dbb5b3dab7045","1a88826131a02adedc6e2973f9cb7484e3daabffb7efa28125d48ea00a195b0f","cc0dd6f1e1edc5c6714584c81b13639d85770cc8c9d198ba9a50cd54d2d2584f","29dc3ea05b859e10c28a7866e6987fca6331c076345ccfb1bb3f0d04b6d8ac06","e3b26844556f078e0d61d6f0c738c9a989916472f6fe3e8d728587b723515d0a","3b2a51d38b85077f484254a6aa8307cebfd68cc959c8c960dd461b542a0b4f26","c79d804f12efe0318cda9942360627a14f43006a762c9ecdc134154b8d6c42d1","2eff693c448b037e854d46382b88c661e211ee7509f805b66760b5d8d3f030a1","88ff747a6ca76a01c53fa7ce6a1a73417bfdc823e81d9ee4493cd4dbdf083399","de98b87f10311ac7a68365a371df9e54d646576e67466f09387e2497ddcb22b1","f28cfe009e074239304847ac8a6c7b09b33f313f48b8b9157665c46e55df0e79","b5181e9421db9ab3461629c094002ce1e69778f363336c6784f196b351f53e33","1d4401a85cd2fc69df8effe2d15d673aad659296fccc1228ea328c5545e6c64a","4d7737bbeb90f349a8366d2f8a5e8b1715e45cb8118120bdd4d4e35f2e77964f","9c6a20f19a76bb4631b9a5aa2d58125fc8b705759658a652b7a7416819c6122d","4c77cec88e261981a9bf1ddc1da180b546e0136658ce165c49147b2f0209ee45","c7cce4bcf01af81a53ff359d073bfa36c04c198a20eac6088740c5f9e064f293","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","abc9254937b81009aab90a3a99c615cbfb6b163b39a69012f4136343e325604e","95b6c669e7ed7c5358c03f8aa24986640f6125ee81bb99e70e9155974f7fd253","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9","6c6699a10f2a0dc8efcba6095b7382f37c4445e7b5a4117fd3e17ea379642ff8","ef62b4aa372f77458d84c26614b44129f929e263c81b5cd1034f5828a5530412","8610558ae88a43ad794c4ab1da4f0e8e174e0357c88f6cbb21f523e67414e9a9","0b0feb9837c561c0a67b61024328045bb16bac6e4b10f7b0b217d3b8b43b0b12","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73","100db324c7664a9a2a4b76d7131fc69dfdf38d24542afc19825d05f401259fab","80b186d68c99a4cc9443cb3cab6eb9a2a136c65a9973ed403761961ca2cd94e6","00e95882237b1f291eb7ed34acf069003d2e6dc977c374f9798d7ad59b4aabbd",{"version":"68565a1933f3c8bdad53ec9ffbd36def39501f48a91ba78f927d292d0727d63d","affectsGlobalScope":true},"88fb27c11edaa47971398dc09d3e9e30871c2bf40fb99766cb2bf3a01c72fd6a","020163a9eed23106914c4b1dc0b39fe4f5008295afe8a860b089f828310b6017","d3d1c118d11cb8e51829c8cc8ca27c77a0f872b0170736563523eae84ef8713c","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","e7c20bf3e73ed0996fabeb09284e93181900b6fa18c35aa16643c5449dffb64a","461605b73afc5223970022921d78f39e33b2490a42cc916c5fa8e133950e8a12","731b1cf869c8d522aa62a3e2846daee0e0cdcdc277087f498d8cc5069972d03b","6dedb2835327cd6647af35dbda94a4f28747c09029b57de6c1fbd99a67dd2f0a","4fd5dcd2e0eb7da80ad88f8f48b3b735ac5324285d82034de3af387c936408b8","3ebad776841b2584a6d1914b884652560cb6af600bcd1e2be4fbabbf96ffdc2f","8cf23a0959cf72d938eb7c58d6ecc261491c1b4a5553f06dfb9fe6c21d4eaf63","02244597f6a3429520f677b38afde5f2992ddbf401a37ed1be7043aa00961cc1","ceb4ebb74834b8c1a4f1820e6540a7360a5d132a85f00900f843ecaee289a0b4","d135c53fca5f5ae33a155ea9e0315d5ac5467d8cd9cc370cc04a335b16d86788","c291ce5a2a24e2805b52db59bd4bff2fd5581495e15141467ba78c7ff1e88a1c","473e3cc8169b15dcdc818b7087163bbb2dde056d1618c9b6beb8504a65c09ea3","3f67533c7d11f5676bfe46af2a9debca9122a3d7567a2a98c77dc44d7e9102fc","fc6278a3def2e7f51a3a4322aeef3debd7568507430e8d4244ee33e0303f8f47","71afbc331804623823a208d7afaf53c39fefd4b249940a57470fb9722f3da954","957a167314e1b95b2ec1159dc5847d51e00946955ee051bd2b1a7ccf71ece9bf","67d510008ecf71f23942071e9e74cb9c308ab5cc6a55f4eea04532b92ef10453","81c5b759d2255b622e6aa6ca65b617cd3bffa0e56cf79b573bfd3d7014e66978","ee36be1145b9ca7c3d97cc5eb4a31b1f521ee10f32accf1949ce0b51627d967c","4a91222d0587cba18070368e1b1944ddba8edae86ac907322ac018ca2035eb7e","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","3d90b3b33d8978a754025b8adc21ca60bfdf4351ba6ebfe8bd8eacaa2c73eb86","7a2095a20697bca2177bcc673b46c2beab8bbd1958e516fbbdf70f7a4b0663ce","b530b3cb2d3554aa7c0e0e6f184aaef4723cda53df8cffe6e8d82ddba4baa886","71dcdb2bfedaf6b0be0684d40ed1c10e838d8fd0ad399424b0ba3dd6aa00dff8","f19463dbbe9ce823ea3c158e277220d1b44fc4b2bf95bf2da4948cf71ee4307c","8cfb77498cf19efb796c441d8dde4f6e339131325289c575ca32e81567fdba99","9bd4d5f4ed3a0d1260d710905651ddc93200f928cdd59c99730615e504aa54b3","2b62c0fff7628567b4777b6f6e82057b9d7a7ddf51d8885cd4f607d6ce1502a3","e3acb73a594a33b697e60bd8f816b15da36168baaf956891fa06edf0eba5a17a","424a6a1e8343e7b4e0f98166d58b6a2c61c5000ef6b79f14a74264944b28efb5","0db7fa7d3603e0719e20669d44a64291ce5f018bff0d4c889b188d6930819bcd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","a46a2e69d12afe63876ec1e58d70e5dbee6d3e74132f4468f570c3d69f809f1c","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","fc72135da24040641388fb5f2c2a7a99aa5b962c0fa125bd96fabeec63dd2e63","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb",{"version":"6ff2ca51e2c9d88d6d904c481879b12ec0cad2a69b88e220859a52207444773b","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","1583b9baa41a4db2f2bd4fedfafbe791a986fd785749d5cae2ff5171344e9b4c","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","105b9a2234dcb06ae922f2cd8297201136d416503ff7d16c72bfc8791e9895c1","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noImplicitOverride":true,"outDir":"./","sourceMap":true,"target":7},"fileIdsList":[[186],[102],[186,187,188,189,190],[186,188],[69,99],[127],[131],[141,145],[49],[56],[58],[59,64],[60,68,69,76,85],[60,61,68,76],[62,92],[63,64,69,77],[64,85],[65,66,68,76],[66],[67,68],[68],[68,69,70,85,91],[69,70],[71,76,85,91],[68,69,71,72,76,85,88,91],[71,73,85,88,91],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98],[68,74],[75,91],[66,68,76,85],[77],[78],[58,79],[80,90],[81],[82],[68,83],[83,84,92,94],[68,85],[86],[87],[76,85,88],[89],[76,90],[82,91],[92],[85,93],[94],[95],[68,70,85,91,94,96],[85,97],[85,99],[133],[68,85,99],[148],[138,146,147],[99,128],[99,130,132,134],[99,127],[128,129,135,136,137],[139,142,143,144],[130,145],[139,142],[141],[140],[47],[45,46,60,68,69,85],[68,99],[156,157,158,159,160,161,162,163,164,165,166,168,169,170,171,172,173],[91,156,160],[85,91,156],[91,156,159,160],[88,91,156,158],[76,88,91],[59,68,71,85,91,155],[159],[59,91,99,165],[59,99],[99,164],[156],[156,163,167],[156,159,167,168],[162],[71,156,166],[156,160,167,168],[91,156,159],[156,163],[59,85],[44,53,78,104,110,111,113,126,151,153,180,182],[48,53,55,110],[78,104,111],[48,71,91,117],[148,149],[48,111,117,123],[53,55,104,111,117,125],[101,104],[51,53,54,70,78,104,110,111,117,123,124],[51,54],[48,50,51,53,111],[52,111],[111],[60,69,70,78,101,104,181],[69,78],[69,77,78,79,92,101,103,111],[48,110,111,125,126,150,152],[78,80,104,111,117,126,150],[52,53,104,111,112],[55,104,111],[114,115,116,121,122],[48,55,104,111],[55,111,123],[111,119,120],[69,70,78,175,176],[53,104,111,178,179],[53,70,78,104,177],[70,78,175],[101,104,111,174,178],[55,100,101,104,110,111],[55,105,108,109,111],[55,64,69,78,104,105,106,107,111],[55,70,78,104,105,111],[184],[117],[111,119],[111,117,118,120]],"referencedMap":[[188,1],[103,2],[191,3],[187,1],[189,4],[190,1],[192,5],[131,6],[132,7],[195,8],[50,9],[56,10],[58,11],[59,12],[60,13],[61,14],[62,15],[63,16],[64,17],[65,18],[66,19],[67,20],[68,21],[69,22],[70,23],[71,24],[72,25],[73,26],[99,27],[74,28],[75,29],[76,30],[77,31],[78,32],[79,33],[80,34],[81,35],[82,36],[83,37],[84,38],[85,39],[86,40],[87,41],[88,42],[89,43],[90,44],[91,45],[92,46],[93,47],[94,48],[95,49],[96,50],[97,51],[106,52],[200,53],[201,54],[149,55],[147,55],[148,56],[129,57],[135,58],[128,59],[138,60],[134,53],[193,61],[146,62],[143,63],[145,61],[144,63],[142,64],[141,65],[48,66],[46,66],[47,67],[194,65],[100,68],[174,69],[163,70],[173,71],[161,72],[159,73],[158,74],[156,75],[162,76],[166,77],[164,78],[165,79],[157,80],[168,81],[169,82],[171,83],[167,84],[170,85],[160,86],[172,87],[155,88],[183,89],[111,90],[112,91],[184,92],[150,93],[124,94],[126,95],[117,96],[125,97],[55,98],[54,99],[53,100],[51,101],[182,102],[181,103],[104,104],[153,105],[151,106],[113,107],[122,108],[123,109],[115,110],[116,101],[114,111],[121,112],[177,113],[180,114],[178,115],[176,116],[179,117],[105,118],[110,119],[108,120],[109,121],[185,122],[118,123],[120,124],[119,125]],"exportedModulesMap":[[188,1],[103,2],[191,3],[187,1],[189,4],[190,1],[192,5],[131,6],[132,7],[195,8],[50,9],[56,10],[58,11],[59,12],[60,13],[61,14],[62,15],[63,16],[64,17],[65,18],[66,19],[67,20],[68,21],[69,22],[70,23],[71,24],[72,25],[73,26],[99,27],[74,28],[75,29],[76,30],[77,31],[78,32],[79,33],[80,34],[81,35],[82,36],[83,37],[84,38],[85,39],[86,40],[87,41],[88,42],[89,43],[90,44],[91,45],[92,46],[93,47],[94,48],[95,49],[96,50],[97,51],[106,52],[200,53],[201,54],[149,55],[147,55],[148,56],[129,57],[135,58],[128,59],[138,60],[134,53],[193,61],[146,62],[143,63],[145,61],[144,63],[142,64],[141,65],[48,66],[46,66],[47,67],[194,65],[100,68],[174,69],[163,70],[173,71],[161,72],[159,73],[158,74],[156,75],[162,76],[166,77],[164,78],[165,79],[157,80],[168,81],[169,82],[171,83],[167,84],[170,85],[160,86],[172,87],[155,88],[183,89],[111,90],[112,91],[184,92],[150,93],[124,94],[126,95],[117,96],[125,97],[55,98],[54,99],[53,100],[51,101],[182,102],[181,103],[104,104],[153,105],[151,106],[113,107],[122,108],[123,109],[115,110],[116,101],[114,111],[121,112],[177,113],[180,114],[178,115],[176,116],[179,117],[105,118],[110,119],[108,120],[109,121],[185,122],[118,123],[120,124],[119,125]],"semanticDiagnosticsPerFile":[188,186,102,103,191,187,189,190,49,192,127,131,132,195,196,50,56,58,59,60,61,62,63,64,65,66,67,68,69,70,57,98,71,72,73,99,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,197,198,106,199,133,200,201,154,130,44,52,175,149,147,148,129,135,128,136,137,138,134,193,146,139,143,145,144,142,141,140,101,48,45,46,47,194,107,100,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,43,41,37,38,39,40,1,42,11,10,174,163,173,161,159,158,156,162,166,164,165,157,168,169,171,167,170,160,172,155,183,111,112,184,150,124,126,117,125,55,54,53,51,152,182,181,104,153,151,113,122,123,115,116,114,121,177,180,178,176,179,105,110,108,109,185,118,120,119]},"version":"4.5.5"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/commander/typings/index.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/protocol.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/structs.d.ts","../node_modules/playwright-chromium/node_modules/playwright-core/types/types.d.ts","../node_modules/playwright-chromium/index.d.ts","../node_modules/@types/braces/index.d.ts","../node_modules/@types/micromatch/index.d.ts","../src/dsl/step.ts","../node_modules/deepmerge/index.d.ts","../src/dsl/locations.ts","../src/dsl/monitor.ts","../src/dsl/journey.ts","../src/dsl/index.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/sonic-boom/types/index.d.ts","../node_modules/kleur/colors.d.ts","../node_modules/@cspotcode/source-map-consumer/source-map.d.ts","../node_modules/@cspotcode/source-map-support/source-map-support.d.ts","../src/helpers.ts","../src/reporters/base.ts","../node_modules/@types/sharp/index.d.ts","../node_modules/snakecase-keys/index.d.ts","../src/reporters/json.ts","../src/reporters/junit.ts","../src/reporters/index.ts","../src/common_types.ts","../src/config.ts","../src/options.ts","../src/plugins/plugin-manager.ts","../src/plugins/network.ts","../src/plugins/performance.ts","../src/core/logger.ts","../src/sdk/lh-trace-processor.ts","../src/sdk/trace-processor.ts","../src/sdk/trace-metrics.ts","../src/plugins/tracing.ts","../src/plugins/browser-console.ts","../src/plugins/index.ts","../src/core/gatherer.ts","../src/core/runner.ts","../src/core/index.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/Global.d.ts","../node_modules/expect/node_modules/@jest/types/build/Circus.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/expect/node_modules/@types/yargs/index.d.ts","../node_modules/expect/node_modules/@jest/types/build/Config.d.ts","../node_modules/expect/node_modules/@jest/types/build/TestResult.d.ts","../node_modules/expect/node_modules/@jest/types/build/Transform.d.ts","../node_modules/expect/node_modules/@jest/types/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/cleanupSemantic.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/pretty-format/build/index.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/types.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/diffLines.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/printDiffs.d.ts","../node_modules/jest-matcher-utils/node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/jestMatchersObject.d.ts","../node_modules/expect/build/types.d.ts","../node_modules/expect/build/index.d.ts","../src/core/expect.ts","../src/loader.ts","../src/formatter/javascript.ts","../src/index.ts","../node_modules/buffer/index.d.ts","../node_modules/undici/types/readable.d.ts","../node_modules/undici/types/dispatcher.d.ts","../node_modules/undici/types/global-dispatcher.d.ts","../node_modules/undici/types/connector.d.ts","../node_modules/undici/types/client.d.ts","../node_modules/undici/types/pool.d.ts","../node_modules/undici/types/balanced-pool.d.ts","../node_modules/undici/types/errors.d.ts","../node_modules/undici/types/agent.d.ts","../node_modules/undici/types/file.d.ts","../node_modules/undici/types/formdata.d.ts","../node_modules/undici/types/fetch.d.ts","../node_modules/undici/types/mock-interceptor.d.ts","../node_modules/undici/types/mock-agent.d.ts","../node_modules/undici/types/mock-client.d.ts","../node_modules/undici/types/mock-pool.d.ts","../node_modules/undici/types/mock-errors.d.ts","../node_modules/undici/types/proxy-agent.d.ts","../node_modules/undici/types/api.d.ts","../node_modules/undici/index.d.ts","../node_modules/esbuild/lib/main.d.ts","../src/push/plugin.ts","../src/push/bundler.ts","../src/push/monitor.ts","../src/push/request.ts","../src/push/index.ts","../node_modules/enquirer/index.d.ts","../src/generator/utils.ts","../src/generator/index.ts","../src/cli.ts","../src/core/browser-service.ts","../src/run-browser-service.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/parse-json/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs/index.d.ts","../node_modules/@types/yauzl/index.d.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"d071129cba6a5f2700be09c86c07ad2791ab67d4e5ed1eb301d6746c62745ea4","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","5cb8e940313a5dfb1eea8025ce3f3426de46b3f7caa25676ed9b31d77bc918d0","6190fc794153dec7b344b11a361077413cc09627415416fef1375569f4028736","3f4eca17bf5cb95dd385a861ff52eaa6f69c9d35d4d410d3781c3c8bb1b711e1","026b4436ecf3884b9032fde46614f4ffb2513805177283c5cb592b6048e6cc9e","b07f64ff6ec710998a62b07377fbda0ab4c313ba1f0055bfe9faa22cffedd47c","cfb42d1c8aa66607ef3b1e2cee85d28148358ba62dc5e5146b317dae7bfd9a96","9c36d6df17ca69a65a2a654d9bbd86d74c6d6055e566429cd0a1de82827680eb","1e421ddd61b9216d1236a719d75097dcb6eb9b1c35676190646ca67ee5ee37a7","f163b1edf76fbde01836f8522fbe646fe2f55e313bb7fdd363891748f9b57c60","b3238e59de32c35d5b317c7947dbfe1649093b26bc7715bfbc1571817efe63f0","6a47f839dc425d636612ad7de3cb2bd642e8f0923a20a11692e6c5ced7ad138a","fb30c4db44de9e0628df971a739726018163bf8cf33f264bca1c445290cce691","b66519e16229b704374ea63956a9f46b638d7c109640d4e745c718990cd0d34d","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"e71aa3dcef67c4e22d57a8ff085806b986818c27d515a6c548547dbb06153c01","affectsGlobalScope":true},"64e2803203b14d7f104f570f2152fde13abb6edc17b2ddb33d81ad86cf43d494","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","9b2a8f604e7c0482a9061755f00b287cc99bd8718dc82d8207dd74c599b6dc43","d0fc76a91c828fbe3f0be5d683273634b7b101068333ceed975a8a9ac464137b",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","64576aba4ff801004122056ccd049f0597aa471dcfd7670a6a0b877ee8dd97c0","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"cc829932ffaf5c49092f878bec18af1fa5d8591b45a45e2b7f757f793cb3b4ed","47db10fdc4e76c4f4598cf7c91ba6bfde6cf6d8082c51860fe751643bf359739","53d2c24a3cbc00a88ebaf8ab8e1b6e206bc3a6647d544f877241684ea3d484e3","3be5ff21956db30c674bf2a98eb348e4ce7b4635cd9673413d86fbce761b77d8","0ce99c641ea20b0c0c09d093fc28f18f5ab31dc80033707a1ac3154399de2559","f0c33a0b325d3499cc9aded7d32886f998c9a27b465097c6cc136944d0aafdaa","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","9878d10740b7a3ab6f0e9a8df3a9660fa3f51eb5e84ab2f8cf7e12a775268b08","1606ea615c0a5ea9f5c1376a33e34c0e1112e8dee31a5b3b8a74ce781893aa6f","9fef9de633d01cb7f01f68195626a890ededd25cf96a1e785617d08c8668230d","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","c3689f70ce7563c2299f2dcb3c72efdf6f87ae510e7456fa6223c767d0ca99fc","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","82e1723b20fa0b15a7da0d1a03fec88348f82f640f7a2f308d6c0fac780cfc7c","605c24042a348b033b30121cff64380eb5d6d82853c5608f1f94ef72385cf5c9","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"eabefc2999c1489cf870e0c85af908900462fa245822d9a4616780a1a129945d","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"79d679a1d56574cc5cef92be1f0e5e8fb4af62fb55933b236670a0e0a23c83f6","c621d85bf77a7236ed73ee49672b43ded019200001a70008030ebf321774e6f1","d2a2f3fd9fd566004a9e99237baeb5dc1e1bb6540e2628e7d15d60585677d9ad","4d2ed619e48724def9b6ba8fe94809ba48d7590f778c65cc65c70e9209b54712","52969c1dbbbd68bab02d490e91a9ca033d8abf59f1d3d74f6de2f9c347c6d5d6","e816a1afa18c813ee9f06fac91c434e061b523ec4e8c987605978939ff0a213e","66ae3e727e27bfae52ea3977a7a8489abacdc3c5eef927a38b60d8863115187a","68be16a65e76ebe8b2fdf643f18522cc16260c394d69e23acdbf6c31efd3b6b8","68bf2547c99e4b015a4d2ab72457ad03ee68efc06ce0f5b06aefa0ba6ce1be88","94ea9331171f3a201250df171e4fda00aea7f23bbf1f72a097d43eab2a963510","9d3c1e4427d18a8ca963d9a5876fc39c65e5a1241f85cc064c39ca350a5895ff","32b43bc66d19c25e28912ff8808b57b902eb9f034f936f5c4e2dbb5b3dab7045","1a88826131a02adedc6e2973f9cb7484e3daabffb7efa28125d48ea00a195b0f","cc0dd6f1e1edc5c6714584c81b13639d85770cc8c9d198ba9a50cd54d2d2584f","e5258a0846290f09d195196483e64d810e8aaef63f1004084c68c646e0098f82","e3b26844556f078e0d61d6f0c738c9a989916472f6fe3e8d728587b723515d0a","3b2a51d38b85077f484254a6aa8307cebfd68cc959c8c960dd461b542a0b4f26","c79d804f12efe0318cda9942360627a14f43006a762c9ecdc134154b8d6c42d1","2eff693c448b037e854d46382b88c661e211ee7509f805b66760b5d8d3f030a1","88ff747a6ca76a01c53fa7ce6a1a73417bfdc823e81d9ee4493cd4dbdf083399","de98b87f10311ac7a68365a371df9e54d646576e67466f09387e2497ddcb22b1","f28cfe009e074239304847ac8a6c7b09b33f313f48b8b9157665c46e55df0e79","b5181e9421db9ab3461629c094002ce1e69778f363336c6784f196b351f53e33","1d4401a85cd2fc69df8effe2d15d673aad659296fccc1228ea328c5545e6c64a","4d7737bbeb90f349a8366d2f8a5e8b1715e45cb8118120bdd4d4e35f2e77964f","a7f48c3d4083085660d32529f57377478cd6871c8d8c8c36febebbd499208c91","4c77cec88e261981a9bf1ddc1da180b546e0136658ce165c49147b2f0209ee45","c7cce4bcf01af81a53ff359d073bfa36c04c198a20eac6088740c5f9e064f293","de18acda71730bac52f4b256ce7511bb56cc21f6f114c59c46782eff2f632857","abc9254937b81009aab90a3a99c615cbfb6b163b39a69012f4136343e325604e","95b6c669e7ed7c5358c03f8aa24986640f6125ee81bb99e70e9155974f7fd253","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","905c3e8f7ddaa6c391b60c05b2f4c3931d7127ad717a080359db3df510b7bdab","3bdd93ec24853e61bfa4c63ebaa425ff3e474156e87a47d90122e1d8cc717c1f","1db6491f25ced62f23f06d1f3700a790df0971726acb33669bbf4a8de2f769a9","6c6699a10f2a0dc8efcba6095b7382f37c4445e7b5a4117fd3e17ea379642ff8","ef62b4aa372f77458d84c26614b44129f929e263c81b5cd1034f5828a5530412","8610558ae88a43ad794c4ab1da4f0e8e174e0357c88f6cbb21f523e67414e9a9","0b0feb9837c561c0a67b61024328045bb16bac6e4b10f7b0b217d3b8b43b0b12","d8aab31ba8e618cc3eea10b0945de81cb93b7e8150a013a482332263b9305322","462bccdf75fcafc1ae8c30400c9425e1a4681db5d605d1a0edb4f990a54d8094","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb","7adecb2c3238794c378d336a8182d4c3dd2c4fa6fa1785e2797a3db550edea62","dc12dc0e5aa06f4e1a7692149b78f89116af823b9e1f1e4eae140cd3e0e674e6","1bfc6565b90c8771615cd8cfcf9b36efc0275e5e83ac7d9181307e96eb495161","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","7f82ef88bdb67d9a850dd1c7cd2d690f33e0f0acd208e3c9eba086f3670d4f73","100db324c7664a9a2a4b76d7131fc69dfdf38d24542afc19825d05f401259fab","80b186d68c99a4cc9443cb3cab6eb9a2a136c65a9973ed403761961ca2cd94e6","00e95882237b1f291eb7ed34acf069003d2e6dc977c374f9798d7ad59b4aabbd",{"version":"68565a1933f3c8bdad53ec9ffbd36def39501f48a91ba78f927d292d0727d63d","affectsGlobalScope":true},"88fb27c11edaa47971398dc09d3e9e30871c2bf40fb99766cb2bf3a01c72fd6a","020163a9eed23106914c4b1dc0b39fe4f5008295afe8a860b089f828310b6017","d3d1c118d11cb8e51829c8cc8ca27c77a0f872b0170736563523eae84ef8713c","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","e7c20bf3e73ed0996fabeb09284e93181900b6fa18c35aa16643c5449dffb64a","461605b73afc5223970022921d78f39e33b2490a42cc916c5fa8e133950e8a12","731b1cf869c8d522aa62a3e2846daee0e0cdcdc277087f498d8cc5069972d03b","6dedb2835327cd6647af35dbda94a4f28747c09029b57de6c1fbd99a67dd2f0a","4fd5dcd2e0eb7da80ad88f8f48b3b735ac5324285d82034de3af387c936408b8","3ebad776841b2584a6d1914b884652560cb6af600bcd1e2be4fbabbf96ffdc2f","8cf23a0959cf72d938eb7c58d6ecc261491c1b4a5553f06dfb9fe6c21d4eaf63","02244597f6a3429520f677b38afde5f2992ddbf401a37ed1be7043aa00961cc1","ceb4ebb74834b8c1a4f1820e6540a7360a5d132a85f00900f843ecaee289a0b4","d135c53fca5f5ae33a155ea9e0315d5ac5467d8cd9cc370cc04a335b16d86788","c291ce5a2a24e2805b52db59bd4bff2fd5581495e15141467ba78c7ff1e88a1c","473e3cc8169b15dcdc818b7087163bbb2dde056d1618c9b6beb8504a65c09ea3","3f67533c7d11f5676bfe46af2a9debca9122a3d7567a2a98c77dc44d7e9102fc","fc6278a3def2e7f51a3a4322aeef3debd7568507430e8d4244ee33e0303f8f47","71afbc331804623823a208d7afaf53c39fefd4b249940a57470fb9722f3da954","957a167314e1b95b2ec1159dc5847d51e00946955ee051bd2b1a7ccf71ece9bf","67d510008ecf71f23942071e9e74cb9c308ab5cc6a55f4eea04532b92ef10453","81c5b759d2255b622e6aa6ca65b617cd3bffa0e56cf79b573bfd3d7014e66978","ee36be1145b9ca7c3d97cc5eb4a31b1f521ee10f32accf1949ce0b51627d967c","4a91222d0587cba18070368e1b1944ddba8edae86ac907322ac018ca2035eb7e","f6801b113c81e3b4ef0b2b27e457cd1a269b72339312bb716be93a199d8d0bc3","3d90b3b33d8978a754025b8adc21ca60bfdf4351ba6ebfe8bd8eacaa2c73eb86","7a2095a20697bca2177bcc673b46c2beab8bbd1958e516fbbdf70f7a4b0663ce","4eb4951c3cd6320754d2d709f69e7011923f48e9f19c968f4cd78b6105f44e57","cc6a6b853ad7209727de5ab7518f714850aa08652c54260bcd4051bc61bae8a0","f19463dbbe9ce823ea3c158e277220d1b44fc4b2bf95bf2da4948cf71ee4307c","9d7ab67e9d5745e744001d6740df0318af32aa1d35e9bfc4cb43e9dbc54fd060","7dc526bb5a03d76b24e88562aaf525b9437ff680a28566f0c29ce34e39fe74ae","ef9e471d791e6ee76b40cf760bcd8d637a990db357c25a67955807b3c3936830","2b1e56e97da3772b79ab120612962098726a11dbed4a307a434850938d762220","e3acb73a594a33b697e60bd8f816b15da36168baaf956891fa06edf0eba5a17a","424a6a1e8343e7b4e0f98166d58b6a2c61c5000ef6b79f14a74264944b28efb5","0db7fa7d3603e0719e20669d44a64291ce5f018bff0d4c889b188d6930819bcd","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","a46a2e69d12afe63876ec1e58d70e5dbee6d3e74132f4468f570c3d69f809f1c","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","fc72135da24040641388fb5f2c2a7a99aa5b962c0fa125bd96fabeec63dd2e63","5426e62886b7be7806312d31a00e8f7dccd6fe63ba9bbefe99ee2eab29cc48a3","3ebae8c00411116a66fca65b08228ea0cf0b72724701f9b854442100aab55aba","8a8a96898906f065f296665e411f51010b51372fa260d5373bf9f64356703190","5923d8facbac6ecf7c84739a5c701a57af94a6f6648d6229a6c768cf28f0f8cb",{"version":"6ff2ca51e2c9d88d6d904c481879b12ec0cad2a69b88e220859a52207444773b","affectsGlobalScope":true},"0359682c54e487c4cab2b53b2b4d35cc8dea4d9914bc6abcdb5701f8b8e745a4","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","1583b9baa41a4db2f2bd4fedfafbe791a986fd785749d5cae2ff5171344e9b4c","c6c4fea9acc55d5e38ff2b70d57ab0b5cdbd08f8bc5d7a226e322cea128c5b57","105b9a2234dcb06ae922f2cd8297201136d416503ff7d16c72bfc8791e9895c1","b2d70a269840a9528db473ac7565442434333a05c1f66801a7a672e82beb903e"],"options":{"declaration":true,"declarationMap":true,"esModuleInterop":true,"module":1,"noImplicitOverride":true,"outDir":"./","sourceMap":true,"target":7},"fileIdsList":[[188],[103],[188,189,190,191,192],[188,190],[70,100],[128],[132],[142,146],[49],[57],[59],[60,65],[61,69,70,77,86],[61,62,69,77],[63,93],[64,65,70,78],[65,86],[66,67,69,77],[67],[68,69],[69],[69,70,71,86,92],[70,71],[72,77,86,92],[69,70,72,73,77,86,89,92],[72,74,86,89,92],[57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99],[69,75],[76,92],[67,69,77,86],[78],[79],[59,80],[81,91],[82],[83],[69,84],[84,85,93,95],[69,86],[87],[88],[77,86,89],[90],[77,91],[83,92],[93],[86,94],[95],[96],[69,71,86,92,95,97],[86,98],[86,100],[134],[69,86,100],[149],[139,147,148],[100,129],[100,131,133,135],[100,128],[129,130,136,137,138],[140,143,144,145],[131,146],[140,143],[142],[141],[47],[45,46,61,69,70,86],[69,100],[157,158,159,160,161,162,163,164,165,166,167,169,170,171,172,173,174],[92,157,161],[86,92,157],[92,157,160,161],[89,92,157,159],[77,89,92],[60,69,72,86,92,156],[160],[60,92,100,166],[60,100],[100,165],[157],[157,164,168],[157,160,168,169],[163],[72,157,167],[157,161,168,169],[92,157,160],[157,164],[60,86],[44,54,79,105,111,112,114,127,152,154,181,184],[48,54,56,111],[79,105,112],[48,72,92,118],[149,150],[48,112,118,124],[54,56,105,112,118,126],[102,105],[51,54,55,71,79,105,111,112,118,124,125],[51,55],[48,50,51,54,112],[52,53,112],[112],[54,61,70,71,79,102,105,182,183],[70,79],[70,78,79,80,93,102,104,112],[48,111,112,126,127,151,153],[79,81,105,112,118,127,151],[52,105,112,113],[56,105,112],[115,116,117,122,123],[48,56,105,112],[56,112,124],[112,120,121],[70,71,79,176,177],[54,105,112,179,180],[53,54,71,79,105,178],[71,79,176],[102,105,112,175,179],[56,101,102,105,111,112],[56,106,109,110,112],[56,65,70,79,105,106,107,108,112],[56,71,79,105,106,112],[186],[118],[112,120],[112,118,119,121]],"referencedMap":[[190,1],[104,2],[193,3],[189,1],[191,4],[192,1],[194,5],[132,6],[133,7],[197,8],[50,9],[57,10],[59,11],[60,12],[61,13],[62,14],[63,15],[64,16],[65,17],[66,18],[67,19],[68,20],[69,21],[70,22],[71,23],[72,24],[73,25],[74,26],[100,27],[75,28],[76,29],[77,30],[78,31],[79,32],[80,33],[81,34],[82,35],[83,36],[84,37],[85,38],[86,39],[87,40],[88,41],[89,42],[90,43],[91,44],[92,45],[93,46],[94,47],[95,48],[96,49],[97,50],[98,51],[107,52],[202,53],[203,54],[182,21],[150,55],[148,55],[149,56],[130,57],[136,58],[129,59],[139,60],[135,53],[195,61],[147,62],[144,63],[146,61],[145,63],[143,64],[142,65],[48,66],[46,66],[47,67],[196,65],[101,68],[175,69],[164,70],[174,71],[162,72],[160,73],[159,74],[157,75],[163,76],[167,77],[165,78],[166,79],[158,80],[169,81],[170,82],[172,83],[168,84],[171,85],[161,86],[173,87],[156,88],[185,89],[112,90],[113,91],[186,92],[151,93],[125,94],[127,95],[118,96],[126,97],[56,98],[55,99],[54,100],[51,101],[184,102],[183,103],[105,104],[154,105],[152,106],[114,107],[123,108],[124,109],[116,110],[117,101],[115,111],[122,112],[178,113],[181,114],[179,115],[177,116],[180,117],[106,118],[111,119],[109,120],[110,121],[187,122],[119,123],[121,124],[120,125]],"exportedModulesMap":[[190,1],[104,2],[193,3],[189,1],[191,4],[192,1],[194,5],[132,6],[133,7],[197,8],[50,9],[57,10],[59,11],[60,12],[61,13],[62,14],[63,15],[64,16],[65,17],[66,18],[67,19],[68,20],[69,21],[70,22],[71,23],[72,24],[73,25],[74,26],[100,27],[75,28],[76,29],[77,30],[78,31],[79,32],[80,33],[81,34],[82,35],[83,36],[84,37],[85,38],[86,39],[87,40],[88,41],[89,42],[90,43],[91,44],[92,45],[93,46],[94,47],[95,48],[96,49],[97,50],[98,51],[107,52],[202,53],[203,54],[182,21],[150,55],[148,55],[149,56],[130,57],[136,58],[129,59],[139,60],[135,53],[195,61],[147,62],[144,63],[146,61],[145,63],[143,64],[142,65],[48,66],[46,66],[47,67],[196,65],[101,68],[175,69],[164,70],[174,71],[162,72],[160,73],[159,74],[157,75],[163,76],[167,77],[165,78],[166,79],[158,80],[169,81],[170,82],[172,83],[168,84],[171,85],[161,86],[173,87],[156,88],[185,89],[112,90],[113,91],[186,92],[151,93],[125,94],[127,95],[118,96],[126,97],[56,98],[55,99],[54,100],[51,101],[184,102],[183,103],[105,104],[154,105],[152,106],[114,107],[123,108],[124,109],[116,110],[117,101],[115,111],[122,112],[178,113],[181,114],[179,115],[177,116],[180,117],[106,118],[111,119],[109,120],[110,121],[187,122],[119,123],[121,124],[120,125]],"semanticDiagnosticsPerFile":[190,188,103,104,193,189,191,192,49,194,128,132,133,197,198,50,57,59,60,61,62,63,64,65,66,67,68,69,70,71,58,99,72,73,74,100,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,199,200,107,201,134,202,203,155,131,44,52,182,176,150,148,149,130,136,129,137,138,139,135,195,147,140,144,146,145,143,142,141,102,48,45,46,47,196,108,101,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,33,34,35,36,7,43,41,37,38,39,40,1,42,11,10,175,164,174,162,160,159,157,163,167,165,166,158,169,170,172,168,171,161,173,156,185,112,113,186,151,125,127,118,126,56,55,53,54,51,153,184,183,105,154,152,114,123,124,116,117,115,122,178,181,179,177,180,106,111,109,110,187,119,121,120]},"version":"4.5.5"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elastic/synthetics",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.27",
|
|
4
4
|
"description": "Elastic synthetic monitoring agent",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"clean": "rimraf dist",
|
|
9
9
|
"prepublish": "npm run clean && npm run build",
|
|
10
10
|
"build": "tsc",
|
|
11
|
+
"build:locations": "sh utils/update_locations.sh",
|
|
11
12
|
"watch": "tsc -w",
|
|
12
13
|
"lint": "eslint . --rulesdir utils/eslint-rules",
|
|
13
14
|
"lint:fix": "npm run lint -- --fix",
|
|
@@ -43,6 +44,7 @@
|
|
|
43
44
|
"archiver": "^5.3.0",
|
|
44
45
|
"commander": "^9.0.0",
|
|
45
46
|
"deepmerge": "^4.2.2",
|
|
47
|
+
"enquirer": "^2.3.6",
|
|
46
48
|
"esbuild": "^0.14.27",
|
|
47
49
|
"expect": "^27.0.2",
|
|
48
50
|
"http-proxy": "^1.18.1",
|
package/src/cli.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
*
|
|
26
26
|
*/
|
|
27
27
|
|
|
28
|
-
import { program, Option } from 'commander';
|
|
28
|
+
import { program, Option, Argument } from 'commander';
|
|
29
29
|
import { CliArgs, PushOptions } from './common_types';
|
|
30
30
|
import { reporters } from './reporters';
|
|
31
31
|
import { normalizeOptions, parseThrottling } from './options';
|
|
@@ -65,7 +65,7 @@ program
|
|
|
65
65
|
.option('--inline', 'Run inline journeys from heartbeat')
|
|
66
66
|
.option('-r, --require <modules...>', 'module(s) to preload')
|
|
67
67
|
.option('--no-headless', 'run browser in headful mode')
|
|
68
|
-
.option('--sandbox', 'enable chromium sandboxing'
|
|
68
|
+
.option('--sandbox', 'enable chromium sandboxing')
|
|
69
69
|
.option('--rich-events', 'Mimics a heartbeat run')
|
|
70
70
|
.option(
|
|
71
71
|
'--capability <features...>',
|
|
@@ -146,9 +146,15 @@ program
|
|
|
146
146
|
|
|
147
147
|
// Push command
|
|
148
148
|
program
|
|
149
|
-
.command('push
|
|
149
|
+
.command('push')
|
|
150
|
+
.addArgument(
|
|
151
|
+
new Argument(
|
|
152
|
+
'[journeys...]',
|
|
153
|
+
'file path to journey directory and individual files'
|
|
154
|
+
).argRequired()
|
|
155
|
+
)
|
|
150
156
|
.description(
|
|
151
|
-
'Push
|
|
157
|
+
'Push journeys to create montors within Kibana monitor management UI'
|
|
152
158
|
)
|
|
153
159
|
.option(
|
|
154
160
|
'--schedule <time-in-minutes>',
|
|
@@ -158,17 +164,17 @@ program
|
|
|
158
164
|
.addOption(
|
|
159
165
|
new Option(
|
|
160
166
|
'--locations <locations...>',
|
|
161
|
-
'
|
|
167
|
+
'default list of locations from which your monitors will run.'
|
|
162
168
|
).choices(SyntheticsLocations)
|
|
163
169
|
)
|
|
164
170
|
.requiredOption(
|
|
165
|
-
'--project <id
|
|
166
|
-
'
|
|
171
|
+
'--project <project-id>',
|
|
172
|
+
'id that will be used for logically grouping monitors'
|
|
167
173
|
)
|
|
168
174
|
.requiredOption('--url <url>', 'kibana URL to upload the monitors')
|
|
169
175
|
.requiredOption(
|
|
170
176
|
'--auth <auth>',
|
|
171
|
-
'
|
|
177
|
+
'API key used for Kibana authentication(https://www.elastic.co/guide/en/kibana/master/api-keys.html).'
|
|
172
178
|
)
|
|
173
179
|
.option(
|
|
174
180
|
'--space <space>',
|
|
@@ -176,15 +182,23 @@ program
|
|
|
176
182
|
'default'
|
|
177
183
|
)
|
|
178
184
|
.option('--delete', 'automatically delete the stale monitors.')
|
|
179
|
-
.action(async (
|
|
185
|
+
.action(async (journeys, cmdOpts: PushOptions) => {
|
|
180
186
|
try {
|
|
181
|
-
|
|
182
|
-
await loadTestFiles(cliArgs, files);
|
|
187
|
+
await loadTestFiles({ inline: false }, journeys);
|
|
183
188
|
const options = normalizeOptions({ ...program.opts(), ...cmdOpts });
|
|
189
|
+
if (!options.schedule) {
|
|
190
|
+
throw error(`Set default schedule in minutes for all monitors via '--schedule <time-in-minutes>' OR
|
|
191
|
+
configure via Synthetics config file under 'monitors.schedule' field.`);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
if (!options.locations) {
|
|
195
|
+
throw error(`Set default location for all monitors via CLI as '--locations <locations...>' OR
|
|
196
|
+
configure via Synthetics config file under 'monitors.locations' field.`);
|
|
197
|
+
}
|
|
184
198
|
const monitors = runner.buildMonitors(options);
|
|
185
199
|
await push(monitors, cmdOpts);
|
|
186
200
|
} catch (e) {
|
|
187
|
-
console.error(e);
|
|
201
|
+
e && console.error(e);
|
|
188
202
|
process.exit(1);
|
|
189
203
|
}
|
|
190
204
|
});
|
|
@@ -198,7 +212,7 @@ program
|
|
|
198
212
|
const generator = await new Generator(resolve(process.cwd(), dir));
|
|
199
213
|
await generator.setup();
|
|
200
214
|
} catch (e) {
|
|
201
|
-
error(e);
|
|
215
|
+
e && error(e);
|
|
202
216
|
process.exit(1);
|
|
203
217
|
}
|
|
204
218
|
});
|
package/src/core/gatherer.ts
CHANGED
|
@@ -65,12 +65,12 @@ export class Gatherer {
|
|
|
65
65
|
}
|
|
66
66
|
|
|
67
67
|
static async getUserAgent(userAgent?: string) {
|
|
68
|
-
const syntheticsIdentifier = ' Elastic/Synthetics';
|
|
69
68
|
if (!userAgent) {
|
|
70
69
|
const session = await Gatherer.browser.newBrowserCDPSession();
|
|
71
70
|
({ userAgent } = await session.send('Browser.getVersion'));
|
|
71
|
+
return userAgent + ' Elastic/Synthetics';
|
|
72
72
|
}
|
|
73
|
-
return userAgent
|
|
73
|
+
return userAgent;
|
|
74
74
|
}
|
|
75
75
|
|
|
76
76
|
static setNetworkConditions(
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MIT License
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2020-present, Elastic NV
|
|
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
|
+
// DO NOT EDIT - UPDATE WITH `npm run build:locations`
|
|
27
|
+
export const LocationsMap = {
|
|
28
|
+
japan: 'asia-northeast1-a',
|
|
29
|
+
india: 'asia-south1-a',
|
|
30
|
+
singapore: 'asia-southeast1-a',
|
|
31
|
+
australia_east: 'australia-southeast1-a',
|
|
32
|
+
united_kingdom: 'europe-west2-a',
|
|
33
|
+
germany: 'europe-west3-a',
|
|
34
|
+
canada_east: 'northamerica-northeast1-a',
|
|
35
|
+
brazil: 'southamerica-east1-a',
|
|
36
|
+
us_east: 'us-east4-a',
|
|
37
|
+
us_west: 'us-west1-a',
|
|
38
|
+
};
|
package/src/dsl/monitor.ts
CHANGED
|
@@ -31,9 +31,13 @@ import {
|
|
|
31
31
|
Params,
|
|
32
32
|
PlaywrightOptions,
|
|
33
33
|
} from '../common_types';
|
|
34
|
+
import { LocationsMap } from './locations';
|
|
35
|
+
|
|
36
|
+
export type SyntheticsLocationsType = keyof typeof LocationsMap;
|
|
37
|
+
export const SyntheticsLocations = Object.keys(
|
|
38
|
+
LocationsMap
|
|
39
|
+
) as SyntheticsLocationsType[];
|
|
34
40
|
|
|
35
|
-
export const SyntheticsLocations = ['US East', 'EU West'] as const;
|
|
36
|
-
export type SyntheticsLocationsType = typeof SyntheticsLocations[number];
|
|
37
41
|
export type MonitorConfig = {
|
|
38
42
|
id?: string;
|
|
39
43
|
name?: string;
|
package/src/generator/index.ts
CHANGED
|
@@ -27,13 +27,20 @@ import { existsSync } from 'fs';
|
|
|
27
27
|
import { mkdir, readFile, writeFile } from 'fs/promises';
|
|
28
28
|
import { bold, cyan, yellow } from 'kleur/colors';
|
|
29
29
|
import { join, relative, dirname, basename } from 'path';
|
|
30
|
+
import { prompt } from 'enquirer';
|
|
31
|
+
import { SyntheticsLocations } from '../dsl/monitor';
|
|
30
32
|
import { progress, write as stdWrite } from '../helpers';
|
|
31
|
-
import { getPackageManager, runCommand } from './utils';
|
|
33
|
+
import { getPackageManager, replaceTemplates, runCommand } from './utils';
|
|
32
34
|
|
|
33
35
|
// Templates that are required for setting up new
|
|
34
36
|
// synthetics project
|
|
35
37
|
const templateDir = join(__dirname, '..', '..', 'templates');
|
|
36
38
|
|
|
39
|
+
type PromptOptions = {
|
|
40
|
+
locations: string;
|
|
41
|
+
schedule: number;
|
|
42
|
+
};
|
|
43
|
+
|
|
37
44
|
export class Generator {
|
|
38
45
|
pkgManager = 'npm';
|
|
39
46
|
constructor(public projectDir: string) {}
|
|
@@ -44,13 +51,37 @@ export class Generator {
|
|
|
44
51
|
}
|
|
45
52
|
}
|
|
46
53
|
|
|
47
|
-
async
|
|
54
|
+
async questions() {
|
|
55
|
+
if (process.env.TEST_QUESTIONS) {
|
|
56
|
+
return JSON.parse(process.env.TEST_QUESTIONS);
|
|
57
|
+
}
|
|
58
|
+
const question = [
|
|
59
|
+
{
|
|
60
|
+
type: 'select',
|
|
61
|
+
name: 'locations',
|
|
62
|
+
message: 'Select the default location where you want to run monitors.',
|
|
63
|
+
choices: SyntheticsLocations,
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
type: 'numeral',
|
|
67
|
+
name: 'schedule',
|
|
68
|
+
message: 'Set default schedule in minutes for all monitors',
|
|
69
|
+
initial: 10,
|
|
70
|
+
},
|
|
71
|
+
];
|
|
72
|
+
return await prompt<PromptOptions>(question);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
async files(answers: PromptOptions) {
|
|
48
76
|
const fileMap = new Map<string, string>();
|
|
49
77
|
// Setup Synthetics config file
|
|
50
78
|
const configFile = 'synthetics.config.ts';
|
|
51
79
|
fileMap.set(
|
|
52
80
|
configFile,
|
|
53
|
-
|
|
81
|
+
replaceTemplates(
|
|
82
|
+
await readFile(join(templateDir, configFile), 'utf-8'),
|
|
83
|
+
answers
|
|
84
|
+
)
|
|
54
85
|
);
|
|
55
86
|
|
|
56
87
|
// Setup example journey file
|
|
@@ -59,11 +90,6 @@ export class Generator {
|
|
|
59
90
|
journeyFile,
|
|
60
91
|
await readFile(join(templateDir, journeyFile), 'utf-8')
|
|
61
92
|
);
|
|
62
|
-
// Setup gitignore
|
|
63
|
-
fileMap.set(
|
|
64
|
-
'.gitignore',
|
|
65
|
-
await readFile(join(templateDir, '.gitignore'), 'utf-8')
|
|
66
|
-
);
|
|
67
93
|
|
|
68
94
|
// Create files
|
|
69
95
|
for (const [relativePath, content] of fileMap) {
|
|
@@ -122,7 +148,7 @@ export class Generator {
|
|
|
122
148
|
|
|
123
149
|
// Add push command
|
|
124
150
|
const project = basename(this.projectDir);
|
|
125
|
-
pkgJSON.scripts.push = `npx @elastic/synthetics push journeys --project ${project} --url http://localhost:5601 --auth
|
|
151
|
+
pkgJSON.scripts.push = `npx @elastic/synthetics push journeys --project ${project} --url http://localhost:5601 --auth apiKey`;
|
|
126
152
|
|
|
127
153
|
await this.createFile(
|
|
128
154
|
filename,
|
|
@@ -131,6 +157,20 @@ export class Generator {
|
|
|
131
157
|
);
|
|
132
158
|
}
|
|
133
159
|
|
|
160
|
+
async patchGitIgnore() {
|
|
161
|
+
const gitIgnorePath = join(this.projectDir, '.gitignore');
|
|
162
|
+
let gitIgnore = '';
|
|
163
|
+
if (existsSync(gitIgnorePath)) {
|
|
164
|
+
const contents = await readFile(gitIgnorePath, 'utf-8');
|
|
165
|
+
gitIgnore += contents.trimEnd() + '\n';
|
|
166
|
+
}
|
|
167
|
+
if (!gitIgnore.includes('node_modules')) {
|
|
168
|
+
gitIgnore += 'node_modules/\n';
|
|
169
|
+
}
|
|
170
|
+
gitIgnore += '.synthetics/\n';
|
|
171
|
+
await writeFile(gitIgnorePath, gitIgnore, 'utf-8');
|
|
172
|
+
}
|
|
173
|
+
|
|
134
174
|
banner() {
|
|
135
175
|
stdWrite(
|
|
136
176
|
bold(`
|
|
@@ -141,7 +181,7 @@ All set, you can run below commands inside: ${this.projectDir}:
|
|
|
141
181
|
Push monitors to Kibana: ${cyan(runCommand(this.pkgManager, 'push'))}
|
|
142
182
|
|
|
143
183
|
${yellow(
|
|
144
|
-
'Make sure to update the Kibana url and
|
|
184
|
+
'Make sure to update the Kibana url and api keys before pushing monitors to Kibana.'
|
|
145
185
|
)}
|
|
146
186
|
|
|
147
187
|
Visit https://www.elastic.co/guide/en/observability/master/synthetics-journeys.html to learn more.
|
|
@@ -151,9 +191,11 @@ Visit https://www.elastic.co/guide/en/observability/master/synthetics-journeys.h
|
|
|
151
191
|
|
|
152
192
|
async setup() {
|
|
153
193
|
await this.directory();
|
|
194
|
+
const answers = await this.questions();
|
|
154
195
|
await this.package();
|
|
155
|
-
await this.files();
|
|
196
|
+
await this.files(answers);
|
|
156
197
|
await this.patchPkgJSON();
|
|
198
|
+
await this.patchGitIgnore();
|
|
157
199
|
this.banner();
|
|
158
200
|
}
|
|
159
201
|
}
|
package/src/generator/utils.ts
CHANGED
|
@@ -39,3 +39,16 @@ export function runCommand(pkgManager: string, command: string) {
|
|
|
39
39
|
}
|
|
40
40
|
return `npm run ${command}`;
|
|
41
41
|
}
|
|
42
|
+
|
|
43
|
+
export function replaceTemplates(input: string, literals: Record<string, any>) {
|
|
44
|
+
for (const key in literals) {
|
|
45
|
+
const finalValue = literals[key];
|
|
46
|
+
input = input.replace(new RegExp(`'{{` + key + `}}'`, 'g'), () => {
|
|
47
|
+
if (typeof finalValue == 'number') {
|
|
48
|
+
return Number(finalValue);
|
|
49
|
+
}
|
|
50
|
+
return finalValue;
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
return input;
|
|
54
|
+
}
|
package/src/options.ts
CHANGED
|
@@ -27,7 +27,6 @@ import merge from 'deepmerge';
|
|
|
27
27
|
import { readConfig } from './config';
|
|
28
28
|
import { getNetworkConditions, DEFAULT_THROTTLING_OPTIONS } from './helpers';
|
|
29
29
|
import type { CliArgs, RunOptions, ThrottlingOptions } from './common_types';
|
|
30
|
-
import { MonitorConfig } from './dsl/monitor';
|
|
31
30
|
|
|
32
31
|
/**
|
|
33
32
|
* Set debug based on DEBUG ENV and -d flags
|
|
@@ -100,21 +99,30 @@ export function normalizeOptions(cliArgs: CliArgs): RunOptions {
|
|
|
100
99
|
*/
|
|
101
100
|
options.params = Object.freeze(merge(config.params, cliArgs.params || {}));
|
|
102
101
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
102
|
+
/**
|
|
103
|
+
* Merge playwright options from CLI and Synthetics config
|
|
104
|
+
* and prefer individual options over other option
|
|
105
|
+
*/
|
|
106
|
+
const playwrightOpts = merge(
|
|
107
|
+
config.playwrightOptions,
|
|
108
|
+
cliArgs.playwrightOptions || {}
|
|
109
|
+
);
|
|
110
|
+
options.playwrightOptions = {
|
|
111
|
+
...playwrightOpts,
|
|
112
|
+
headless: cliArgs.headless,
|
|
113
|
+
chromiumSandbox: cliArgs.sandbox ?? playwrightOpts?.chromiumSandbox,
|
|
114
|
+
ignoreHTTPSErrors:
|
|
115
|
+
cliArgs.ignoreHttpsErrors ?? playwrightOpts?.ignoreHTTPSErrors,
|
|
116
|
+
};
|
|
112
117
|
|
|
113
|
-
|
|
118
|
+
/**
|
|
119
|
+
* Get the default monitor config from synthetics.config.ts file
|
|
120
|
+
*/
|
|
121
|
+
const monitor = config.monitor;
|
|
114
122
|
if (cliArgs.throttling) {
|
|
115
123
|
const throttleConfig = merge.all([
|
|
116
|
-
|
|
117
|
-
|
|
124
|
+
DEFAULT_THROTTLING_OPTIONS,
|
|
125
|
+
monitor?.throttling || {},
|
|
118
126
|
cliArgs.throttling as ThrottlingOptions,
|
|
119
127
|
]);
|
|
120
128
|
options.throttling = throttleConfig;
|
|
@@ -126,26 +134,12 @@ export function normalizeOptions(cliArgs: CliArgs): RunOptions {
|
|
|
126
134
|
options.throttling = {};
|
|
127
135
|
}
|
|
128
136
|
|
|
129
|
-
options.
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
options.schedule =
|
|
133
|
-
cliArgs.schedule ?? config.monitor?.schedule ?? defaults.schedule;
|
|
137
|
+
options.schedule = cliArgs.schedule ?? monitor?.schedule;
|
|
138
|
+
options.locations = cliArgs.locations ?? monitor?.locations;
|
|
134
139
|
|
|
135
140
|
return options;
|
|
136
141
|
}
|
|
137
142
|
|
|
138
|
-
/**
|
|
139
|
-
* Get the default monitor configuration for all journeys
|
|
140
|
-
*/
|
|
141
|
-
export function getDefaultMonitorConfig(): MonitorConfig {
|
|
142
|
-
return {
|
|
143
|
-
throttling: DEFAULT_THROTTLING_OPTIONS,
|
|
144
|
-
locations: ['US East'],
|
|
145
|
-
schedule: 10,
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
143
|
/**
|
|
150
144
|
* Parses the throttling CLI settings and also
|
|
151
145
|
* adapts to the format to keep the backwards compatability
|