@treasuredata/tdx 2026.3.27 → 2026.3.29
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/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/auth-login-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.d.ts +141 -2
- package/dist/commands/parent-segment-command.d.ts.map +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/parent-segment-command.js.map +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/client/cdp-api-client.d.ts +29 -1
- package/dist/sdk/client/cdp-api-client.d.ts.map +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/cdp-api-client.js.map +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.d.ts +228 -0
- package/dist/sdk/personalization.d.ts.map +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/personalization.js.map +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.d.ts +57 -0
- package/dist/sdk/realtime.d.ts.map +1 -1
- package/dist/sdk/realtime.js +1 -1
- package/dist/sdk/realtime.js.map +1 -1
- package/dist/sdk/schedule.js +1 -1
- package/dist/sdk/segment/child-segment-yaml.js +1 -1
- package/dist/sdk/segment/fields-display.js +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/cdp.d.ts +76 -0
- package/dist/sdk/types/cdp.d.ts.map +1 -1
- package/dist/sdk/types/index.d.ts +1 -1
- package/dist/sdk/types/index.d.ts.map +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/index.js.map +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/prompt.js +1 -1
- package/dist/utils/spinner.js +1 -1
- package/dist/utils/sse-parser.js +1 -1
- package/dist/utils/string-utils.js +1 -1
- package/dist/utils/table-ref-parser.js +1 -1
- package/dist/utils/tdx-logger.js +1 -1
- package/dist/utils/version-check.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a183_0x37f446=a183_0x5a09;(function(_0x49354f,_0x4bd336){const _0x526304=a183_0x5a09,_0x567bc7=_0x49354f();while(!![]){try{const _0x2e9e95=-parseInt(_0x526304(0x170))/0x1+-parseInt(_0x526304(0x164))/0x2*(-parseInt(_0x526304(0x15e))/0x3)+parseInt(_0x526304(0x171))/0x4+parseInt(_0x526304(0x16d))/0x5*(parseInt(_0x526304(0x16e))/0x6)+parseInt(_0x526304(0x160))/0x7+parseInt(_0x526304(0x166))/0x8*(parseInt(_0x526304(0x175))/0x9)+-parseInt(_0x526304(0x16b))/0xa*(parseInt(_0x526304(0x176))/0xb);if(_0x2e9e95===_0x4bd336)break;else _0x567bc7['push'](_0x567bc7['shift']());}catch(_0x39614e){_0x567bc7['push'](_0x567bc7['shift']());}}}(a183_0x121e,0x4fce5));import{existsSync,readFileSync,writeFileSync}from'fs';import a183_0x3e3286 from'path';const TDX_CONFIG_FILE=a183_0x37f446(0x174),WORKFLOWS_DIR='workflows';export function findWorkflowTdxConfigPath(_0x226e65=process[a183_0x37f446(0x16a)]()){const _0x46ad59=a183_0x37f446;let _0x306e88=a183_0x3e3286[_0x46ad59(0x17b)](_0x226e65);const _0x531277=a183_0x3e3286[_0x46ad59(0x17a)](_0x306e88)[_0x46ad59(0x178)];while(_0x306e88!==_0x531277){const _0x124ceb=a183_0x3e3286[_0x46ad59(0x15f)](_0x306e88,TDX_CONFIG_FILE);if(existsSync(_0x124ceb))try{const _0x4426f8=readFileSync(_0x124ceb,_0x46ad59(0x168)),_0x358459=JSON['parse'](_0x4426f8);if(_0x358459&&typeof _0x358459===_0x46ad59(0x161)&&'workflow_project'in _0x358459)return _0x124ceb;}catch{}_0x306e88=a183_0x3e3286[_0x46ad59(0x163)](_0x306e88);}return null;}export function loadWorkflowTdxConfig(_0x509f78){const _0x52d4ca=a183_0x37f446,_0x1278cb=readFileSync(_0x509f78,_0x52d4ca(0x168));let _0x196ba0;try{_0x196ba0=JSON[_0x52d4ca(0x17a)](_0x1278cb);}catch{throw new Error(_0x52d4ca(0x165)+_0x509f78);}if(!_0x196ba0||typeof _0x196ba0!==_0x52d4ca(0x161))throw new Error('Invalid\x20tdx.json:\x20expected\x20object');const _0x546415=_0x196ba0;if(!_0x546415[_0x52d4ca(0x169)]||typeof _0x546415[_0x52d4ca(0x169)]!==_0x52d4ca(0x16f))throw new Error('Invalid\x20tdx.json:\x20missing\x20or\x20invalid\x20\x27workflow_project\x27\x20field');return{'workflow_project':_0x546415[_0x52d4ca(0x169)],'workflow_project_id':typeof _0x546415[_0x52d4ca(0x16c)]===_0x52d4ca(0x16f)?_0x546415[_0x52d4ca(0x16c)]:undefined,'last_pulled_revision':typeof _0x546415[_0x52d4ca(0x173)]===_0x52d4ca(0x16f)?_0x546415[_0x52d4ca(0x173)]:undefined,'last_pulled_at':typeof _0x546415[_0x52d4ca(0x179)]==='string'?_0x546415[_0x52d4ca(0x179)]:undefined,'last_pushed_revision':typeof _0x546415[_0x52d4ca(0x172)]===_0x52d4ca(0x16f)?_0x546415['last_pushed_revision']:undefined,'last_pushed_at':typeof _0x546415['last_pushed_at']===_0x52d4ca(0x16f)?_0x546415[_0x52d4ca(0x177)]:undefined};}export function findWorkflowTdxConfig(_0x40c7e=process['cwd']()){const _0x2c5559=a183_0x37f446,_0x25471d=findWorkflowTdxConfigPath(_0x40c7e);if(!_0x25471d)throw new Error(_0x2c5559(0x15d));const _0x15f09e=loadWorkflowTdxConfig(_0x25471d),_0x46e34c=a183_0x3e3286['dirname'](_0x25471d);return{'config':_0x15f09e,'configPath':_0x25471d,'configDir':_0x46e34c};}export function tryFindWorkflowTdxConfig(_0xec2ce0){try{return findWorkflowTdxConfig(_0xec2ce0);}catch{return null;}}function a183_0x5a09(_0x5d30d4,_0x3c1f4b){_0x5d30d4=_0x5d30d4-0x15d;const _0x121e39=a183_0x121e();let _0x5a098a=_0x121e39[_0x5d30d4];return _0x5a098a;}export function getWorkflowProjectDir(_0x38e1c0,_0x23a96b=process[a183_0x37f446(0x16a)]()){return a183_0x3e3286['join'](_0x23a96b,WORKFLOWS_DIR,_0x38e1c0);}export function getWorkflowTdxConfigPath(_0x3a07f2,_0x3a2221=process[a183_0x37f446(0x16a)]()){return a183_0x3e3286['join'](getWorkflowProjectDir(_0x3a07f2,_0x3a2221),TDX_CONFIG_FILE);}export function createWorkflowTdxConfigContent(_0x33e28f,_0x5080c7,_0x3cdac4){const _0x570546=a183_0x37f446,_0x2a67fa={'workflow_project':_0x33e28f,..._0x5080c7&&{'workflow_project_id':_0x5080c7},..._0x3cdac4&&{'last_pulled_revision':_0x3cdac4},'last_pulled_at':new Date()[_0x570546(0x162)]()};return JSON[_0x570546(0x167)](_0x2a67fa,null,0x2)+'\x0a';}export function saveWorkflowTdxConfig(_0x4a1e22,_0x571b9f){const _0x4d8bd5=a183_0x37f446,_0x14f409=JSON['stringify'](_0x571b9f,null,0x2)+'\x0a';writeFileSync(_0x4a1e22,_0x14f409,_0x4d8bd5(0x168));}export function updateWorkflowTdxConfig(_0x38baaf,_0x416fa8){const _0x196910=loadWorkflowTdxConfig(_0x38baaf),_0x20390={..._0x196910,..._0x416fa8};saveWorkflowTdxConfig(_0x38baaf,_0x20390);}function a183_0x121e(){const _0xe3e27d=['2279672ntRaOB','last_pushed_revision','last_pulled_revision','tdx.json','9zmMMBw','18784799aHGMbG','last_pushed_at','root','last_pulled_at','parse','resolve','No\x20workflow\x20tdx.json\x20found.\x20Please\x20run\x20\x27tdx\x20wf\x20pull\x20<project>\x27\x20first\x20to\x20create\x20the\x20folder\x20structure.','3054qPpvAA','join','3518732JKrqiE','object','toISOString','dirname','1236IVoJVq','Invalid\x20JSON\x20in\x20','4415432aMlhQp','stringify','utf-8','workflow_project','cwd','10KUPJdr','workflow_project_id','38820pRHtCQ','54psRIFF','string','288929KmpKFN'];a183_0x121e=function(){return _0xe3e27d;};return a183_0x121e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a184_0x4e4f(_0x40a68c,_0x254e35){_0x40a68c=_0x40a68c-0x1a3;const _0x5e9266=a184_0x5e92();let _0x4e4fa3=_0x5e9266[_0x40a68c];return _0x4e4fa3;}const a184_0x3c94b6=a184_0x4e4f;(function(_0x2ed06c,_0x6b4cf0){const _0x4915c1=a184_0x4e4f,_0x12c961=_0x2ed06c();while(!![]){try{const _0x5eba32=parseInt(_0x4915c1(0x1b6))/0x1+parseInt(_0x4915c1(0x1ad))/0x2*(-parseInt(_0x4915c1(0x1a8))/0x3)+parseInt(_0x4915c1(0x1a5))/0x4+-parseInt(_0x4915c1(0x1b4))/0x5*(parseInt(_0x4915c1(0x1ba))/0x6)+-parseInt(_0x4915c1(0x1b2))/0x7*(parseInt(_0x4915c1(0x1b3))/0x8)+parseInt(_0x4915c1(0x1ac))/0x9*(parseInt(_0x4915c1(0x1aa))/0xa)+parseInt(_0x4915c1(0x1af))/0xb;if(_0x5eba32===_0x6b4cf0)break;else _0x12c961['push'](_0x12c961['shift']());}catch(_0x206f2e){_0x12c961['push'](_0x12c961['shift']());}}}(a184_0x5e92,0x59640));import{promises as a184_0x33a09b}from'fs';import a184_0x16f4b4 from'path';import a184_0x4fbd16 from'ignore';export const WORKFLOW_FILE_EXTENSION=a184_0x3c94b6(0x1a7);export function shouldIncludeInArchive(_0x2fc2ac){const _0x4557b7=a184_0x3c94b6;if(_0x2fc2ac===_0x4557b7(0x1bb))return!![];if(_0x2fc2ac[_0x4557b7(0x1b5)]('.'))return![];if(_0x2fc2ac[_0x4557b7(0x1b8)]('~'))return![];if(_0x2fc2ac===_0x4557b7(0x1a9)||_0x2fc2ac===_0x4557b7(0x1b1))return![];return!![];}export function parseDigdagignore(_0x5a7689){const _0x33ede0=a184_0x3c94b6;return _0x5a7689[_0x33ede0(0x1b0)]('\x0a')[_0x33ede0(0x1b7)](_0x3dd9d3=>_0x3dd9d3['trim']())['filter'](_0x1c2ad0=>_0x1c2ad0[_0x33ede0(0x1a4)]>0x0&&!_0x1c2ad0[_0x33ede0(0x1b5)]('#'));}export async function loadDigdagignore(_0x694800){const _0x25fb73=a184_0x3c94b6,_0x4d411e=a184_0x16f4b4[_0x25fb73(0x1b9)](_0x694800,'.digdagignore');try{const _0x117d77=await a184_0x33a09b['readFile'](_0x4d411e,'utf-8');return parseDigdagignore(_0x117d77);}catch(_0x17bb30){if(_0x17bb30[_0x25fb73(0x1a6)]==='ENOENT')return null;throw _0x17bb30;}}export function createIgnoreInstance(_0xdefcc6){const _0x522fd6=a184_0x3c94b6,_0x46da81=a184_0x4fbd16();return _0xdefcc6&&_0xdefcc6[_0x522fd6(0x1a4)]>0x0&&_0x46da81['add'](_0xdefcc6),_0x46da81;}export function addScopedPatterns(_0x479157,_0x548444,_0x307969){const _0x2eca1a=a184_0x3c94b6,_0xd88aa9=_0x548444[_0x2eca1a(0x1b7)](_0x313ec6=>{const _0x3b9490=_0x2eca1a;if(_0x313ec6['startsWith']('!')){const _0x51f26c=_0x313ec6[_0x3b9490(0x1ae)](0x1);if(_0x51f26c[_0x3b9490(0x1b5)]('/'))return'!'+_0x307969+_0x51f26c;return'!'+_0x307969+'/'+_0x51f26c;}if(_0x313ec6['startsWith']('/'))return''+_0x307969+_0x313ec6;return _0x307969+'/'+_0x313ec6;});return _0x479157[_0x2eca1a(0x1a3)](_0xd88aa9),_0x479157;}function a184_0x5e92(){const _0x4af4a4=['59121oqZWPs','map','endsWith','join','108DBoGtC','.digdag','add','length','986684aoIcxG','code','.dig','10803MHMmRV','Thumbs.db','2606270uJiyMG','replace','9jfPtzI','156NBturH','slice','2559007GfNFQi','split','.DS_Store','42WsoQPG','136184EUFwjD','13860AXFlUb','startsWith'];a184_0x5e92=function(){return _0x4af4a4;};return a184_0x5e92();}export function shouldIgnoreWithInstance(_0x287650,_0x56cc2b,_0x5a7983){const _0x248cb6=a184_0x3c94b6,_0x4c40c7=_0x56cc2b[_0x248cb6(0x1ab)](/\\/g,'/'),_0x251e77=_0x5a7983?_0x4c40c7+'/':_0x4c40c7;return _0x287650['ignores'](_0x251e77);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a185_0x3c30(_0x79c2ab,_0x1290b2){_0x79c2ab=_0x79c2ab-0x1a5;const _0x314e94=a185_0x314e();let _0x3c30f7=_0x314e94[_0x79c2ab];return _0x3c30f7;}const a185_0x143bd6=a185_0x3c30;(function(_0x411f0a,_0x21267c){const _0x4fa073=a185_0x3c30,_0x3de236=_0x411f0a();while(!![]){try{const _0xdbc860=-parseInt(_0x4fa073(0x1b1))/0x1*(-parseInt(_0x4fa073(0x1b8))/0x2)+parseInt(_0x4fa073(0x1b2))/0x3+parseInt(_0x4fa073(0x1b7))/0x4*(-parseInt(_0x4fa073(0x1ac))/0x5)+parseInt(_0x4fa073(0x1c0))/0x6+-parseInt(_0x4fa073(0x1a7))/0x7+parseInt(_0x4fa073(0x1b3))/0x8*(parseInt(_0x4fa073(0x1ad))/0x9)+parseInt(_0x4fa073(0x1b9))/0xa;if(_0xdbc860===_0x21267c)break;else _0x3de236['push'](_0x3de236['shift']());}catch(_0x15c2de){_0x3de236['push'](_0x3de236['shift']());}}}(a185_0x314e,0xe6664));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a185_0x314e(){const _0x146a02=['originalFetch','1716436hIWUsa','9302KSiEnR','1200690QLRlrX','run','map','push','options','createFetch','http','3537012xYqYar','verify','fetch','warn','1309840WTFLIr','args','ERROR','join','site','10sqqfNs','27kUBomp','log','fail','runSequence','37yeNBfa','1038717bNTqWk','2029752QopKxh','error','test-api-key-id/test-api-key-secret'];a185_0x314e=function(){return _0x146a02;};return a185_0x314e();}export class CommandRunner{['http'];[a185_0x143bd6(0x1b6)];constructor(){const _0x3afc09=a185_0x143bd6;this[_0x3afc09(0x1bf)]=createHTTPMock(),this[_0x3afc09(0x1b6)]=global[_0x3afc09(0x1a5)];}['setup'](){const _0x15ed33=a185_0x143bd6;this[_0x15ed33(0x1b6)]=global['fetch'],global[_0x15ed33(0x1a5)]=this[_0x15ed33(0x1bf)][_0x15ed33(0x1be)]();}['teardown'](_0x190041){const _0x57238c=a185_0x143bd6;try{_0x190041?.[_0x57238c(0x1af)]&&this['http'][_0x57238c(0x1c1)](_0x190041);}finally{global['fetch']=this['originalFetch'],this[_0x57238c(0x1bf)]['reset']();}}async[a185_0x143bd6(0x1ba)](_0x9de4a4,_0x5386fc={}){const _0x1fd4ff=a185_0x143bd6,_0x3de68a=[],_0x348d58=[],_0x229ba3=console[_0x1fd4ff(0x1ae)],_0x52ee02=console['error'],_0x2f1089=console[_0x1fd4ff(0x1a6)];console['log']=(..._0x4523ba)=>{const _0x2d8ad=_0x1fd4ff;_0x3de68a[_0x2d8ad(0x1bc)](_0x4523ba[_0x2d8ad(0x1bb)](String)['join']('\x20'));},console[_0x1fd4ff(0x1b4)]=(..._0xc468c7)=>{const _0x1bf474=_0x1fd4ff;_0x348d58[_0x1bf474(0x1bc)](_0xc468c7[_0x1bf474(0x1bb)](String)['join']('\x20'));},console[_0x1fd4ff(0x1a6)]=(..._0x2a93d9)=>{const _0x51e24e=_0x1fd4ff;_0x348d58[_0x51e24e(0x1bc)](_0x2a93d9['map'](String)[_0x51e24e(0x1aa)]('\x20'));};try{const _0x50e967=new TDX({'site':_0x5386fc[_0x1fd4ff(0x1bd)]?.[_0x1fd4ff(0x1ab)]??'us01','apiKey':_0x1fd4ff(0x1b5),'logLevel':LogLevel[_0x1fd4ff(0x1a9)]}),_0x584a1c={'options':createTestGlobalOptions(_0x5386fc['options']),'args':_0x5386fc[_0x1fd4ff(0x1a8)]??[],'tdx':_0x50e967},_0x360b11=new _0x9de4a4(),_0x393641=await _0x360b11[_0x1fd4ff(0x1ba)](_0x584a1c);return{'exitCode':_0x393641,'stdout':_0x3de68a,'stderr':_0x348d58};}finally{console[_0x1fd4ff(0x1ae)]=_0x229ba3,console[_0x1fd4ff(0x1b4)]=_0x52ee02,console[_0x1fd4ff(0x1a6)]=_0x2f1089;}}async[a185_0x143bd6(0x1b0)](_0x1e120d){const _0x25b650=a185_0x143bd6,_0x3b05d5=[];for(const {command:_0x279192,options:_0x156b45}of _0x1e120d){const _0x57840e=await this[_0x25b650(0x1ba)](_0x279192,_0x156b45);_0x3b05d5['push'](_0x57840e);if(_0x57840e['exitCode']!==0x0)break;}return _0x3b05d5;}}export function createCommandRunner(){return new CommandRunner();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x39ddd3,_0x1f258a){const _0x5edc9b=a186_0x5b83,_0x205faa=_0x39ddd3();while(!![]){try{const _0x48e7b7=parseInt(_0x5edc9b(0x1af))/0x1*(parseInt(_0x5edc9b(0x1a4))/0x2)+parseInt(_0x5edc9b(0x1aa))/0x3+parseInt(_0x5edc9b(0x1b0))/0x4+parseInt(_0x5edc9b(0x1bd))/0x5+parseInt(_0x5edc9b(0x1a7))/0x6+parseInt(_0x5edc9b(0x1b6))/0x7+-parseInt(_0x5edc9b(0x1a5))/0x8;if(_0x48e7b7===_0x1f258a)break;else _0x205faa['push'](_0x205faa['shift']());}catch(_0x2475c3){_0x205faa['push'](_0x205faa['shift']());}}}(a186_0x4689,0x3e0a8));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';function a186_0x4689(){const _0x95adcc=['user','log','options','test-api-key-id/test-api-key-secret','3198748gOXHHD','join','warn','logs','us01','query','ERROR','2493735NnbQMl','args','error','reset','9458oKsgmF','13588624stuqQD','tdx','728856jhXiWm','30000','push','1183827LXkaaI','table','init','workflow','test-api-key','13fbleFh','1677700NiKskS','map'];a186_0x4689=function(){return _0x95adcc;};return a186_0x4689();}import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x3e234e){const _0x46a5b7=a186_0x5b83;return{'site':_0x46a5b7(0x1ba),'apiKey':_0x46a5b7(0x1b5),'logLevel':LogLevel[_0x46a5b7(0x1bc)],..._0x3e234e};}export function createTestGlobalOptions(_0x38d526){const _0x43085e=a186_0x5b83;return{'site':_0x43085e(0x1ba),'format':_0x43085e(0x1ab),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x43085e(0x1a8),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x43085e(0x1bc)],..._0x38d526};}export async function initTestLogger(){const _0x2993ff=a186_0x5b83;Logger[_0x2993ff(0x1c0)]();const _0xb16403=join(getGlobalCacheDir(),_0x2993ff(0x1b9),'tdx-test.log');await Logger[_0x2993ff(0x1ac)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0xb16403,'rotate':![]})]});}function a186_0x5b83(_0x509eda,_0x40ccb3){_0x509eda=_0x509eda-0x1a4;const _0x468964=a186_0x4689();let _0x5b83ca=_0x468964[_0x509eda];return _0x5b83ca;}export function resetTestLogger(){const _0xccb8ec=a186_0x5b83;Logger[_0xccb8ec(0x1c0)]();}export function createMockTDX(_0x55373f){const _0x3fff5b=a186_0x5b83;return{'context':{'site':_0x3fff5b(0x1ba),'apiKey':_0x3fff5b(0x1ae),'logLevel':LogLevel[_0x3fff5b(0x1bc)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x55373f?.[_0x3fff5b(0x1bb)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x55373f?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x55373f?.['journey']},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x55373f?.[_0x3fff5b(0x1ad)]},'user':{'show':vi['fn'](),..._0x55373f?.[_0x3fff5b(0x1b2)]},'api':{'request':vi['fn'](),..._0x55373f?.['api']},..._0x55373f};}export function createTestCommandContext(_0x2e87a4){const _0x4cf5cd=a186_0x5b83,_0x27092c=createTestGlobalOptions(_0x2e87a4?.[_0x4cf5cd(0x1b4)]),_0x80c40d=_0x2e87a4?.[_0x4cf5cd(0x1a6)]??createMockTDX();return{'options':_0x27092c,'args':_0x2e87a4?.[_0x4cf5cd(0x1be)]??[],'tdx':_0x80c40d};}export function captureConsole(){const _0x2f8b35=a186_0x5b83,_0x215b72=[],_0x470bb0=[],_0x551041=console['log'],_0x26cbca=console[_0x2f8b35(0x1bf)],_0x15c76c=console['warn'];return console[_0x2f8b35(0x1b3)]=(..._0x57cd88)=>{const _0x3cae06=_0x2f8b35;_0x215b72[_0x3cae06(0x1a9)](_0x57cd88[_0x3cae06(0x1b1)](String)[_0x3cae06(0x1b7)]('\x20'));},console[_0x2f8b35(0x1bf)]=(..._0x158d66)=>{const _0x4b5391=_0x2f8b35;_0x470bb0[_0x4b5391(0x1a9)](_0x158d66[_0x4b5391(0x1b1)](String)[_0x4b5391(0x1b7)]('\x20'));},console[_0x2f8b35(0x1b8)]=(..._0x3d0a69)=>{const _0xaa4390=_0x2f8b35;_0x470bb0[_0xaa4390(0x1a9)](_0x3d0a69['map'](String)[_0xaa4390(0x1b7)]('\x20'));},{'stdout':_0x215b72,'stderr':_0x470bb0,'restore':()=>{const _0x4f29d5=_0x2f8b35;console[_0x4f29d5(0x1b3)]=_0x551041,console[_0x4f29d5(0x1bf)]=_0x26cbca,console[_0x4f29d5(0x1b8)]=_0x15c76c;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a187_0x4e2b21=a187_0x4d2f;(function(_0x496a56,_0x1a86e4){const _0x363588=a187_0x4d2f,_0x5749b5=_0x496a56();while(!![]){try{const _0x1f9a2b=parseInt(_0x363588(0x9a))/0x1*(-parseInt(_0x363588(0xd3))/0x2)+parseInt(_0x363588(0x8a))/0x3*(parseInt(_0x363588(0x8f))/0x4)+parseInt(_0x363588(0x85))/0x5*(parseInt(_0x363588(0x99))/0x6)+parseInt(_0x363588(0xe4))/0x7+parseInt(_0x363588(0x9c))/0x8+-parseInt(_0x363588(0xc0))/0x9*(parseInt(_0x363588(0x8d))/0xa)+-parseInt(_0x363588(0x8c))/0xb;if(_0x1f9a2b===_0x1a86e4)break;else _0x5749b5['push'](_0x5749b5['shift']());}catch(_0x431e70){_0x5749b5['push'](_0x5749b5['shift']());}}}(a187_0x38b8,0xb3d13));function a187_0x4d2f(_0x4afb8e,_0x1a7a6a){_0x4afb8e=_0x4afb8e-0x7f;const _0x38b866=a187_0x38b8();let _0x4d2fbd=_0x38b866[_0x4afb8e];return _0x4d2fbd;}export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z','permission':a187_0x4e2b21(0xdc)},'withTables':{'name':a187_0x4e2b21(0xe5),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a187_0x4e2b21(0x9f),'permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':'users','type':a187_0x4e2b21(0xb9),'schema':JSON[a187_0x4e2b21(0x8b)]([['id',a187_0x4e2b21(0x91)],[a187_0x4e2b21(0x93),'long'],[a187_0x4e2b21(0xaa),a187_0x4e2b21(0x91)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a187_0x4e2b21(0xb8),'updated_at':a187_0x4e2b21(0xb8)},'events':{'id':0x303a,'name':'events','type':a187_0x4e2b21(0xb9),'schema':JSON[a187_0x4e2b21(0x8b)]([[a187_0x4e2b21(0x7f),a187_0x4e2b21(0x91)],[a187_0x4e2b21(0x93),a187_0x4e2b21(0xeb)],[a187_0x4e2b21(0xe1),a187_0x4e2b21(0x91)],[a187_0x4e2b21(0xa0),a187_0x4e2b21(0x91)],[a187_0x4e2b21(0xd2),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a187_0x4e2b21(0xb8),'updated_at':a187_0x4e2b21(0xc4)}},'parentSegment':{'basic':{'id':'ps-123456','name':'Test\x20Parent\x20Segment','description':a187_0x4e2b21(0xe3),'status':'active','master_table':{'database':'cdp_db','table':a187_0x4e2b21(0xb0)},'attributes':[{'name':a187_0x4e2b21(0xa5),'type':a187_0x4e2b21(0x91),'key':!![]},{'name':a187_0x4e2b21(0xca),'type':a187_0x4e2b21(0x91)},{'name':a187_0x4e2b21(0xa7),'type':a187_0x4e2b21(0xea)}],'created_at':a187_0x4e2b21(0xb8),'updated_at':a187_0x4e2b21(0xab)},'withBehaviors':{'id':a187_0x4e2b21(0xc8),'name':a187_0x4e2b21(0xc5),'description':a187_0x4e2b21(0xce),'status':a187_0x4e2b21(0xa3),'master_table':{'database':a187_0x4e2b21(0x98),'table':a187_0x4e2b21(0x96)},'behaviors':[{'name':a187_0x4e2b21(0xad),'table':{'database':'events_db','table':a187_0x4e2b21(0xad)},'join_key':a187_0x4e2b21(0xa5)},{'name':a187_0x4e2b21(0x95),'table':{'database':a187_0x4e2b21(0x9b),'table':a187_0x4e2b21(0xb4)},'join_key':a187_0x4e2b21(0xa5)}],'created_at':a187_0x4e2b21(0xb8),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':'cs-456789','name':a187_0x4e2b21(0xcc),'description':a187_0x4e2b21(0x81),'parent_segment_id':a187_0x4e2b21(0x88),'status':'active','rules':[{'type':a187_0x4e2b21(0xe7),'field':a187_0x4e2b21(0xc6),'operator':a187_0x4e2b21(0xdb),'value':a187_0x4e2b21(0xd0)}],'count':0x1388,'created_at':a187_0x4e2b21(0xb8),'updated_at':a187_0x4e2b21(0xab)},'withMultipleRules':{'id':'cs-111222','name':a187_0x4e2b21(0x8e),'description':a187_0x4e2b21(0x80),'parent_segment_id':a187_0x4e2b21(0x88),'status':a187_0x4e2b21(0xa3),'rules':[{'type':'attribute','field':'last_login','operator':a187_0x4e2b21(0xdb),'value':a187_0x4e2b21(0xd0)},{'type':a187_0x4e2b21(0xe7),'field':'lifetime_value','operator':a187_0x4e2b21(0xb1),'value':0x3e8}],'count':0x5dc,'created_at':a187_0x4e2b21(0xb8),'updated_at':a187_0x4e2b21(0xab)}},'journey':{'basic':{'id':a187_0x4e2b21(0x92),'name':a187_0x4e2b21(0xc7),'description':a187_0x4e2b21(0xaf),'status':'draft','version':0x1,'steps':[{'id':'step-1','type':'wait','duration':'1d'},{'id':'step-2','type':a187_0x4e2b21(0xd4),'activation_id':a187_0x4e2b21(0x83)}],'created_at':a187_0x4e2b21(0xb8),'updated_at':'2024-01-15T00:00:00Z'},'withDecision':{'id':'j-def456','name':a187_0x4e2b21(0xd8),'description':a187_0x4e2b21(0xbb),'status':a187_0x4e2b21(0xa3),'version':0x2,'steps':[{'id':a187_0x4e2b21(0xde),'type':a187_0x4e2b21(0xa1),'segment_id':a187_0x4e2b21(0xcf),'yes_path':'step-2','no_path':a187_0x4e2b21(0xc2)},{'id':'step-2','type':a187_0x4e2b21(0xd4),'activation_id':'act-email'},{'id':a187_0x4e2b21(0xc2),'type':a187_0x4e2b21(0xc3)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x4e2b21(0xab)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a187_0x4e2b21(0xaa),'type':a187_0x4e2b21(0x9e)},{'name':'count','type':'bigint'}],'data':[[a187_0x4e2b21(0xc1),'Alice',0x64],[a187_0x4e2b21(0xb3),a187_0x4e2b21(0xee),0xc8],['user-3',a187_0x4e2b21(0x82),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a187_0x4e2b21(0xaa),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a187_0x4e2b21(0xa2),'type':a187_0x4e2b21(0x89)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a187_0x4e2b21(0xe9),'email':a187_0x4e2b21(0xe8),'created_at':a187_0x4e2b21(0xb8),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a187_0x4e2b21(0xa9),'email':a187_0x4e2b21(0xa8),'created_at':'2023-01-01T00:00:00Z','updated_at':a187_0x4e2b21(0xab),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a187_0x4e2b21(0x86),'database':'test_db','status':a187_0x4e2b21(0xb5),'query':a187_0x4e2b21(0xc9),'start_at':a187_0x4e2b21(0x9d),'end_at':a187_0x4e2b21(0x97),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a187_0x4e2b21(0x86),'database':a187_0x4e2b21(0x94),'status':a187_0x4e2b21(0xae),'query':a187_0x4e2b21(0xd5),'start_at':a187_0x4e2b21(0x87),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a187_0x4e2b21(0x86),'database':a187_0x4e2b21(0x94),'status':a187_0x4e2b21(0xac),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a187_0x4e2b21(0xba),'end_at':a187_0x4e2b21(0xbc),'duration':0x1,'result_size':null,'error':a187_0x4e2b21(0xb2)}},'workflow':{'basic':{'id':a187_0x4e2b21(0xe6),'name':a187_0x4e2b21(0xb6),'project':a187_0x4e2b21(0xd7),'revision':a187_0x4e2b21(0xbf),'timezone':a187_0x4e2b21(0xed),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a187_0x4e2b21(0xdf),'name':a187_0x4e2b21(0x90),'project':a187_0x4e2b21(0xbe),'revision':a187_0x4e2b21(0xdd),'timezone':'America/Los_Angeles','schedule':{'cron':a187_0x4e2b21(0x84)},'last_session':{'id':'sess-111','status':a187_0x4e2b21(0xb5),'started_at':'2024-01-15T09:00:00Z','finished_at':a187_0x4e2b21(0xf0)}}},'apiError':{'unauthorized':{'errors':{'error':a187_0x4e2b21(0xe0),'message':a187_0x4e2b21(0xe0),'severity':a187_0x4e2b21(0xac),'status_code':0x191}},'notFound':{'errors':{'error':a187_0x4e2b21(0xbd),'message':a187_0x4e2b21(0xec),'severity':a187_0x4e2b21(0xac),'status_code':0x194}},'rateLimited':{'detail':a187_0x4e2b21(0xd1)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':a187_0x4e2b21(0xa6),'instance':a187_0x4e2b21(0xd9)}}};export function createDatabase(_0x492f2c){const _0x53f0e5=a187_0x4e2b21;return{...fixtures[_0x53f0e5(0xb7)][_0x53f0e5(0xcb)],..._0x492f2c};}export function createTable(_0x6dd6b9){const _0x1ef3a1=a187_0x4e2b21;return{...fixtures[_0x1ef3a1(0xa4)][_0x1ef3a1(0xcb)],..._0x6dd6b9};}export function createParentSegment(_0x36dd9c){const _0x26efdf=a187_0x4e2b21;return{...fixtures[_0x26efdf(0xe2)][_0x26efdf(0xcb)],..._0x36dd9c};}export function createSegment(_0x1bcc20){const _0xc67b95=a187_0x4e2b21;return{...fixtures[_0xc67b95(0xd6)][_0xc67b95(0xcb)],..._0x1bcc20};}export function createJourney(_0x2dcd6c){const _0xa747d9=a187_0x4e2b21;return{...fixtures['journey'][_0xa747d9(0xcb)],..._0x2dcd6c};}export function createQueryResult(_0x5df852){const _0x1ca210=a187_0x4e2b21;return{...fixtures['queryResult'][_0x1ca210(0xcb)],..._0x5df852};}export function createUser(_0x4cd2f){const _0x588d81=a187_0x4e2b21;return{...fixtures[_0x588d81(0xef)][_0x588d81(0xcb)],..._0x4cd2f};}function a187_0x38b8(){const _0x5c0324=['properties','2256vcGJVd','activation','SELECT\x20COUNT(*)\x20FROM\x20events','segment','data_pipeline','Purchase\x20Reminder','/v3/database/list','completed','TimeWithinPast','administrator','def456','step-1','wf-67890','Invalid\x20API\x20key','user_id','parentSegment','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','4461912AnkwlT','production_db','wf-12345','attribute','test@example.com','Test\x20User','timestamp','long','The\x20requested\x20resource\x20does\x20not\x20exist','UTC','Bob','user','2024-01-15T09:05:00Z','event_id','Active\x20users\x20with\x20high\x20lifetime\x20value','Users\x20active\x20in\x20the\x20last\x2030\x20days','Charlie','act-123','0\x20*\x20*\x20*\x20*','20hBWdti','presto','2024-01-15T10:05:00Z','ps-123456','bigint','33HvLSSP','stringify','8551136KTsLxP','30GDMSYy','High\x20Value\x20Active\x20Users','492468wOgqJK','hourly_sync','string','j-abc123','time','test_db','page_views','customers','2024-01-15T10:00:05Z','cdp_db','97764PEqFPI','735qNjXxw','events_db','11777384IxCKcI','2024-01-15T10:00:00Z','varchar','2024-01-15T08:00:00Z','event_type','decision_point','total','active','table','customer_id','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','created_at','admin@example.com','Admin\x20User','name','2024-01-15T00:00:00Z','error','purchases','running','Onboarding\x20journey\x20for\x20new\x20users','unified_customers','Greater','Table\x20does\x20not\x20exist:\x20nonexistent_table','user-2','pageviews','success','daily_etl','database','2024-01-01T00:00:00Z','log','2024-01-15T10:10:00Z','Journey\x20with\x20decision\x20point','2024-01-15T10:10:01Z','Resource\x20not\x20found','data_sync','abc123','3558195GzNjaF','user-1','step-3','end','2024-01-15T12:00:00Z','Customers\x20with\x20Behaviors','last_login','Welcome\x20Journey','ps-789012','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','email','basic','Active\x20Users','workflow','Parent\x20segment\x20with\x20behavioral\x20data','cs-456789','30d','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'];a187_0x38b8=function(){return _0x5c0324;};return a187_0x38b8();}export function createJob(_0x2e1177){const _0x7319f0=a187_0x4e2b21;return{...fixtures['job'][_0x7319f0(0xda)],..._0x2e1177};}export function createWorkflow(_0x259f7a){const _0x2c58ad=a187_0x4e2b21;return{...fixtures[_0x2c58ad(0xcd)][_0x2c58ad(0xcb)],..._0x259f7a};}
|
|
1
|
+
const a187_0x69793a=a187_0x4f70;(function(_0x324c8d,_0x2c936d){const _0x6642cc=a187_0x4f70,_0xfb54f9=_0x324c8d();while(!![]){try{const _0x27fe83=parseInt(_0x6642cc(0xb6))/0x1+parseInt(_0x6642cc(0xc2))/0x2+-parseInt(_0x6642cc(0xf1))/0x3*(-parseInt(_0x6642cc(0x8e))/0x4)+parseInt(_0x6642cc(0xc3))/0x5+-parseInt(_0x6642cc(0xe9))/0x6*(parseInt(_0x6642cc(0xbe))/0x7)+parseInt(_0x6642cc(0xb1))/0x8+-parseInt(_0x6642cc(0xa4))/0x9;if(_0x27fe83===_0x2c936d)break;else _0xfb54f9['push'](_0xfb54f9['shift']());}catch(_0x93afdf){_0xfb54f9['push'](_0xfb54f9['shift']());}}}(a187_0x3408,0x4bd50));export const fixtures={'database':{'basic':{'name':a187_0x69793a(0xad),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z','permission':a187_0x69793a(0xd2)},'withTables':{'name':a187_0x69793a(0xab),'count':0x64,'created_at':a187_0x69793a(0xb8),'updated_at':a187_0x69793a(0xa8),'permission':a187_0x69793a(0xd6)}},'table':{'basic':{'id':0x3039,'name':a187_0x69793a(0xd9),'type':a187_0x69793a(0x91),'schema':JSON[a187_0x69793a(0xaf)]([['id',a187_0x69793a(0xc4)],[a187_0x69793a(0x9c),a187_0x69793a(0x8f)],[a187_0x69793a(0xa6),a187_0x69793a(0xc4)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0x93)},'events':{'id':0x303a,'name':'events','type':a187_0x69793a(0x91),'schema':JSON[a187_0x69793a(0xaf)]([[a187_0x69793a(0xb2),a187_0x69793a(0xc4)],[a187_0x69793a(0x9c),'long'],[a187_0x69793a(0xf9),a187_0x69793a(0xc4)],[a187_0x69793a(0x9e),a187_0x69793a(0xc4)],['properties','map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a187_0x69793a(0x93),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a187_0x69793a(0xb7),'name':a187_0x69793a(0xe8),'description':a187_0x69793a(0xf7),'status':a187_0x69793a(0x8d),'master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a187_0x69793a(0xe6),'type':'string','key':!![]},{'name':a187_0x69793a(0xbc),'type':a187_0x69793a(0xc4)},{'name':a187_0x69793a(0xe1),'type':'timestamp'}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withBehaviors':{'id':'ps-789012','name':a187_0x69793a(0xd0),'description':a187_0x69793a(0xf6),'status':a187_0x69793a(0x8d),'master_table':{'database':a187_0x69793a(0xd7),'table':a187_0x69793a(0xdb)},'behaviors':[{'name':a187_0x69793a(0xc5),'table':{'database':'events_db','table':a187_0x69793a(0xc5)},'join_key':a187_0x69793a(0xe6)},{'name':a187_0x69793a(0xec),'table':{'database':a187_0x69793a(0xf3),'table':a187_0x69793a(0xa9)},'join_key':a187_0x69793a(0xe6)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x69793a(0xfa)}},'segment':{'basic':{'id':a187_0x69793a(0xb9),'name':a187_0x69793a(0xed),'description':a187_0x69793a(0x98),'parent_segment_id':a187_0x69793a(0xb7),'status':a187_0x69793a(0x8d),'rules':[{'type':a187_0x69793a(0x97),'field':a187_0x69793a(0x94),'operator':a187_0x69793a(0x99),'value':'30d'}],'count':0x1388,'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withMultipleRules':{'id':a187_0x69793a(0xf4),'name':a187_0x69793a(0xe7),'description':a187_0x69793a(0x9d),'parent_segment_id':a187_0x69793a(0xb7),'status':a187_0x69793a(0x8d),'rules':[{'type':a187_0x69793a(0x97),'field':'last_login','operator':a187_0x69793a(0x99),'value':a187_0x69793a(0xb0)},{'type':'attribute','field':a187_0x69793a(0xd1),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a187_0x69793a(0xfa)}},'journey':{'basic':{'id':a187_0x69793a(0xa1),'name':a187_0x69793a(0xfd),'description':a187_0x69793a(0xc6),'status':'draft','version':0x1,'steps':[{'id':a187_0x69793a(0xcc),'type':'wait','duration':'1d'},{'id':a187_0x69793a(0xc1),'type':a187_0x69793a(0xf5),'activation_id':a187_0x69793a(0xfb)}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)},'withDecision':{'id':a187_0x69793a(0xd4),'name':a187_0x69793a(0xaa),'description':a187_0x69793a(0xa7),'status':'active','version':0x2,'steps':[{'id':a187_0x69793a(0xcc),'type':a187_0x69793a(0x96),'segment_id':a187_0x69793a(0xb9),'yes_path':a187_0x69793a(0xc1),'no_path':a187_0x69793a(0xd8)},{'id':a187_0x69793a(0xc1),'type':a187_0x69793a(0xf5),'activation_id':a187_0x69793a(0xcb)},{'id':a187_0x69793a(0xd8),'type':'end'}],'created_at':a187_0x69793a(0x93),'updated_at':a187_0x69793a(0xfa)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a187_0x69793a(0xc8)},{'name':'name','type':'varchar'},{'name':a187_0x69793a(0xea),'type':a187_0x69793a(0xef)}],'data':[[a187_0x69793a(0xa0),a187_0x69793a(0xc0),0x64],[a187_0x69793a(0x9b),'Bob',0xc8],['user-3','Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a187_0x69793a(0xc8)},{'name':a187_0x69793a(0xa6),'type':a187_0x69793a(0xc8)}],'data':[]},'singleRow':{'schema':[{'name':a187_0x69793a(0xcf),'type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':a187_0x69793a(0x93),'updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a187_0x69793a(0xd5),'created_at':a187_0x69793a(0xee),'updated_at':a187_0x69793a(0xfa),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a187_0x69793a(0xa5),'database':a187_0x69793a(0xad),'status':a187_0x69793a(0xca),'query':a187_0x69793a(0xae),'start_at':a187_0x69793a(0xd3),'end_at':a187_0x69793a(0x95),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a187_0x69793a(0xa5),'database':'test_db','status':a187_0x69793a(0xf8),'query':a187_0x69793a(0xe2),'start_at':a187_0x69793a(0xa2),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a187_0x69793a(0xad),'status':a187_0x69793a(0xc9),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a187_0x69793a(0xce),'end_at':a187_0x69793a(0xbb),'duration':0x1,'result_size':null,'error':a187_0x69793a(0xfc)}},'workflow':{'basic':{'id':'wf-12345','name':a187_0x69793a(0xf2),'project':a187_0x69793a(0xc7),'revision':a187_0x69793a(0xb4),'timezone':a187_0x69793a(0xdf),'schedule':{'cron':a187_0x69793a(0xac)}},'withSessions':{'id':'wf-67890','name':'hourly_sync','project':a187_0x69793a(0x9a),'revision':a187_0x69793a(0xbd),'timezone':a187_0x69793a(0xba),'schedule':{'cron':a187_0x69793a(0xa3)},'last_session':{'id':a187_0x69793a(0xde),'status':a187_0x69793a(0xca),'started_at':a187_0x69793a(0xda),'finished_at':a187_0x69793a(0xb3)}}},'apiError':{'unauthorized':{'errors':{'error':a187_0x69793a(0xdc),'message':a187_0x69793a(0xdc),'severity':a187_0x69793a(0xc9),'status_code':0x191}},'notFound':{'errors':{'error':'Resource\x20not\x20found','message':a187_0x69793a(0xe5),'severity':a187_0x69793a(0xc9),'status_code':0x194}},'rateLimited':{'detail':a187_0x69793a(0xe0)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a187_0x69793a(0xe3),'status':0x193,'detail':a187_0x69793a(0xf0),'instance':a187_0x69793a(0x90)}}};export function createDatabase(_0x592af1){const _0x3fffc2=a187_0x69793a;return{...fixtures['database'][_0x3fffc2(0xbf)],..._0x592af1};}export function createTable(_0x3e0fdd){const _0x12f70d=a187_0x69793a;return{...fixtures[_0x12f70d(0xdd)][_0x12f70d(0xbf)],..._0x3e0fdd};}export function createParentSegment(_0x302a21){const _0x5ac965=a187_0x69793a;return{...fixtures[_0x5ac965(0x9f)][_0x5ac965(0xbf)],..._0x302a21};}export function createSegment(_0x1316d8){const _0x47336d=a187_0x69793a;return{...fixtures[_0x47336d(0xe4)][_0x47336d(0xbf)],..._0x1316d8};}function a187_0x3408(){const _0x43024e=['long','/v3/database/list','log','job','2024-01-01T00:00:00Z','last_login','2024-01-15T10:00:05Z','decision_point','attribute','Users\x20active\x20in\x20the\x20last\x2030\x20days','TimeWithinPast','data_sync','user-2','time','Active\x20users\x20with\x20high\x20lifetime\x20value','event_type','parentSegment','user-1','j-abc123','2024-01-15T10:05:00Z','0\x20*\x20*\x20*\x20*','4771656ZSyyck','presto','name','Journey\x20with\x20decision\x20point','2024-01-15T08:00:00Z','pageviews','Purchase\x20Reminder','production_db','0\x200\x20*\x20*\x20*','test_db','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','stringify','30d','2281264ybOAzv','event_id','2024-01-15T09:05:00Z','abc123','queryResult','181981LUrvWk','ps-123456','2023-06-15T10:30:00Z','cs-456789','America/Los_Angeles','2024-01-15T10:10:01Z','email','def456','1043rVFJAY','basic','Alice','step-2','669196Gsvbhc','1399260Hsglyk','string','purchases','Onboarding\x20journey\x20for\x20new\x20users','data_pipeline','varchar','error','success','act-email','step-1','journey','2024-01-15T10:10:00Z','total','Customers\x20with\x20Behaviors','lifetime_value','administrator','2024-01-15T10:00:00Z','j-def456','admin@example.com','full_access','cdp_db','step-3','users','2024-01-15T09:00:00Z','customers','Invalid\x20API\x20key','table','sess-111','UTC','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','created_at','SELECT\x20COUNT(*)\x20FROM\x20events','Forbidden','segment','The\x20requested\x20resource\x20does\x20not\x20exist','customer_id','High\x20Value\x20Active\x20Users','Test\x20Parent\x20Segment','17094VHdyXX','count','user','page_views','Active\x20Users','2023-01-01T00:00:00Z','bigint','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','275556YEXsJG','daily_etl','events_db','cs-111222','activation','Parent\x20segment\x20with\x20behavioral\x20data','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','running','user_id','2024-01-15T00:00:00Z','act-123','Table\x20does\x20not\x20exist:\x20nonexistent_table','Welcome\x20Journey','active','8EWdgsL'];a187_0x3408=function(){return _0x43024e;};return a187_0x3408();}export function createJourney(_0x3c88b0){const _0x4d55b7=a187_0x69793a;return{...fixtures[_0x4d55b7(0xcd)]['basic'],..._0x3c88b0};}function a187_0x4f70(_0x5988ba,_0x1aa0bf){_0x5988ba=_0x5988ba-0x8d;const _0x3408cf=a187_0x3408();let _0x4f70fd=_0x3408cf[_0x5988ba];return _0x4f70fd;}export function createQueryResult(_0x5aab52){const _0x85e706=a187_0x69793a;return{...fixtures[_0x85e706(0xb5)][_0x85e706(0xbf)],..._0x5aab52};}export function createUser(_0x1ff2f3){const _0x376fda=a187_0x69793a;return{...fixtures[_0x376fda(0xeb)][_0x376fda(0xbf)],..._0x1ff2f3};}export function createJob(_0xfd17e2){const _0x1a826b=a187_0x69793a;return{...fixtures[_0x1a826b(0x92)]['completed'],..._0xfd17e2};}export function createWorkflow(_0x3cdd59){return{...fixtures['workflow']['basic'],..._0x3cdd59};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a188_0x53ad8c=a188_0x424a;function a188_0x424a(_0x535a01,_0x121423){_0x535a01=_0x535a01-0x134;const _0x11cedf=a188_0x11ce();let _0x424ab0=_0x11cedf[_0x535a01];return _0x424ab0;}(function(_0x36bbaf,_0x1ff122){const _0x5a09c4=a188_0x424a,_0x4a45e8=_0x36bbaf();while(!![]){try{const _0x365dcb=-parseInt(_0x5a09c4(0x17d))/0x1*(parseInt(_0x5a09c4(0x177))/0x2)+parseInt(_0x5a09c4(0x134))/0x3+parseInt(_0x5a09c4(0x174))/0x4*(parseInt(_0x5a09c4(0x147))/0x5)+parseInt(_0x5a09c4(0x172))/0x6+parseInt(_0x5a09c4(0x16d))/0x7+-parseInt(_0x5a09c4(0x15d))/0x8+parseInt(_0x5a09c4(0x155))/0x9;if(_0x365dcb===_0x1ff122)break;else _0x4a45e8['push'](_0x4a45e8['shift']());}catch(_0x11907d){_0x4a45e8['push'](_0x4a45e8['shift']());}}}(a188_0x11ce,0x5e6d4));import{vi}from'vitest';function a188_0x11ce(){const _0x1de40b=['headers','No\x20Content','REST','stubs','split','function','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','parseRequest','errorResponse','688015YOvkfh','getLastRequest','includes','registerWithInspector','Forbidden','mockImplementation','forEach','Unknown','entries','description','body','Request\x20body:\x20','method','jsonResponse','252207sDOTyJ','td-api','networkError','responder','Unauthorized','join','rfc9457','stringify','2410464Khmcpt','\x20\x20(none)','every','Service\x20Unavailable','toUpperCase','Created','application/json','Bad\x20Request','length','register','some','simple','string','getRequests','matched','text/plain','1459143HWpgLy','matchCount','requests','withQuery','fetchMock','2080512LcqZEU','Unprocessable\x20Entity','12qadNzw','get','getMatchCount','100970mzjFqh','test','url','push','getStatusText','stack','15LVdgaT','isArray','jsonResponseWithHeaders','pathname','toLowerCase','1347966qTHGCi','map','Not\x20Found','unnamed\x20stub','Conflict','wasCalled','createFetch','Registered\x20stubs:\x0a','textResponse','https://api.treasuredata.com/errors/'];a188_0x11ce=function(){return _0x1de40b;};return a188_0x11ce();}export class HTTPMockRegistry{[a188_0x53ad8c(0x141)]=[];[a188_0x53ad8c(0x16f)]=[];[a188_0x53ad8c(0x171)]=null;[a188_0x53ad8c(0x140)](_0x2e7e8e,_0x4172ae){return _0xa94f0e=>{const _0x1c7030=a188_0x424a;if(_0xa94f0e[_0x1c7030(0x153)][_0x1c7030(0x161)]()!==_0x2e7e8e[_0x1c7030(0x161)]())return![];const _0x1a6524=new URL(_0xa94f0e['url']);if(typeof _0x4172ae===_0x1c7030(0x169))return _0x1a6524[_0x1c7030(0x180)]===_0x4172ae||_0x1a6524[_0x1c7030(0x180)][_0x1c7030(0x149)](_0x4172ae);return _0x4172ae[_0x1c7030(0x178)](_0x1a6524[_0x1c7030(0x180)]);};}[a188_0x53ad8c(0x170)](_0x1ccf82,_0x3e4950){return _0x1c1c60=>{const _0x57a19a=a188_0x424a;if(!_0x1ccf82(_0x1c1c60))return![];const _0x28da04=new URL(_0x1c1c60[_0x57a19a(0x179)]);return Object[_0x57a19a(0x14f)](_0x3e4950)[_0x57a19a(0x15f)](([_0x19248,_0x2037de])=>_0x28da04['searchParams'][_0x57a19a(0x175)](_0x19248)===_0x2037de);};}['withBody'](_0x8ac582,_0xbdb7c5){return _0x2e7929=>{const _0x509ee7=a188_0x424a;if(!_0x8ac582(_0x2e7929))return![];if(typeof _0xbdb7c5===_0x509ee7(0x143))return _0xbdb7c5(_0x2e7929[_0x509ee7(0x151)]);return JSON[_0x509ee7(0x15c)](_0x2e7929[_0x509ee7(0x151)])===JSON['stringify'](_0xbdb7c5);};}['withHost'](_0x35f89c,_0x491395){return _0x16d7a5=>{const _0x3951a4=a188_0x424a;if(!_0x35f89c(_0x16d7a5))return![];const _0x385689=new URL(_0x16d7a5[_0x3951a4(0x179)]);return _0x385689['host']===_0x491395;};}[a188_0x53ad8c(0x166)](_0x2e7f19,_0x1463a6,_0xe4aa13){const _0x54e2b6=a188_0x53ad8c;this['stubs']['push']({'matcher':_0x2e7f19,'responder':_0x1463a6,'matched':![],'matchCount':0x0,'stack':new Error()[_0x54e2b6(0x17c)]??'','description':_0xe4aa13?.['description']});}[a188_0x53ad8c(0x14a)](_0x2df7f6,_0x12b182,_0x183920){const _0x9e4ecd=a188_0x53ad8c,_0x297670=_0x5f5c20=>{const _0x5638bd=a188_0x424a;return _0x183920(_0x5f5c20[_0x5638bd(0x151)],_0x5f5c20),_0x12b182(_0x5f5c20);};this[_0x9e4ecd(0x166)](_0x2df7f6,_0x297670);}static[a188_0x53ad8c(0x154)](_0xd874d5,_0xdc0cac=0xc8){const _0x4132bb=a188_0x53ad8c;return()=>new Response(JSON[_0x4132bb(0x15c)](_0xd874d5),{'status':_0xdc0cac,'headers':{'Content-Type':_0x4132bb(0x163)}});}static[a188_0x53ad8c(0x146)](_0x226a96,_0x391153,_0x1fa698=a188_0x53ad8c(0x168)){return()=>{const _0x4bc508=a188_0x424a;let _0x2b10a0;switch(_0x1fa698){case _0x4bc508(0x156):_0x2b10a0={'errors':{'error':_0x391153,'message':_0x391153,'severity':'error','status_code':_0x226a96}};break;case _0x4bc508(0x15b):_0x2b10a0={'type':_0x4bc508(0x13d)+_0x226a96,'title':HTTPMockRegistry[_0x4bc508(0x17b)](_0x226a96),'status':_0x226a96,'detail':_0x391153};break;default:_0x2b10a0={'error':_0x391153};}return new Response(JSON[_0x4bc508(0x15c)](_0x2b10a0),{'status':_0x226a96,'headers':{'Content-Type':_0x4bc508(0x163)}});};}static[a188_0x53ad8c(0x17f)](_0x476541,_0x572eb0,_0x3588fe=0xc8){const _0x1109f7=a188_0x53ad8c;return()=>new Response(JSON['stringify'](_0x476541),{'status':_0x3588fe,'headers':{'Content-Type':_0x1109f7(0x163),..._0x572eb0}});}static[a188_0x53ad8c(0x13c)](_0x506584,_0x3904ca=0xc8){const _0x257d99=a188_0x53ad8c;return()=>new Response(_0x506584,{'status':_0x3904ca,'headers':{'Content-Type':_0x257d99(0x16c)}});}static[a188_0x53ad8c(0x157)](_0xa73040){return()=>{throw new Error(_0xa73040);};}[a188_0x53ad8c(0x13a)](){const _0x19199a=a188_0x53ad8c;return this['fetchMock']=vi['fn']()[_0x19199a(0x14c)](async(_0x41babc,_0x287227)=>{const _0x134d65=_0x19199a,_0x304f7e=this[_0x134d65(0x145)](_0x41babc,_0x287227);this['requests'][_0x134d65(0x17a)](_0x304f7e);for(const _0x3863be of this['stubs']){if(_0x3863be['matcher'](_0x304f7e))return _0x3863be[_0x134d65(0x16b)]=!![],_0x3863be[_0x134d65(0x16e)]++,_0x3863be[_0x134d65(0x158)](_0x304f7e);}const _0x4c4ecd=this[_0x134d65(0x141)][_0x134d65(0x135)]((_0xe1daae,_0x49d92e)=>'\x20\x20'+(_0x49d92e+0x1)+'.\x20'+(_0xe1daae[_0x134d65(0x150)]??_0x134d65(0x137)))[_0x134d65(0x15a)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x304f7e[_0x134d65(0x153)]+'\x20'+_0x304f7e['url']+'\x0a'+(_0x134d65(0x152)+JSON[_0x134d65(0x15c)](_0x304f7e[_0x134d65(0x151)])+'\x0a')+(_0x134d65(0x13b)+(_0x4c4ecd||_0x134d65(0x15e))));}),this[_0x19199a(0x171)];}[a188_0x53ad8c(0x145)](_0x23cd41,_0x12476b){const _0x54d550=a188_0x53ad8c,_0x558c5c={};if(_0x12476b?.[_0x54d550(0x13e)]){if(_0x12476b[_0x54d550(0x13e)]instanceof Headers)_0x12476b[_0x54d550(0x13e)][_0x54d550(0x14d)]((_0x66b956,_0x2236c1)=>{const _0x872d4b=_0x54d550;_0x558c5c[_0x2236c1[_0x872d4b(0x181)]()]=_0x66b956;});else{if(Array[_0x54d550(0x17e)](_0x12476b[_0x54d550(0x13e)]))for(const [_0x168da9,_0x2dbf35]of _0x12476b['headers']){_0x558c5c[_0x168da9['toLowerCase']()]=_0x2dbf35;}else for(const [_0x456864,_0x4787e1]of Object[_0x54d550(0x14f)](_0x12476b['headers'])){_0x4787e1!==undefined&&(_0x558c5c[_0x456864['toLowerCase']()]=_0x4787e1);}}}let _0x2201b5;if(_0x12476b?.['body'])try{_0x2201b5=JSON['parse'](_0x12476b[_0x54d550(0x151)]);}catch{_0x2201b5=_0x12476b['body'];}return{'method':_0x12476b?.[_0x54d550(0x153)]??'GET','url':_0x23cd41,'headers':_0x558c5c,'body':_0x2201b5};}['verify'](_0x210aa5){const _0x166def=a188_0x53ad8c,_0x9e1878=this['stubs']['filter'](_0x19f098=>!_0x19f098[_0x166def(0x16b)]);if(_0x9e1878[_0x166def(0x165)]>0x0){const _0x4db4be=_0x9e1878['map'](_0x429174=>{const _0x3cc3f2=_0x166def,_0x285e83=_0x429174[_0x3cc3f2(0x150)]?'\x20('+_0x429174[_0x3cc3f2(0x150)]+')':'',_0x1461db=_0x429174[_0x3cc3f2(0x17c)][_0x3cc3f2(0x142)]('\x0a')['slice'](0x2,0x5)[_0x3cc3f2(0x15a)]('\x0a');return'Unmatched\x20stub'+_0x285e83+'\x20registered\x20at:\x0a'+_0x1461db;});_0x210aa5['fail'](_0x9e1878[_0x166def(0x165)]+_0x166def(0x144)+_0x4db4be[_0x166def(0x15a)]('\x0a\x0a'));}}[a188_0x53ad8c(0x16a)](){const _0x256286=a188_0x53ad8c;return[...this[_0x256286(0x16f)]];}[a188_0x53ad8c(0x148)](){const _0x4cbc67=a188_0x53ad8c;return this[_0x4cbc67(0x16f)][this[_0x4cbc67(0x16f)]['length']-0x1];}[a188_0x53ad8c(0x139)](_0x34dfa1,_0x487d67){const _0x3f5c5b=a188_0x53ad8c;return this[_0x3f5c5b(0x16f)][_0x3f5c5b(0x167)](_0x13c134=>{const _0x563255=_0x3f5c5b;if(_0x13c134[_0x563255(0x153)][_0x563255(0x161)]()!==_0x34dfa1['toUpperCase']())return![];if(typeof _0x487d67===_0x563255(0x169))return _0x13c134[_0x563255(0x179)][_0x563255(0x149)](_0x487d67);return _0x487d67[_0x563255(0x178)](_0x13c134['url']);});}[a188_0x53ad8c(0x176)](_0x59d279){const _0x30e3e4=a188_0x53ad8c;return this[_0x30e3e4(0x141)][_0x59d279]?.[_0x30e3e4(0x16e)]??0x0;}['reset'](){const _0x22059a=a188_0x53ad8c;this[_0x22059a(0x141)]=[],this['requests']=[],this[_0x22059a(0x171)]=null;}static[a188_0x53ad8c(0x17b)](_0x3d6397){const _0xec2852=a188_0x53ad8c,_0x365119={0xc8:'OK',0xc9:_0xec2852(0x162),0xcc:_0xec2852(0x13f),0x190:_0xec2852(0x164),0x191:_0xec2852(0x159),0x193:_0xec2852(0x14b),0x194:_0xec2852(0x136),0x199:_0xec2852(0x138),0x1a6:_0xec2852(0x173),0x1ad:'Too\x20Many\x20Requests',0x1f4:'Internal\x20Server\x20Error',0x1f6:'Bad\x20Gateway',0x1f7:_0xec2852(0x160)};return _0x365119[_0x3d6397]??_0xec2852(0x14e);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x298064,_0x259625){var _0x54c1a0=a189_0x2eea,_0xf1e0ea=_0x298064();while(!![]){try{var _0x236e47=parseInt(_0x54c1a0(0x13a))/0x1*(parseInt(_0x54c1a0(0x139))/0x2)+parseInt(_0x54c1a0(0x132))/0x3*(parseInt(_0x54c1a0(0x134))/0x4)+parseInt(_0x54c1a0(0x136))/0x5*(parseInt(_0x54c1a0(0x13b))/0x6)+parseInt(_0x54c1a0(0x135))/0x7+-parseInt(_0x54c1a0(0x138))/0x8+-parseInt(_0x54c1a0(0x137))/0x9+-parseInt(_0x54c1a0(0x133))/0xa;if(_0x236e47===_0x259625)break;else _0xf1e0ea['push'](_0xf1e0ea['shift']());}catch(_0x444755){_0xf1e0ea['push'](_0xf1e0ea['shift']());}}}(a189_0x32e7,0x23fe5));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a189_0x32e7(){var _0x28b5a4=['12WTKuaL','4087WRUCyx','6KdwrZC','993NwrWcx','1793230EBdkIS','3184SKwEWF','1879395JbuDMW','380470AbmrBq','1202580deEoSF','1377640xcRWXp'];a189_0x32e7=function(){return _0x28b5a4;};return a189_0x32e7();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';function a189_0x2eea(_0x1c2d93,_0x2250d0){_0x1c2d93=_0x1c2d93-0x132;var _0x32e7e0=a189_0x32e7();var _0x2eeab5=_0x32e7e0[_0x1c2d93];return _0x2eeab5;}export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a190_0x130d(){const _0xfd8663=['415032oclzlN','push','452uavLnT','10llqDON','slice','6579108rQTFbE','1832678JgDmyo','map','9159asAVhy','length','all','5145899IrTObs','16ArcLQm','1nxMCVG','10PXzZmn','15441384HrwKcI','2081387XiqBdm'];a190_0x130d=function(){return _0xfd8663;};return a190_0x130d();}function a190_0x2528(_0x4febeb,_0x2861e2){_0x4febeb=_0x4febeb-0x14f;const _0x130dcc=a190_0x130d();let _0x2528b1=_0x130dcc[_0x4febeb];return _0x2528b1;}(function(_0x2892cd,_0x46de4e){const _0xf7dc16=a190_0x2528,_0x57b683=_0x2892cd();while(!![]){try{const _0x3dba28=-parseInt(_0xf7dc16(0x14f))/0x1*(parseInt(_0xf7dc16(0x159))/0x2)+parseInt(_0xf7dc16(0x15b))/0x3*(-parseInt(_0xf7dc16(0x155))/0x4)+parseInt(_0xf7dc16(0x156))/0x5*(parseInt(_0xf7dc16(0x153))/0x6)+-parseInt(_0xf7dc16(0x152))/0x7*(-parseInt(_0xf7dc16(0x15f))/0x8)+-parseInt(_0xf7dc16(0x158))/0x9+-parseInt(_0xf7dc16(0x150))/0xa*(-parseInt(_0xf7dc16(0x15e))/0xb)+parseInt(_0xf7dc16(0x151))/0xc;if(_0x3dba28===_0x46de4e)break;else _0x57b683['push'](_0x57b683['shift']());}catch(_0x48c9d3){_0x57b683['push'](_0x57b683['shift']());}}}(a190_0x130d,0x78ead));export async function batchAsync(_0x5c930b,_0x5d83ef,_0x428e4f=0xa){const _0x2c1b64=a190_0x2528,_0x540f21=[];for(let _0x45c776=0x0;_0x45c776<_0x5c930b[_0x2c1b64(0x15c)];_0x45c776+=_0x428e4f){const _0x4d10ff=_0x5c930b[_0x2c1b64(0x157)](_0x45c776,_0x45c776+_0x428e4f),_0x20c3e1=await Promise[_0x2c1b64(0x15d)](_0x4d10ff[_0x2c1b64(0x15a)](_0x5d83ef));_0x540f21[_0x2c1b64(0x154)](..._0x20c3e1);}return _0x540f21;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a191_0x42b677=a191_0xce9a;(function(_0x4b3720,_0x1b8790){const _0x4e42be=a191_0xce9a,_0x95f68a=_0x4b3720();while(!![]){try{const _0x245c66=parseInt(_0x4e42be(0x6d))/0x1+-parseInt(_0x4e42be(0x67))/0x2+-parseInt(_0x4e42be(0x6f))/0x3+parseInt(_0x4e42be(0x7f))/0x4+parseInt(_0x4e42be(0x71))/0x5*(parseInt(_0x4e42be(0x7d))/0x6)+parseInt(_0x4e42be(0x7a))/0x7*(-parseInt(_0x4e42be(0x6b))/0x8)+-parseInt(_0x4e42be(0x81))/0x9;if(_0x245c66===_0x1b8790)break;else _0x95f68a['push'](_0x95f68a['shift']());}catch(_0x42e726){_0x95f68a['push'](_0x95f68a['shift']());}}}(a191_0xb558,0x498f1));import*as a191_0x5e4b9e from'chalk';const Chalk=a191_0x5e4b9e[a191_0x42b677(0x75)];export function shouldUseColor(_0x463e71={}){const _0x2bb557=a191_0x42b677;if(_0x463e71[_0x2bb557(0x83)]===!![])return![];if(_0x463e71[_0x2bb557(0x70)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x2bb557(0x78)]['isTTY']??![];}function a191_0xb558(){const _0x1faaaf=['length','4018tnsvxA','string','join','3126ZZNbMW','stringify','736756HcGRdK','isArray','620235RIINMh','number','noColor','262716eBfIQz','repeat','map','cyan','5024WJlWrb','blue','547313eETICt','entries','191379AzIpVA','color','1865LQVnpp','green','null','dim','Chalk','boolean','object','stdout'];a191_0xb558=function(){return _0x1faaaf;};return a191_0xb558();}export function getChalk(_0x50f15d={}){if(shouldUseColor(_0x50f15d))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x4312d0,_0x424eab={}){const _0x3176e0=a191_0x42b677;return getChalk(_0x424eab)[_0x3176e0(0x74)](_0x4312d0);}export function colorHeader(_0x1db542,_0x32885b={}){const _0x186bd0=a191_0x42b677;return getChalk(_0x32885b)[_0x186bd0(0x6a)](_0x1db542);}export function colorType(_0x2bd244,_0xca7a33={}){const _0x2b3b1f=a191_0x42b677;return getChalk(_0xca7a33)[_0x2b3b1f(0x74)](_0x2bd244);}export function colorJSONKey(_0x57dd40,_0x1355f1={}){const _0x17b870=a191_0x42b677;return getChalk(_0x1355f1)[_0x17b870(0x6c)](_0x57dd40);}export function colorJSONString(_0x413f6b,_0x4ba35b={}){const _0x152641=a191_0x42b677;return getChalk(_0x4ba35b)[_0x152641(0x72)](_0x413f6b);}export function colorJSONNumber(_0x4ba93c,_0x411d15={}){const _0x31ed6d=a191_0x42b677;return getChalk(_0x411d15)[_0x31ed6d(0x6a)](_0x4ba93c);}function a191_0xce9a(_0x46927b,_0x444946){_0x46927b=_0x46927b-0x67;const _0xb55823=a191_0xb558();let _0xce9a3a=_0xb55823[_0x46927b];return _0xce9a3a;}export function colorJSONBoolean(_0x152a6f,_0x1f04e9={}){return getChalk(_0x1f04e9)['yellow'](_0x152a6f);}export function colorJSONNull(_0x269c2f,_0x647bfc={}){const _0x49da89=a191_0x42b677;return getChalk(_0x647bfc)[_0x49da89(0x74)](_0x269c2f);}export function colorizeJSONCompact(_0x14fc69,_0xa0c334={}){const _0x25ac83=a191_0x42b677;if(!shouldUseColor(_0xa0c334))return JSON['stringify'](_0x14fc69);if(_0x14fc69===null)return colorJSONNull(_0x25ac83(0x73),_0xa0c334);if(typeof _0x14fc69===_0x25ac83(0x76))return colorJSONBoolean(String(_0x14fc69),_0xa0c334);if(typeof _0x14fc69===_0x25ac83(0x82))return colorJSONNumber(String(_0x14fc69),_0xa0c334);if(typeof _0x14fc69==='string')return colorJSONString(JSON[_0x25ac83(0x7e)](_0x14fc69),_0xa0c334);if(Array['isArray'](_0x14fc69)){if(_0x14fc69[_0x25ac83(0x79)]===0x0)return'[]';const _0x81c58b=_0x14fc69[_0x25ac83(0x69)](_0x51f0e7=>colorizeJSONCompact(_0x51f0e7,_0xa0c334));return'['+_0x81c58b[_0x25ac83(0x7c)](',')+']';}if(typeof _0x14fc69===_0x25ac83(0x77)){const _0x59347f=Object[_0x25ac83(0x6e)](_0x14fc69);if(_0x59347f[_0x25ac83(0x79)]===0x0)return'{}';const _0x25512c=_0x59347f[_0x25ac83(0x69)](([_0xd13922,_0x4db74b])=>{const _0x497435=_0x25ac83,_0x24a977=colorJSONKey(JSON[_0x497435(0x7e)](_0xd13922),_0xa0c334),_0x1e5815=colorizeJSONCompact(_0x4db74b,_0xa0c334);return _0x24a977+':'+_0x1e5815;});return'{'+_0x25512c[_0x25ac83(0x7c)](',')+'}';}return String(_0x14fc69);}export function colorizeJSON(_0x141806,_0x49d191={},_0x117d9f=0x0){const _0x402ee8=a191_0x42b677;if(!shouldUseColor(_0x49d191))return JSON[_0x402ee8(0x7e)](_0x141806,null,0x2);const _0x55192e='\x20'[_0x402ee8(0x68)](_0x117d9f),_0x301db2=_0x117d9f+0x2;if(_0x141806===null)return colorJSONNull(_0x402ee8(0x73),_0x49d191);if(typeof _0x141806===_0x402ee8(0x76))return colorJSONBoolean(String(_0x141806),_0x49d191);if(typeof _0x141806==='number')return colorJSONNumber(String(_0x141806),_0x49d191);if(typeof _0x141806===_0x402ee8(0x7b))return colorJSONString(JSON[_0x402ee8(0x7e)](_0x141806),_0x49d191);if(Array[_0x402ee8(0x80)](_0x141806)){if(_0x141806[_0x402ee8(0x79)]===0x0)return'[]';const _0x491002=_0x141806['map'](_0x319381=>{const _0x53f198=_0x402ee8,_0x5b8559=colorizeJSON(_0x319381,_0x49d191,_0x301db2);return''+'\x20'[_0x53f198(0x68)](_0x301db2)+_0x5b8559;});return'[\x0a'+_0x491002[_0x402ee8(0x7c)](',\x0a')+('\x0a'+_0x55192e+']');}if(typeof _0x141806===_0x402ee8(0x77)){const _0x36ef06=Object[_0x402ee8(0x6e)](_0x141806);if(_0x36ef06[_0x402ee8(0x79)]===0x0)return'{}';const _0x1be840=_0x36ef06[_0x402ee8(0x69)](([_0x1b0f12,_0x53f864])=>{const _0x564976=_0x402ee8,_0x429ba1=colorJSONKey(JSON[_0x564976(0x7e)](_0x1b0f12),_0x49d191),_0x25adb7=colorizeJSON(_0x53f864,_0x49d191,_0x301db2);return''+'\x20'[_0x564976(0x68)](_0x301db2)+_0x429ba1+':\x20'+_0x25adb7;});return'{\x0a'+_0x1be840[_0x402ee8(0x7c)](',\x0a')+('\x0a'+_0x55192e+'}');}return String(_0x141806);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a192_0x5184(){const _0x3faa38=['old','\x20\x20...','red','removed','12vOypcf','fill','min','forEach','808192kgCeoC','added','split','dim','has','unchanged','max','new','push','repeat','2560635RDuyfT','content','unshift','type','1555230TIYjeb','\x20\x20\x20','3380090DKJDzr','size','153500hAjydH','6PenSij','1248178WIZusB','add','length','join','\x20+\x20','16vBebyD','3487527oNZxpV','padStart'];a192_0x5184=function(){return _0x3faa38;};return a192_0x5184();}(function(_0x19844f,_0x5d9bc1){const _0x3e17b7=a192_0x44a7,_0x51094c=_0x19844f();while(!![]){try{const _0x589419=-parseInt(_0x3e17b7(0x142))/0x1+-parseInt(_0x3e17b7(0x132))/0x2+-parseInt(_0x3e17b7(0x131))/0x3*(parseInt(_0x3e17b7(0x130))/0x4)+parseInt(_0x3e17b7(0x12e))/0x5+-parseInt(_0x3e17b7(0x13e))/0x6*(-parseInt(_0x3e17b7(0x14c))/0x7)+-parseInt(_0x3e17b7(0x137))/0x8*(-parseInt(_0x3e17b7(0x138))/0x9)+-parseInt(_0x3e17b7(0x12c))/0xa;if(_0x589419===_0x5d9bc1)break;else _0x51094c['push'](_0x51094c['shift']());}catch(_0xa1f913){_0x51094c['push'](_0x51094c['shift']());}}}(a192_0x5184,0x7e7c0));import a192_0x57ba9d from'chalk';export function generateDiff(_0x39b1dc,_0x7ee587){const _0x24bbbc=a192_0x44a7,_0x519e07=_0x39b1dc[_0x24bbbc(0x144)]('\x0a'),_0x4f4621=_0x7ee587[_0x24bbbc(0x144)]('\x0a'),_0x188b39=[],_0x30025e=computeLCS(_0x519e07,_0x4f4621);let _0x3f8ab4=0x0,_0x53065b=0x0,_0x366e12=0x0;while(_0x3f8ab4<_0x519e07['length']||_0x53065b<_0x4f4621[_0x24bbbc(0x134)]){if(_0x366e12<_0x30025e[_0x24bbbc(0x134)]&&_0x3f8ab4<_0x519e07[_0x24bbbc(0x134)]&&_0x519e07[_0x3f8ab4]===_0x30025e[_0x366e12])_0x53065b<_0x4f4621[_0x24bbbc(0x134)]&&_0x4f4621[_0x53065b]===_0x30025e[_0x366e12]?(_0x188b39[_0x24bbbc(0x14a)]({'type':_0x24bbbc(0x147),'content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++,_0x53065b++,_0x366e12++):(_0x188b39[_0x24bbbc(0x14a)]({'type':'added','content':_0x4f4621[_0x53065b]}),_0x53065b++);else{if(_0x366e12<_0x30025e[_0x24bbbc(0x134)]&&_0x53065b<_0x4f4621[_0x24bbbc(0x134)]&&_0x4f4621[_0x53065b]===_0x30025e[_0x366e12])_0x188b39[_0x24bbbc(0x14a)]({'type':_0x24bbbc(0x13d),'content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++;else{if(_0x3f8ab4<_0x519e07['length']&&(_0x366e12>=_0x30025e[_0x24bbbc(0x134)]||_0x519e07[_0x3f8ab4]!==_0x30025e[_0x366e12]))_0x188b39[_0x24bbbc(0x14a)]({'type':'removed','content':_0x519e07[_0x3f8ab4]}),_0x3f8ab4++;else _0x53065b<_0x4f4621['length']&&(_0x188b39[_0x24bbbc(0x14a)]({'type':'added','content':_0x4f4621[_0x53065b]}),_0x53065b++);}}}return _0x188b39;}function computeLCS(_0x1b84ea,_0x5726eb){const _0x5a0029=a192_0x44a7,_0x208e33=_0x1b84ea['length'],_0x373ff1=_0x5726eb[_0x5a0029(0x134)],_0x12864f=Array(_0x208e33+0x1)['fill'](null)['map'](()=>Array(_0x373ff1+0x1)[_0x5a0029(0x13f)](0x0));for(let _0xfb53d=0x1;_0xfb53d<=_0x208e33;_0xfb53d++){for(let _0x10c4ba=0x1;_0x10c4ba<=_0x373ff1;_0x10c4ba++){_0x1b84ea[_0xfb53d-0x1]===_0x5726eb[_0x10c4ba-0x1]?_0x12864f[_0xfb53d][_0x10c4ba]=_0x12864f[_0xfb53d-0x1][_0x10c4ba-0x1]+0x1:_0x12864f[_0xfb53d][_0x10c4ba]=Math[_0x5a0029(0x148)](_0x12864f[_0xfb53d-0x1][_0x10c4ba],_0x12864f[_0xfb53d][_0x10c4ba-0x1]);}}const _0x170a82=[];let _0x3686a6=_0x208e33,_0x238414=_0x373ff1;while(_0x3686a6>0x0&&_0x238414>0x0){if(_0x1b84ea[_0x3686a6-0x1]===_0x5726eb[_0x238414-0x1])_0x170a82[_0x5a0029(0x12a)](_0x1b84ea[_0x3686a6-0x1]),_0x3686a6--,_0x238414--;else _0x12864f[_0x3686a6-0x1][_0x238414]>_0x12864f[_0x3686a6][_0x238414-0x1]?_0x3686a6--:_0x238414--;}return _0x170a82;}function a192_0x44a7(_0x9b778b,_0x2abe2c){_0x9b778b=_0x9b778b-0x12a;const _0x518463=a192_0x5184();let _0x44a78b=_0x518463[_0x9b778b];return _0x44a78b;}export function formatDiffWithColors(_0xd6fda0,_0x27ff21=0x3){const _0x235f80=a192_0x44a7,_0x3ec8a8=new Set();_0xd6fda0[_0x235f80(0x141)]((_0x1233b4,_0x4f9848)=>{const _0x58255b=_0x235f80;_0x1233b4[_0x58255b(0x12b)]!==_0x58255b(0x147)&&_0x3ec8a8[_0x58255b(0x133)](_0x4f9848);});if(_0x3ec8a8[_0x235f80(0x12f)]===0x0)return'';const _0x1f2d12=new Set();for(const _0x601874 of _0x3ec8a8){for(let _0xc1aa2=Math[_0x235f80(0x148)](0x0,_0x601874-_0x27ff21);_0xc1aa2<=Math[_0x235f80(0x140)](_0xd6fda0[_0x235f80(0x134)]-0x1,_0x601874+_0x27ff21);_0xc1aa2++){_0x1f2d12[_0x235f80(0x133)](_0xc1aa2);}}const _0x5cb6ec=[];let _0x2baa0d=-0x1;const _0x1f6898=_0xd6fda0['length'],_0x45ccff=Math['max'](0x3,String(_0x1f6898)['length']),_0x25aa71=[];let _0x2056fd=0x0,_0x406a69=0x0;for(const _0x54bc3b of _0xd6fda0){if(_0x54bc3b[_0x235f80(0x12b)]===_0x235f80(0x13d))_0x2056fd++,_0x25aa71[_0x235f80(0x14a)]({'old':_0x2056fd,'new':0x0});else _0x54bc3b[_0x235f80(0x12b)]===_0x235f80(0x143)?(_0x406a69++,_0x25aa71['push']({'old':0x0,'new':_0x406a69})):(_0x2056fd++,_0x406a69++,_0x25aa71[_0x235f80(0x14a)]({'old':_0x2056fd,'new':_0x406a69}));}for(let _0x5eda7b=0x0;_0x5eda7b<_0xd6fda0['length'];_0x5eda7b++){if(!_0x1f2d12[_0x235f80(0x146)](_0x5eda7b))continue;_0x2baa0d!==-0x1&&_0x5eda7b>_0x2baa0d+0x1&&_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d['cyan'](_0x235f80(0x13b)));_0x2baa0d=_0x5eda7b;const _0x50b757=_0xd6fda0[_0x5eda7b],_0x1ef1eb=_0x25aa71[_0x5eda7b],_0x1a742e=_0x1ef1eb['old']>0x0?String(_0x1ef1eb[_0x235f80(0x13a)])[_0x235f80(0x139)](_0x45ccff):'\x20'[_0x235f80(0x14b)](_0x45ccff),_0x171f7d=_0x1ef1eb[_0x235f80(0x149)]>0x0?String(_0x1ef1eb['new'])[_0x235f80(0x139)](_0x45ccff):'\x20'['repeat'](_0x45ccff);switch(_0x50b757['type']){case _0x235f80(0x13d):_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d[_0x235f80(0x13c)](_0x1a742e+'\x20'+_0x171f7d+'\x20-\x20'+_0x50b757[_0x235f80(0x14d)]));break;case _0x235f80(0x143):_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d['green'](_0x1a742e+'\x20'+_0x171f7d+_0x235f80(0x136)+_0x50b757[_0x235f80(0x14d)]));break;default:_0x5cb6ec[_0x235f80(0x14a)](a192_0x57ba9d[_0x235f80(0x145)](_0x1a742e+'\x20'+_0x171f7d+_0x235f80(0x12d)+_0x50b757[_0x235f80(0x14d)]));break;}}return _0x5cb6ec[_0x235f80(0x135)]('\x0a');}export function hasChanges(_0x298401){const _0x4c306d=a192_0x44a7;return _0x298401['some'](_0x48be5f=>_0x48be5f[_0x4c306d(0x12b)]!==_0x4c306d(0x147));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x235abb,_0x38c1e2){const _0x26ff20=a193_0xacba,_0x26db4f=_0x235abb();while(!![]){try{const _0x2c1f03=-parseInt(_0x26ff20(0xb3))/0x1*(parseInt(_0x26ff20(0xbd))/0x2)+-parseInt(_0x26ff20(0xc0))/0x3+-parseInt(_0x26ff20(0xc3))/0x4+parseInt(_0x26ff20(0xb8))/0x5*(-parseInt(_0x26ff20(0xb5))/0x6)+-parseInt(_0x26ff20(0xc2))/0x7*(-parseInt(_0x26ff20(0xbe))/0x8)+parseInt(_0x26ff20(0xbb))/0x9+parseInt(_0x26ff20(0xb2))/0xa*(parseInt(_0x26ff20(0xc4))/0xb);if(_0x2c1f03===_0x38c1e2)break;else _0x26db4f['push'](_0x26db4f['shift']());}catch(_0x47b8d5){_0x26db4f['push'](_0x26db4f['shift']());}}}(a193_0xc08a,0x655a6));import*as a193_0x49de12 from'node:fs';import*as a193_0x4f68f0 from'node:path';export function setSecureFilePermissions(_0xf46df6){const _0x4d3920=a193_0xacba;try{a193_0x49de12[_0x4d3920(0xb4)](_0xf46df6,0x180);}catch{console[_0x4d3920(0xbf)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0xf46df6);}}export function setSecureDirectoryPermissions(_0x4be1e3){const _0x4f4c74=a193_0xacba;try{a193_0x49de12[_0x4f4c74(0xb4)](_0x4be1e3,0x1c0);}catch{console[_0x4f4c74(0xbf)](_0x4f4c74(0xba)+_0x4be1e3);}}export function createSecureDirectory(_0x1b3d35){const _0x1f6aef=a193_0xacba;!a193_0x49de12[_0x1f6aef(0xb1)](_0x1b3d35)&&(a193_0x49de12['mkdirSync'](_0x1b3d35,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1b3d35));}export function validateSecureFilePermissions(_0x50e538){const _0x5e8ac5=a193_0xacba;try{const _0x1da699=a193_0x49de12[_0x5e8ac5(0xb7)](_0x50e538),_0x3decf4=_0x1da699[_0x5e8ac5(0xaf)]&0x1ff,_0x3a0e25=(_0x3decf4&0x3f)!==0x0;if(_0x3a0e25)return console[_0x5e8ac5(0xbf)](_0x5e8ac5(0xc1)+_0x50e538+_0x5e8ac5(0xbc)+_0x3decf4[_0x5e8ac5(0xb9)](0x8)+').\x20'+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}function a193_0xacba(_0xd2bd2f,_0x456480){_0xd2bd2f=_0xd2bd2f-0xaf;const _0xc08ab4=a193_0xc08a();let _0xacbab5=_0xc08ab4[_0xd2bd2f];return _0xacbab5;}export function writeSecureFile(_0x355053,_0x3dd0e7){const _0x259b3b=a193_0xacba,_0x2d35e5=a193_0x4f68f0[_0x259b3b(0xb0)](_0x355053);createSecureDirectory(_0x2d35e5),a193_0x49de12[_0x259b3b(0xb6)](_0x355053,_0x3dd0e7,{'mode':0x180}),setSecureFilePermissions(_0x355053);}function a193_0xc08a(){const _0x485133=['Warning:\x20','52437TMJMUK','3108540oaHNpD','33sfQaxB','mode','dirname','existsSync','6968050dFuKga','777581bCIoQC','chmodSync','6zalJDC','writeFileSync','statSync','961355jMkPBt','toString','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','788922rpZdOs','\x20has\x20insecure\x20permissions\x20(','2ILQnaR','616pEtkIY','warn','1778253UgbRtE'];a193_0xc08a=function(){return _0x485133;};return a193_0xc08a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x1dd4cc,_0x21c6cb){const _0x411131=a194_0x5472,_0x39ecf9=_0x1dd4cc();while(!![]){try{const _0x4c4878=-parseInt(_0x411131(0x1f5))/0x1+-parseInt(_0x411131(0x1fd))/0x2+-parseInt(_0x411131(0x1f7))/0x3*(parseInt(_0x411131(0x1ff))/0x4)+-parseInt(_0x411131(0x1f4))/0x5+-parseInt(_0x411131(0x1f9))/0x6+-parseInt(_0x411131(0x202))/0x7+parseInt(_0x411131(0x201))/0x8;if(_0x4c4878===_0x21c6cb)break;else _0x39ecf9['push'](_0x39ecf9['shift']());}catch(_0x5f1d10){_0x39ecf9['push'](_0x39ecf9['shift']());}}}(a194_0x3092,0x557a4));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a194_0x5472(_0x5e09d5,_0x19e92b){_0x5e09d5=_0x5e09d5-0x1f4;const _0x3092fe=a194_0x3092();let _0x5472e6=_0x3092fe[_0x5e09d5];return _0x5472e6;}function a194_0x3092(){const _0x26fa89=['32168LisXgs','ENOENT','12942736dhUwkg','427609oWjzcx','utf-8','NOT_FOUND','File\x20\x27','504025WztNEV','643776DAPHpO','EACCES','99BBvcOe','PERMISSION_DENIED','943842iTLtRS','\x27\x20not\x20found','Permission\x20denied\x20reading\x20file\x20\x27','INTERNAL','78730sufRCE','Error\x20reading\x20file\x20\x27'];a194_0x3092=function(){return _0x26fa89;};return a194_0x3092();}export function readFileContent(_0x39f55a){const _0x1bb939=a194_0x5472;try{return readFileSync(_0x39f55a,_0x1bb939(0x203));}catch(_0x519159){const _0x56b3f2=_0x519159['code'];if(_0x56b3f2===_0x1bb939(0x200))throw new SDKError(ErrorCode[_0x1bb939(0x204)],_0x1bb939(0x205)+_0x39f55a+_0x1bb939(0x1fa),_0x519159);else{if(_0x56b3f2===_0x1bb939(0x1f6))throw new SDKError(ErrorCode[_0x1bb939(0x1f8)],_0x1bb939(0x1fb)+_0x39f55a+'\x27',_0x519159);else throw new SDKError(ErrorCode[_0x1bb939(0x1fc)],_0x1bb939(0x1fe)+_0x39f55a+'\x27:\x20'+_0x519159['message'],_0x519159);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5cc2d0,_0x226760){const _0x3b191f=a195_0x3804,_0x71f15d=_0x5cc2d0();while(!![]){try{const _0x90ab4b=parseInt(_0x3b191f(0x1d3))/0x1+parseInt(_0x3b191f(0x1d7))/0x2+-parseInt(_0x3b191f(0x1c9))/0x3+-parseInt(_0x3b191f(0x1e0))/0x4+-parseInt(_0x3b191f(0x1d9))/0x5*(-parseInt(_0x3b191f(0x1c5))/0x6)+parseInt(_0x3b191f(0x1d1))/0x7*(-parseInt(_0x3b191f(0x1df))/0x8)+parseInt(_0x3b191f(0x1db))/0x9;if(_0x90ab4b===_0x226760)break;else _0x71f15d['push'](_0x71f15d['shift']());}catch(_0x3ff118){_0x71f15d['push'](_0x71f15d['shift']());}}}(a195_0x2780,0x47b5e));import*as a195_0x479f5b from'node:https';function a195_0x3804(_0x542406,_0x4024da){_0x542406=_0x542406-0x1c5;const _0x2780f8=a195_0x2780();let _0x38040f=_0x2780f8[_0x542406];return _0x38040f;}function a195_0x2780(){const _0x5e5bd4=['releases','1160415UEyqhg','timeout','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','set','prerelease','find','toString','GitHub\x20API\x20returned\x20','7gxPuoF','api.github.com','127435rsypIr','statusCode','error','end','900410kJyBOt','now','2344015qWpruj','data','3900402cYVkAC','length','next','tag_name','2694232BLUrLt','1850044CbLfgY','fetchedAt','6cDOPmF','resolve','slice'];a195_0x2780=function(){return _0x5e5bd4;};return a195_0x2780();}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x3c66a0,_0x384515,_0x794077){const _0x3a6e7d=a195_0x3804,_0xd207bd=_0x3c66a0+'/'+_0x384515,_0x3b3e07=cache['get'](_0xd207bd);if(_0x3b3e07&&Date[_0x3a6e7d(0x1d8)]()-_0x3b3e07[_0x3a6e7d(0x1e1)]<CACHE_TTL_MS)return Promise[_0x3a6e7d(0x1c6)](_0x3b3e07[_0x3a6e7d(0x1c8)]);return new Promise((_0x5afb01,_0x47df09)=>{const _0x40f420=_0x3a6e7d,_0x2f677b={'hostname':_0x40f420(0x1d2),'path':'/repos/'+_0x3c66a0+'/'+_0x384515+'/releases?per_page=20','headers':{'User-Agent':_0x794077,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x3c0819=a195_0x479f5b['get'](_0x2f677b,_0x23aeee=>{const _0x5bce4f=_0x40f420;let _0x58bb26='';_0x23aeee['on'](_0x5bce4f(0x1da),_0x9b8387=>{const _0x4e52ca=_0x5bce4f;_0x58bb26+=_0x9b8387[_0x4e52ca(0x1cf)]();}),_0x23aeee['on'](_0x5bce4f(0x1d6),()=>{const _0x45557c=_0x5bce4f;if(_0x23aeee['statusCode']!==0xc8){_0x47df09(new Error(_0x45557c(0x1d0)+_0x23aeee[_0x45557c(0x1d4)]+':\x20'+_0x58bb26[_0x45557c(0x1c7)](0x0,0xc8)));return;}try{const _0x3569ff=JSON['parse'](_0x58bb26);cache[_0x45557c(0x1cc)](_0xd207bd,{'releases':_0x3569ff,'fetchedAt':Date[_0x45557c(0x1d8)]()}),_0x5afb01(_0x3569ff);}catch(_0xd3508f){_0x47df09(_0xd3508f);}});});_0x3c0819['on'](_0x40f420(0x1ca),()=>{const _0x6f4db8=_0x40f420;_0x3c0819['destroy'](),_0x47df09(new Error(_0x6f4db8(0x1cb)+REQUEST_TIMEOUT_MS+'ms'));}),_0x3c0819['on'](_0x40f420(0x1d5),_0x47df09);});}export async function resolveReleaseTag(_0x523bca,_0x3be073,_0x3c5ae9,_0x401038){const _0x5a7881=a195_0x3804,_0xd925a8=await fetchGitHubReleases(_0x3be073,_0x3c5ae9,_0x401038);if(_0xd925a8[_0x5a7881(0x1dc)]===0x0)return null;if(_0x523bca===_0x5a7881(0x1dd))return _0xd925a8[0x0]['tag_name'];const _0x2f3ba1=_0xd925a8[_0x5a7881(0x1ce)](_0xa21c9=>!_0xa21c9[_0x5a7881(0x1cd)]);return _0x2f3ba1?_0x2f3ba1[_0x5a7881(0x1de)]:null;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5161a5,_0x1ac207){const _0x1f5010=a196_0x3df8,_0x59e71b=_0x5161a5();while(!![]){try{const _0x3be785=-parseInt(_0x1f5010(0x117))/0x1*(-parseInt(_0x1f5010(0x10b))/0x2)+parseInt(_0x1f5010(0x106))/0x3+-parseInt(_0x1f5010(0x116))/0x4*(-parseInt(_0x1f5010(0x112))/0x5)+parseInt(_0x1f5010(0x103))/0x6*(parseInt(_0x1f5010(0x114))/0x7)+-parseInt(_0x1f5010(0x113))/0x8*(parseInt(_0x1f5010(0x10c))/0x9)+-parseInt(_0x1f5010(0x10e))/0xa*(-parseInt(_0x1f5010(0x111))/0xb)+-parseInt(_0x1f5010(0x102))/0xc;if(_0x3be785===_0x1ac207)break;else _0x59e71b['push'](_0x59e71b['shift']());}catch(_0x1a4d36){_0x59e71b['push'](_0x59e71b['shift']());}}}(a196_0x2b2d,0x41872));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x9cfe85=a196_0x3df8;return process.env.TDX_CACHE_DIR||join(homedir(),'.cache',_0x9cfe85(0x104));}const registry=new Map();export function registerGlobalCacheKey(_0x27140e,_0x3cb25e){const _0x306634=a196_0x3df8,_0x163962=registry[_0x306634(0x108)](_0x27140e);if(_0x163962&&_0x163962!==_0x3cb25e)throw new Error(_0x306634(0x118)+_0x27140e+_0x306634(0x10d)+_0x163962+_0x306634(0x115)+_0x3cb25e+'\x22');registry[_0x306634(0x107)](_0x27140e,_0x3cb25e);}export function getGlobalCachePath(_0x15a5a0){return join(getGlobalCacheDir(),_0x15a5a0);}function a196_0x2b2d(){const _0x140b18=['\x22\x20already\x20registered\x20by\x20\x22','850YeUOsH','default','parse','4708AWnXPe','10JYtikr','1240mFmdIU','883442vZUziK','\x22,\x20cannot\x20register\x20for\x20\x22','1548odBiOm','5APvjJl','Global\x20cache\x20key\x20\x22','594936WbRFCv','12sZMgwL','tdx','replace','91992XVtcgi','set','get','stringify','utf-8','5734LaePKB','963IuhYEh'];a196_0x2b2d=function(){return _0x140b18;};return a196_0x2b2d();}function ensureGlobalCacheDir(){const _0x4d69ef=getGlobalCacheDir();!existsSync(_0x4d69ef)&&mkdirSync(_0x4d69ef,{'recursive':!![]});}function readCacheJson(_0x17d198){const _0x5c6f53=a196_0x3df8,_0xff69bb=getGlobalCachePath(_0x17d198);if(!existsSync(_0xff69bb))return undefined;try{const _0x4a660a=readFileSync(_0xff69bb,_0x5c6f53(0x10a));return JSON[_0x5c6f53(0x110)](_0x4a660a);}catch{return undefined;}}function a196_0x3df8(_0x370ca7,_0x29d340){_0x370ca7=_0x370ca7-0x102;const _0x2b2d14=a196_0x2b2d();let _0x3df858=_0x2b2d14[_0x370ca7];return _0x3df858;}function writeCacheJson(_0x28d1b0,_0x9f1169){const _0x5ba153=a196_0x3df8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x28d1b0),JSON[_0x5ba153(0x109)](_0x9f1169,null,0x2),'utf-8');}function readCacheText(_0x4c3682){const _0x4799bc=getGlobalCachePath(_0x4c3682);if(!existsSync(_0x4799bc))return undefined;try{return readFileSync(_0x4799bc,'utf-8');}catch{return undefined;}}function writeCacheText(_0xb0a634,_0x533db9){const _0x128725=a196_0x3df8;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0xb0a634),_0x533db9,_0x128725(0x10a));}function clearCache(_0x3205d2){const _0x2d6f54=getGlobalCachePath(_0x3205d2);if(existsSync(_0x2d6f54))try{unlinkSync(_0x2d6f54);}catch{}}function cacheExists(_0x532691){return existsSync(getGlobalCachePath(_0x532691));}export function createGlobalCache(_0x280410,_0x478c7b){return registerGlobalCacheKey(_0x280410,_0x478c7b),{'read':()=>readCacheJson(_0x280410),'write':_0x361a8d=>writeCacheJson(_0x280410,_0x361a8d),'clear':()=>clearCache(_0x280410),'exists':()=>cacheExists(_0x280410),'path':()=>getGlobalCachePath(_0x280410)};}export function createGlobalTextCache(_0x478a37,_0x1f3f8d){return registerGlobalCacheKey(_0x478a37,_0x1f3f8d),{'read':()=>readCacheText(_0x478a37)?.['trim']()||undefined,'write':_0x16ebfa=>writeCacheText(_0x478a37,_0x16ebfa),'clear':()=>clearCache(_0x478a37),'exists':()=>cacheExists(_0x478a37),'path':()=>getGlobalCachePath(_0x478a37)};}export function createProfileCache(_0x24e370,_0x431f6d){const _0x35e611=_0x41ec99=>{const _0x50ee86=a196_0x3df8,_0x6286d2=_0x41ec99||_0x50ee86(0x10f);return _0x24e370[_0x50ee86(0x105)]('{profile}',_0x6286d2);};return{'read':_0x28a6fe=>{const _0x5f2158=_0x35e611(_0x28a6fe);return registerGlobalCacheKey(_0x5f2158,_0x431f6d),readCacheJson(_0x5f2158);},'write':(_0x17bdf1,_0x36ad40)=>{const _0x30ce60=_0x35e611(_0x17bdf1);registerGlobalCacheKey(_0x30ce60,_0x431f6d),writeCacheJson(_0x30ce60,_0x36ad40);},'clear':_0x250ea6=>{const _0x550636=_0x35e611(_0x250ea6);clearCache(_0x550636);},'exists':_0x37e7d4=>{const _0x1c663f=_0x35e611(_0x37e7d4);return cacheExists(_0x1c663f);},'path':_0x1c9902=>{const _0xbcf41c=_0x35e611(_0x1c9902);return getGlobalCachePath(_0xbcf41c);}};}export function createOptionalProfileCache(_0xa50d79,_0x2fde5e,_0x2dbc44={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2dbc44,_0x1535fb=_0x336958=>{return _0x336958?''+_0xa50d79+profileSeparator+_0x336958+suffix:''+_0xa50d79+suffix;};return{'read':_0x5e4963=>{const _0x182582=_0x1535fb(_0x5e4963);return registerGlobalCacheKey(_0x182582,_0x2fde5e),readCacheJson(_0x182582);},'write':(_0x39e1c8,_0xbacf3e)=>{const _0x22de33=_0x1535fb(_0xbacf3e);registerGlobalCacheKey(_0x22de33,_0x2fde5e),writeCacheJson(_0x22de33,_0x39e1c8);},'clear':_0x13910e=>{const _0x256438=_0x1535fb(_0x13910e);clearCache(_0x256438);},'exists':_0x3d2390=>{const _0x498c15=_0x1535fb(_0x3d2390);return cacheExists(_0x498c15);},'path':_0x2a232d=>{const _0x2c14b7=_0x1535fb(_0x2a232d);return getGlobalCachePath(_0x2c14b7);}};}export function clearGlobalRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a197_0x139f(_0x379dbc,_0x5883b4){_0x379dbc=_0x379dbc-0x7d;const _0x9c06ed=a197_0x9c06();let _0x139fe9=_0x9c06ed[_0x379dbc];return _0x139fe9;}(function(_0x5dc485,_0x9e4dbc){const _0x309cc4=a197_0x139f,_0x526407=_0x5dc485();while(!![]){try{const _0x498410=parseInt(_0x309cc4(0x81))/0x1+-parseInt(_0x309cc4(0x8c))/0x2+-parseInt(_0x309cc4(0x88))/0x3+parseInt(_0x309cc4(0x7e))/0x4*(-parseInt(_0x309cc4(0x82))/0x5)+parseInt(_0x309cc4(0x80))/0x6*(-parseInt(_0x309cc4(0x8d))/0x7)+parseInt(_0x309cc4(0x86))/0x8+parseInt(_0x309cc4(0x8b))/0x9;if(_0x498410===_0x9e4dbc)break;else _0x526407['push'](_0x526407['shift']());}catch(_0x33717b){_0x526407['push'](_0x526407['shift']());}}}(a197_0x9c06,0x7d9be));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x35a594,_0x4b628f){const _0x2c5b6a=a197_0x139f;try{if(_0x4b628f){const _0x25b465=await readFile(_0x35a594,_0x2c5b6a(0x8e));try{return JSON[_0x2c5b6a(0x89)](_0x25b465);}catch(_0x4b7648){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x35a594+_0x2c5b6a(0x83)+(_0x4b7648 instanceof Error?_0x4b7648['message']:String(_0x4b7648)));}}else try{return JSON[_0x2c5b6a(0x89)](_0x35a594);}catch(_0x5a64a5){throw new SDKError(ErrorCode[_0x2c5b6a(0x8f)],'Invalid\x20JSON\x20string:\x20'+(_0x5a64a5 instanceof Error?_0x5a64a5[_0x2c5b6a(0x7f)]:String(_0x5a64a5)));}}catch(_0x209bb3){if(_0x209bb3 instanceof SDKError)throw _0x209bb3;if(_0x209bb3 instanceof Error&&'code'in _0x209bb3){const _0x500906=_0x209bb3;if(_0x500906['code']==='ENOENT')throw new SDKError(ErrorCode['NOT_FOUND'],_0x2c5b6a(0x87)+_0x35a594);else{if(_0x500906[_0x2c5b6a(0x85)]==='EACCES')throw new SDKError(ErrorCode[_0x2c5b6a(0x8a)],_0x2c5b6a(0x90)+_0x35a594);}}throw new SDKError(ErrorCode[_0x2c5b6a(0x84)],'Failed\x20to\x20load\x20JSON:\x20'+(_0x209bb3 instanceof Error?_0x209bb3['message']:String(_0x209bb3)));}}export async function loadJSONFromOptions(_0x3a72a6,_0x141eea){const _0x354de6=a197_0x139f;if(_0x3a72a6&&_0x141eea)throw new SDKError(ErrorCode[_0x354de6(0x8f)],_0x354de6(0x7d));if(_0x3a72a6)return await loadJSON(_0x3a72a6,![]);if(_0x141eea)return await loadJSON(_0x141eea,!![]);return undefined;}function a197_0x9c06(){const _0x2e129d=['message','22278xGFaQn','669592HCfLSq','80690bztAZr','\x27:\x20','INTERNAL','code','1768392dmnRTN','File\x20not\x20found:\x20','2365461wbyfFq','parse','PERMISSION_DENIED','8222220dThnJY','249012NcIKug','406ffRQsn','utf-8','INVALID_ARGUMENT','Permission\x20denied\x20reading\x20file:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','40AeWAXM'];a197_0x9c06=function(){return _0x2e129d;};return a197_0x9c06();}
|