@treasuredata/tdx 0.20.1 → 0.20.2
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.js +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/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/describe.js +1 -1
- package/dist/commands/engage-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/llm-proxy.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-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/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/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/anthropic-adapter.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/context-signature.js +1 -1
- package/dist/proxy/conversation-utils.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/server.js +1 -1
- package/dist/proxy/session-cache.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/api.js +1 -1
- package/dist/sdk/client/cdp-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/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/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-aliases.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +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-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-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/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.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/index.js +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/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/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/port.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
|
-
function a157_0x7a81(_0x143084,_0x872869){_0x143084=_0x143084-0x11f;const _0xbfaef3=a157_0xbfae();let _0x7a81c7=_0xbfaef3[_0x143084];return _0x7a81c7;}const a157_0xd444e3=a157_0x7a81;(function(_0x396286,_0x4438ab){const _0x52658e=a157_0x7a81,_0x5ebd22=_0x396286();while(!![]){try{const _0x150cb6=parseInt(_0x52658e(0x17f))/0x1*(parseInt(_0x52658e(0x129))/0x2)+parseInt(_0x52658e(0x130))/0x3*(parseInt(_0x52658e(0x172))/0x4)+parseInt(_0x52658e(0x12b))/0x5+-parseInt(_0x52658e(0x189))/0x6+-parseInt(_0x52658e(0x14d))/0x7*(-parseInt(_0x52658e(0x161))/0x8)+parseInt(_0x52658e(0x145))/0x9+parseInt(_0x52658e(0x16f))/0xa*(-parseInt(_0x52658e(0x14a))/0xb);if(_0x150cb6===_0x4438ab)break;else _0x5ebd22['push'](_0x5ebd22['shift']());}catch(_0x3ef222){_0x5ebd22['push'](_0x5ebd22['shift']());}}}(a157_0xbfae,0x2a091));export const fixtures={'database':{'basic':{'name':a157_0xd444e3(0x13f),'count':0x5,'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x155),'permission':'administrator'},'withTables':{'name':a157_0xd444e3(0x144),'count':0x64,'created_at':a157_0xd444e3(0x183),'updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a157_0xd444e3(0x147),'type':'log','schema':JSON[a157_0xd444e3(0x148)]([['id',a157_0xd444e3(0x17d)],['time','long'],[a157_0xd444e3(0x13d),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x155)},'events':{'id':0x303a,'name':a157_0xd444e3(0x18e),'type':a157_0xd444e3(0x17e),'schema':JSON[a157_0xd444e3(0x148)]([[a157_0xd444e3(0x17c),a157_0xd444e3(0x17d)],[a157_0xd444e3(0x125),a157_0xd444e3(0x12d)],['user_id',a157_0xd444e3(0x17d)],[a157_0xd444e3(0x151),a157_0xd444e3(0x17d)],[a157_0xd444e3(0x135),a157_0xd444e3(0x138)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a157_0xd444e3(0x143),'name':a157_0xd444e3(0x123),'description':a157_0xd444e3(0x122),'status':a157_0xd444e3(0x12c),'master_table':{'database':a157_0xd444e3(0x150),'table':a157_0xd444e3(0x17b)},'attributes':[{'name':a157_0xd444e3(0x185),'type':a157_0xd444e3(0x17d),'key':!![]},{'name':a157_0xd444e3(0x127),'type':a157_0xd444e3(0x17d)},{'name':a157_0xd444e3(0x179),'type':a157_0xd444e3(0x14b)}],'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x15f)},'withBehaviors':{'id':'ps-789012','name':a157_0xd444e3(0x175),'description':a157_0xd444e3(0x16a),'status':a157_0xd444e3(0x12c),'master_table':{'database':a157_0xd444e3(0x150),'table':a157_0xd444e3(0x12f)},'behaviors':[{'name':a157_0xd444e3(0x13b),'table':{'database':a157_0xd444e3(0x169),'table':'purchases'},'join_key':a157_0xd444e3(0x185)},{'name':a157_0xd444e3(0x163),'table':{'database':a157_0xd444e3(0x169),'table':a157_0xd444e3(0x133)},'join_key':a157_0xd444e3(0x185)}],'created_at':a157_0xd444e3(0x155),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a157_0xd444e3(0x14c),'name':a157_0xd444e3(0x159),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a157_0xd444e3(0x143),'status':'active','rules':[{'type':a157_0xd444e3(0x18b),'field':a157_0xd444e3(0x13e),'operator':a157_0xd444e3(0x157),'value':a157_0xd444e3(0x187)}],'count':0x1388,'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x15f)},'withMultipleRules':{'id':a157_0xd444e3(0x120),'name':a157_0xd444e3(0x158),'description':a157_0xd444e3(0x126),'parent_segment_id':a157_0xd444e3(0x143),'status':a157_0xd444e3(0x12c),'rules':[{'type':a157_0xd444e3(0x18b),'field':a157_0xd444e3(0x13e),'operator':a157_0xd444e3(0x157),'value':a157_0xd444e3(0x187)},{'type':a157_0xd444e3(0x18b),'field':'lifetime_value','operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x15f)}},'journey':{'basic':{'id':'j-abc123','name':a157_0xd444e3(0x121),'description':a157_0xd444e3(0x15c),'status':a157_0xd444e3(0x168),'version':0x1,'steps':[{'id':'step-1','type':a157_0xd444e3(0x137),'duration':'1d'},{'id':'step-2','type':'activation','activation_id':a157_0xd444e3(0x12a)}],'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x15f)},'withDecision':{'id':a157_0xd444e3(0x17a),'name':a157_0xd444e3(0x167),'description':a157_0xd444e3(0x18f),'status':'active','version':0x2,'steps':[{'id':a157_0xd444e3(0x13c),'type':a157_0xd444e3(0x142),'segment_id':a157_0xd444e3(0x14c),'yes_path':a157_0xd444e3(0x18a),'no_path':a157_0xd444e3(0x177)},{'id':a157_0xd444e3(0x18a),'type':a157_0xd444e3(0x171),'activation_id':a157_0xd444e3(0x154)},{'id':a157_0xd444e3(0x177),'type':'end'}],'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x15f)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':'name','type':a157_0xd444e3(0x18c)},{'name':a157_0xd444e3(0x173),'type':a157_0xd444e3(0x139)}],'data':[[a157_0xd444e3(0x16e),a157_0xd444e3(0x162),0x64],[a157_0xd444e3(0x156),a157_0xd444e3(0x15a),0xc8],[a157_0xd444e3(0x176),a157_0xd444e3(0x12e),0x96]]},'empty':{'schema':[{'name':'id','type':a157_0xd444e3(0x18c)},{'name':a157_0xd444e3(0x13d),'type':'varchar'}],'data':[]},'singleRow':{'schema':[{'name':a157_0xd444e3(0x160),'type':a157_0xd444e3(0x139)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a157_0xd444e3(0x140),'email':a157_0xd444e3(0x181),'created_at':a157_0xd444e3(0x155),'updated_at':a157_0xd444e3(0x15f),'administrator':![]},'admin':{'id':0x1,'name':a157_0xd444e3(0x16b),'email':'admin@example.com','created_at':'2023-01-01T00:00:00Z','updated_at':a157_0xd444e3(0x15f),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':'test_db','status':a157_0xd444e3(0x166),'query':a157_0xd444e3(0x186),'start_at':'2024-01-15T10:00:00Z','end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a157_0xd444e3(0x134),'database':a157_0xd444e3(0x13f),'status':a157_0xd444e3(0x188),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a157_0xd444e3(0x136),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a157_0xd444e3(0x134),'database':a157_0xd444e3(0x13f),'status':a157_0xd444e3(0x170),'query':a157_0xd444e3(0x14f),'start_at':a157_0xd444e3(0x164),'end_at':a157_0xd444e3(0x13a),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a157_0xd444e3(0x131),'name':a157_0xd444e3(0x149),'project':a157_0xd444e3(0x153),'revision':a157_0xd444e3(0x15b),'timezone':a157_0xd444e3(0x132),'schedule':{'cron':a157_0xd444e3(0x180)}},'withSessions':{'id':'wf-67890','name':'hourly_sync','project':a157_0xd444e3(0x15e),'revision':a157_0xd444e3(0x128),'timezone':a157_0xd444e3(0x165),'schedule':{'cron':a157_0xd444e3(0x178)},'last_session':{'id':'sess-111','status':a157_0xd444e3(0x166),'started_at':a157_0xd444e3(0x152),'finished_at':a157_0xd444e3(0x184)}}},'apiError':{'unauthorized':{'errors':{'error':a157_0xd444e3(0x11f),'message':a157_0xd444e3(0x11f),'severity':a157_0xd444e3(0x170),'status_code':0x191}},'notFound':{'errors':{'error':a157_0xd444e3(0x14e),'message':a157_0xd444e3(0x16d),'severity':'error','status_code':0x194}},'rateLimited':{'detail':a157_0xd444e3(0x124)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':'Forbidden','status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a157_0xd444e3(0x15d)}}};export function createDatabase(_0x1a1f35){const _0x45f737=a157_0xd444e3;return{...fixtures[_0x45f737(0x174)][_0x45f737(0x141)],..._0x1a1f35};}export function createTable(_0x434105){const _0x1cb708=a157_0xd444e3;return{...fixtures['table'][_0x1cb708(0x141)],..._0x434105};}export function createParentSegment(_0x85272e){return{...fixtures['parentSegment']['basic'],..._0x85272e};}export function createSegment(_0x1abf58){const _0x58c834=a157_0xd444e3;return{...fixtures['segment'][_0x58c834(0x141)],..._0x1abf58};}export function createJourney(_0x49d705){const _0x3510e2=a157_0xd444e3;return{...fixtures['journey'][_0x3510e2(0x141)],..._0x49d705};}export function createQueryResult(_0xbd5e7f){const _0x121cd7=a157_0xd444e3;return{...fixtures[_0x121cd7(0x18d)][_0x121cd7(0x141)],..._0xbd5e7f};}export function createUser(_0x30bfca){const _0x50466b=a157_0xd444e3;return{...fixtures[_0x50466b(0x16c)][_0x50466b(0x141)],..._0x30bfca};}function a157_0xbfae(){const _0x2b60bc=['2024-01-15T09:05:00Z','customer_id','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','30d','running','555996MCKpwv','step-2','attribute','varchar','queryResult','events','Journey\x20with\x20decision\x20point','job','Invalid\x20API\x20key','cs-111222','Welcome\x20Journey','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','Test\x20Parent\x20Segment','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','time','Active\x20users\x20with\x20high\x20lifetime\x20value','email','def456','33342fbRALl','act-123','705820YvGIiP','active','long','Charlie','customers','402VbXQcS','wf-12345','UTC','pageviews','presto','properties','2024-01-15T10:05:00Z','wait','map<string,string>','bigint','2024-01-15T10:10:01Z','purchases','step-1','name','last_login','test_db','Test\x20User','basic','decision_point','ps-123456','production_db','61596ZsXfZQ','workflow','users','stringify','daily_etl','11mqmmVL','timestamp','cs-456789','9492zqCUES','Resource\x20not\x20found','SELECT\x20*\x20FROM\x20nonexistent_table','cdp_db','event_type','2024-01-15T09:00:00Z','data_pipeline','act-email','2024-01-01T00:00:00Z','user-2','TimeWithinPast','High\x20Value\x20Active\x20Users','Active\x20Users','Bob','abc123','Onboarding\x20journey\x20for\x20new\x20users','/v3/database/list','data_sync','2024-01-15T00:00:00Z','total','1488GTfQUS','Alice','page_views','2024-01-15T10:10:00Z','America/Los_Angeles','success','Purchase\x20Reminder','draft','events_db','Parent\x20segment\x20with\x20behavioral\x20data','Admin\x20User','user','The\x20requested\x20resource\x20does\x20not\x20exist','user-1','2173100Kztrfz','error','activation','1948oazeoU','count','database','Customers\x20with\x20Behaviors','user-3','step-3','0\x20*\x20*\x20*\x20*','created_at','j-def456','unified_customers','event_id','string','log','1rqPgOF','0\x200\x20*\x20*\x20*','test@example.com','completed','2023-06-15T10:30:00Z'];a157_0xbfae=function(){return _0x2b60bc;};return a157_0xbfae();}export function createJob(_0xbe2900){const _0x537a6a=a157_0xd444e3;return{...fixtures[_0x537a6a(0x190)][_0x537a6a(0x182)],..._0xbe2900};}export function createWorkflow(_0x855cc6){const _0x12a928=a157_0xd444e3;return{...fixtures[_0x12a928(0x146)]['basic'],..._0x855cc6};}
|
|
1
|
+
const a157_0x3373c4=a157_0x4105;(function(_0x4149ca,_0x267574){const _0x58e8a1=a157_0x4105,_0x29f9ae=_0x4149ca();while(!![]){try{const _0xdca164=-parseInt(_0x58e8a1(0x245))/0x1*(parseInt(_0x58e8a1(0x248))/0x2)+-parseInt(_0x58e8a1(0x1fc))/0x3*(-parseInt(_0x58e8a1(0x211))/0x4)+-parseInt(_0x58e8a1(0x20d))/0x5+parseInt(_0x58e8a1(0x25b))/0x6*(parseInt(_0x58e8a1(0x24e))/0x7)+parseInt(_0x58e8a1(0x259))/0x8+parseInt(_0x58e8a1(0x21d))/0x9*(parseInt(_0x58e8a1(0x257))/0xa)+-parseInt(_0x58e8a1(0x205))/0xb;if(_0xdca164===_0x267574)break;else _0x29f9ae['push'](_0x29f9ae['shift']());}catch(_0x5aa8c9){_0x29f9ae['push'](_0x29f9ae['shift']());}}}(a157_0x5348,0x1d6c9));export const fixtures={'database':{'basic':{'name':a157_0x3373c4(0x22d),'count':0x5,'created_at':a157_0x3373c4(0x21e),'updated_at':a157_0x3373c4(0x21e),'permission':a157_0x3373c4(0x231)},'withTables':{'name':a157_0x3373c4(0x23d),'count':0x64,'created_at':a157_0x3373c4(0x209),'updated_at':a157_0x3373c4(0x20c),'permission':a157_0x3373c4(0x1f3)}},'table':{'basic':{'id':0x3039,'name':'users','type':a157_0x3373c4(0x1fa),'schema':JSON[a157_0x3373c4(0x21f)]([['id',a157_0x3373c4(0x1eb)],[a157_0x3373c4(0x238),a157_0x3373c4(0x224)],[a157_0x3373c4(0x1ec),a157_0x3373c4(0x1eb)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a157_0x3373c4(0x1f6),'type':a157_0x3373c4(0x1fa),'schema':JSON[a157_0x3373c4(0x21f)]([['event_id','string'],[a157_0x3373c4(0x238),a157_0x3373c4(0x224)],[a157_0x3373c4(0x1f8),a157_0x3373c4(0x1eb)],[a157_0x3373c4(0x254),a157_0x3373c4(0x1eb)],[a157_0x3373c4(0x1fb),a157_0x3373c4(0x233)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a157_0x3373c4(0x20e)}},'parentSegment':{'basic':{'id':a157_0x3373c4(0x218),'name':a157_0x3373c4(0x23a),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a157_0x3373c4(0x24b),'master_table':{'database':a157_0x3373c4(0x253),'table':a157_0x3373c4(0x24d)},'attributes':[{'name':a157_0x3373c4(0x22e),'type':a157_0x3373c4(0x1eb),'key':!![]},{'name':a157_0x3373c4(0x21b),'type':a157_0x3373c4(0x1eb)},{'name':a157_0x3373c4(0x220),'type':a157_0x3373c4(0x226)}],'created_at':a157_0x3373c4(0x21e),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a157_0x3373c4(0x200),'name':a157_0x3373c4(0x222),'description':a157_0x3373c4(0x256),'status':a157_0x3373c4(0x24b),'master_table':{'database':a157_0x3373c4(0x253),'table':'customers'},'behaviors':[{'name':'purchases','table':{'database':'events_db','table':a157_0x3373c4(0x1ee)},'join_key':a157_0x3373c4(0x22e)},{'name':a157_0x3373c4(0x249),'table':{'database':a157_0x3373c4(0x251),'table':a157_0x3373c4(0x244)},'join_key':a157_0x3373c4(0x22e)}],'created_at':a157_0x3373c4(0x21e),'updated_at':a157_0x3373c4(0x24f)}},'segment':{'basic':{'id':'cs-456789','name':a157_0x3373c4(0x23e),'description':a157_0x3373c4(0x1f5),'parent_segment_id':a157_0x3373c4(0x218),'status':a157_0x3373c4(0x24b),'rules':[{'type':a157_0x3373c4(0x236),'field':a157_0x3373c4(0x246),'operator':a157_0x3373c4(0x1f9),'value':a157_0x3373c4(0x21c)}],'count':0x1388,'created_at':a157_0x3373c4(0x21e),'updated_at':a157_0x3373c4(0x24f)},'withMultipleRules':{'id':a157_0x3373c4(0x217),'name':'High\x20Value\x20Active\x20Users','description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a157_0x3373c4(0x218),'status':a157_0x3373c4(0x24b),'rules':[{'type':a157_0x3373c4(0x236),'field':a157_0x3373c4(0x246),'operator':a157_0x3373c4(0x1f9),'value':a157_0x3373c4(0x21c)},{'type':a157_0x3373c4(0x236),'field':'lifetime_value','operator':a157_0x3373c4(0x24a),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a157_0x3373c4(0x24f)}},'journey':{'basic':{'id':a157_0x3373c4(0x230),'name':a157_0x3373c4(0x255),'description':a157_0x3373c4(0x223),'status':a157_0x3373c4(0x210),'version':0x1,'steps':[{'id':a157_0x3373c4(0x234),'type':'wait','duration':'1d'},{'id':a157_0x3373c4(0x258),'type':a157_0x3373c4(0x252),'activation_id':a157_0x3373c4(0x202)}],'created_at':a157_0x3373c4(0x21e),'updated_at':a157_0x3373c4(0x24f)},'withDecision':{'id':'j-def456','name':a157_0x3373c4(0x22c),'description':'Journey\x20with\x20decision\x20point','status':a157_0x3373c4(0x24b),'version':0x2,'steps':[{'id':a157_0x3373c4(0x234),'type':'decision_point','segment_id':a157_0x3373c4(0x1f7),'yes_path':'step-2','no_path':a157_0x3373c4(0x213)},{'id':a157_0x3373c4(0x258),'type':a157_0x3373c4(0x252),'activation_id':'act-email'},{'id':a157_0x3373c4(0x213),'type':'end'}],'created_at':a157_0x3373c4(0x21e),'updated_at':a157_0x3373c4(0x24f)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a157_0x3373c4(0x24c)},{'name':a157_0x3373c4(0x1ec),'type':a157_0x3373c4(0x24c)},{'name':a157_0x3373c4(0x206),'type':a157_0x3373c4(0x23f)}],'data':[['user-1',a157_0x3373c4(0x1f0),0x64],[a157_0x3373c4(0x219),'Bob',0xc8],[a157_0x3373c4(0x1f1),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':a157_0x3373c4(0x24c)},{'name':a157_0x3373c4(0x1ec),'type':a157_0x3373c4(0x24c)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a157_0x3373c4(0x23f)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a157_0x3373c4(0x21a),'email':a157_0x3373c4(0x225),'created_at':a157_0x3373c4(0x21e),'updated_at':a157_0x3373c4(0x24f),'administrator':![]},'admin':{'id':0x1,'name':a157_0x3373c4(0x20f),'email':'admin@example.com','created_at':a157_0x3373c4(0x20a),'updated_at':a157_0x3373c4(0x24f),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a157_0x3373c4(0x22d),'status':a157_0x3373c4(0x239),'query':a157_0x3373c4(0x232),'start_at':a157_0x3373c4(0x228),'end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a157_0x3373c4(0x1ef),'database':a157_0x3373c4(0x22d),'status':a157_0x3373c4(0x214),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a157_0x3373c4(0x207),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a157_0x3373c4(0x1ef),'database':a157_0x3373c4(0x22d),'status':a157_0x3373c4(0x1ed),'query':a157_0x3373c4(0x1f4),'start_at':a157_0x3373c4(0x227),'end_at':a157_0x3373c4(0x204),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a157_0x3373c4(0x216),'name':'daily_etl','project':a157_0x3373c4(0x242),'revision':a157_0x3373c4(0x235),'timezone':'UTC','schedule':{'cron':a157_0x3373c4(0x208)}},'withSessions':{'id':a157_0x3373c4(0x250),'name':a157_0x3373c4(0x221),'project':'data_sync','revision':a157_0x3373c4(0x22a),'timezone':a157_0x3373c4(0x215),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a157_0x3373c4(0x237),'status':a157_0x3373c4(0x239),'started_at':a157_0x3373c4(0x212),'finished_at':a157_0x3373c4(0x229)}}},'apiError':{'unauthorized':{'errors':{'error':a157_0x3373c4(0x22f),'message':a157_0x3373c4(0x22f),'severity':a157_0x3373c4(0x1ed),'status_code':0x191}},'notFound':{'errors':{'error':a157_0x3373c4(0x201),'message':a157_0x3373c4(0x1f2),'severity':a157_0x3373c4(0x1ed),'status_code':0x194}},'rateLimited':{'detail':a157_0x3373c4(0x241)},'rfc9457':{'type':a157_0x3373c4(0x240),'title':a157_0x3373c4(0x1fe),'status':0x193,'detail':a157_0x3373c4(0x1fd),'instance':a157_0x3373c4(0x1ff)}}};export function createDatabase(_0x13b4c3){return{...fixtures['database']['basic'],..._0x13b4c3};}export function createTable(_0xe8fb5c){const _0x4d544c=a157_0x3373c4;return{...fixtures[_0x4d544c(0x243)]['basic'],..._0xe8fb5c};}export function createParentSegment(_0x425adf){const _0x2ce576=a157_0x3373c4;return{...fixtures[_0x2ce576(0x25a)][_0x2ce576(0x247)],..._0x425adf};}function a157_0x4105(_0x5208d2,_0x1cd66e){_0x5208d2=_0x5208d2-0x1ea;const _0x534890=a157_0x5348();let _0x4105a9=_0x534890[_0x5208d2];return _0x4105a9;}function a157_0x5348(){const _0x3d843b=['2024-01-15T10:10:01Z','4649854LyIFjC','count','2024-01-15T10:05:00Z','0\x200\x20*\x20*\x20*','2023-06-15T10:30:00Z','2023-01-01T00:00:00Z','journey','2024-01-15T08:00:00Z','932810KpCTtO','2024-01-15T12:00:00Z','Admin\x20User','draft','946580fHGAqo','2024-01-15T09:00:00Z','step-3','running','America/Los_Angeles','wf-12345','cs-111222','ps-123456','user-2','Test\x20User','email','30d','2763yFFnNe','2024-01-01T00:00:00Z','stringify','created_at','hourly_sync','Customers\x20with\x20Behaviors','Onboarding\x20journey\x20for\x20new\x20users','long','test@example.com','timestamp','2024-01-15T10:10:00Z','2024-01-15T10:00:00Z','2024-01-15T09:05:00Z','def456','queryResult','Purchase\x20Reminder','test_db','customer_id','Invalid\x20API\x20key','j-abc123','administrator','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','map<string,string>','step-1','abc123','attribute','sess-111','time','success','Test\x20Parent\x20Segment','job','segment','production_db','Active\x20Users','bigint','https://api.treasuredata.com/errors/forbidden','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','data_pipeline','table','pageviews','1QcRGPq','last_login','basic','130838CZxTRB','page_views','Greater','active','varchar','unified_customers','1208711mgRjSK','2024-01-15T00:00:00Z','wf-67890','events_db','activation','cdp_db','event_type','Welcome\x20Journey','Parent\x20segment\x20with\x20behavioral\x20data','7190AqQFse','step-2','1321320EfzbEC','parentSegment','6cZmyxk','completed','string','name','error','purchases','presto','Alice','user-3','The\x20requested\x20resource\x20does\x20not\x20exist','full_access','SELECT\x20*\x20FROM\x20nonexistent_table','Users\x20active\x20in\x20the\x20last\x2030\x20days','events','cs-456789','user_id','TimeWithinPast','log','properties','3spodQK','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','Forbidden','/v3/database/list','ps-789012','Resource\x20not\x20found','act-123','user'];a157_0x5348=function(){return _0x3d843b;};return a157_0x5348();}export function createSegment(_0x1f57d7){const _0x4055d3=a157_0x3373c4;return{...fixtures[_0x4055d3(0x23c)][_0x4055d3(0x247)],..._0x1f57d7};}export function createJourney(_0x968862){const _0x2a77ed=a157_0x3373c4;return{...fixtures[_0x2a77ed(0x20b)]['basic'],..._0x968862};}export function createQueryResult(_0x219a16){const _0xbdbd27=a157_0x3373c4;return{...fixtures[_0xbdbd27(0x22b)][_0xbdbd27(0x247)],..._0x219a16};}export function createUser(_0x3003f1){const _0x4d114d=a157_0x3373c4;return{...fixtures[_0x4d114d(0x203)][_0x4d114d(0x247)],..._0x3003f1};}export function createJob(_0x14f451){const _0x13561d=a157_0x3373c4;return{...fixtures[_0x13561d(0x23b)][_0x13561d(0x1ea)],..._0x14f451};}export function createWorkflow(_0x4d8c5b){const _0x7a02e5=a157_0x3373c4;return{...fixtures['workflow'][_0x7a02e5(0x247)],..._0x4d8c5b};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
const a158_0x2d0ae2=a158_0x10c2;(function(_0x52c7dc,_0x5a8709){const _0x2350fb=a158_0x10c2,_0x4508c1=_0x52c7dc();while(!![]){try{const _0x3bc1fb=parseInt(_0x2350fb(0x13e))/0x1*(parseInt(_0x2350fb(0x168))/0x2)+parseInt(_0x2350fb(0x14e))/0x3+-parseInt(_0x2350fb(0x12e))/0x4*(-parseInt(_0x2350fb(0x162))/0x5)+parseInt(_0x2350fb(0x125))/0x6+-parseInt(_0x2350fb(0x12c))/0x7+-parseInt(_0x2350fb(0x147))/0x8*(-parseInt(_0x2350fb(0x133))/0x9)+-parseInt(_0x2350fb(0x131))/0xa;if(_0x3bc1fb===_0x5a8709)break;else _0x4508c1['push'](_0x4508c1['shift']());}catch(_0x29ad8c){_0x4508c1['push'](_0x4508c1['shift']());}}}(a158_0x20be,0x8b6c6));import{vi}from'vitest';function a158_0x10c2(_0x564a83,_0x333918){_0x564a83=_0x564a83-0x119;const _0x20beab=a158_0x20be();let _0x10c283=_0x20beab[_0x564a83];return _0x10c283;}function a158_0x20be(){const _0x16abac=['withHost','GET','Registered\x20stubs:\x0a','application/json','method','stringify','some','jsonResponseWithHeaders','toUpperCase','push','fail','join','stubs','249090HwuGtl','description','text/plain','url','wasCalled','register','194mdavWi','reset','Created','test','pathname','fetchMock','mockImplementation','rfc9457','Bad\x20Gateway','unnamed\x20stub','responder','stack','No\x20stub\x20matched\x20request:\x20','https://api.treasuredata.com/errors/','4523412DbjmSV','createFetch','map','headers','string','errorResponse','parseRequest','1738625wdrfwT','matchCount','88XOHhlz','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','includes','33406590eezHdC','getStatusText','10467rQkFXw','forEach','matched','getMatchCount','\x20registered\x20at:\x0a','withQuery','requests','Unprocessable\x20Entity','parse','Conflict','withBody','4052ZUoObU','verify','Not\x20Found','simple','Internal\x20Server\x20Error','split','td-api','get','toLowerCase','5792USjTbt','\x20\x20(none)','matcher','networkError','REST','function','Too\x20Many\x20Requests','3225474nOVvYF','body','Request\x20body:\x20','Unmatched\x20stub','length','slice','searchParams'];a158_0x20be=function(){return _0x16abac;};return a158_0x20be();}export class HTTPMockRegistry{['stubs']=[];['requests']=[];[a158_0x2d0ae2(0x11c)]=null;[a158_0x2d0ae2(0x14b)](_0x38c56e,_0x1ca720){return _0x3de264=>{const _0x15df92=a158_0x10c2;if(_0x3de264[_0x15df92(0x159)][_0x15df92(0x15d)]()!==_0x38c56e[_0x15df92(0x15d)]())return![];const _0x1a16fc=new URL(_0x3de264[_0x15df92(0x165)]);if(typeof _0x1ca720===_0x15df92(0x129))return _0x1a16fc[_0x15df92(0x11b)]===_0x1ca720||_0x1a16fc[_0x15df92(0x11b)][_0x15df92(0x130)](_0x1ca720);return _0x1ca720[_0x15df92(0x11a)](_0x1a16fc['pathname']);};}[a158_0x2d0ae2(0x138)](_0x4de13f,_0x47a2ab){return _0x24f87e=>{const _0x1f2030=a158_0x10c2;if(!_0x4de13f(_0x24f87e))return![];const _0x4af2c0=new URL(_0x24f87e[_0x1f2030(0x165)]);return Object['entries'](_0x47a2ab)['every'](([_0x33f99f,_0x5a085c])=>_0x4af2c0[_0x1f2030(0x154)][_0x1f2030(0x145)](_0x33f99f)===_0x5a085c);};}[a158_0x2d0ae2(0x13d)](_0x30ec0b,_0x5f34e4){return _0x34a24c=>{const _0x1abecd=a158_0x10c2;if(!_0x30ec0b(_0x34a24c))return![];if(typeof _0x5f34e4===_0x1abecd(0x14c))return _0x5f34e4(_0x34a24c[_0x1abecd(0x14f)]);return JSON['stringify'](_0x34a24c[_0x1abecd(0x14f)])===JSON['stringify'](_0x5f34e4);};}[a158_0x2d0ae2(0x155)](_0x1ce552,_0x4d6f72){return _0x2a8274=>{const _0x44105d=a158_0x10c2;if(!_0x1ce552(_0x2a8274))return![];const _0x4769ba=new URL(_0x2a8274[_0x44105d(0x165)]);return _0x4769ba['host']===_0x4d6f72;};}[a158_0x2d0ae2(0x167)](_0x383fb7,_0x3f7bc8,_0x433517){const _0x4e8b6c=a158_0x2d0ae2;this[_0x4e8b6c(0x161)][_0x4e8b6c(0x15e)]({'matcher':_0x383fb7,'responder':_0x3f7bc8,'matched':![],'matchCount':0x0,'stack':new Error()[_0x4e8b6c(0x122)]??'','description':_0x433517?.[_0x4e8b6c(0x163)]});}['registerWithInspector'](_0x81b139,_0x42b3c4,_0x1a48f4){const _0x166bf2=a158_0x2d0ae2,_0x57d835=_0x10cd19=>{const _0x59f949=a158_0x10c2;return _0x1a48f4(_0x10cd19[_0x59f949(0x14f)],_0x10cd19),_0x42b3c4(_0x10cd19);};this[_0x166bf2(0x167)](_0x81b139,_0x57d835);}static['jsonResponse'](_0x5766bf,_0x40b2b7=0xc8){const _0x215d0f=a158_0x2d0ae2;return()=>new Response(JSON[_0x215d0f(0x15a)](_0x5766bf),{'status':_0x40b2b7,'headers':{'Content-Type':'application/json'}});}static[a158_0x2d0ae2(0x12a)](_0x2f9a6f,_0x11f096,_0x598a7f=a158_0x2d0ae2(0x141)){return()=>{const _0x4c7a69=a158_0x10c2;let _0x4dd4e1;switch(_0x598a7f){case _0x4c7a69(0x144):_0x4dd4e1={'errors':{'error':_0x11f096,'message':_0x11f096,'severity':'error','status_code':_0x2f9a6f}};break;case _0x4c7a69(0x11e):_0x4dd4e1={'type':_0x4c7a69(0x124)+_0x2f9a6f,'title':HTTPMockRegistry[_0x4c7a69(0x132)](_0x2f9a6f),'status':_0x2f9a6f,'detail':_0x11f096};break;default:_0x4dd4e1={'error':_0x11f096};}return new Response(JSON[_0x4c7a69(0x15a)](_0x4dd4e1),{'status':_0x2f9a6f,'headers':{'Content-Type':_0x4c7a69(0x158)}});};}static[a158_0x2d0ae2(0x15c)](_0x2bc954,_0x16cadd,_0x61f0c9=0xc8){const _0x412892=a158_0x2d0ae2;return()=>new Response(JSON[_0x412892(0x15a)](_0x2bc954),{'status':_0x61f0c9,'headers':{'Content-Type':'application/json',..._0x16cadd}});}static['textResponse'](_0x555aaf,_0x45a14f=0xc8){const _0xe01935=a158_0x2d0ae2;return()=>new Response(_0x555aaf,{'status':_0x45a14f,'headers':{'Content-Type':_0xe01935(0x164)}});}static[a158_0x2d0ae2(0x14a)](_0x5c3605){return()=>{throw new Error(_0x5c3605);};}[a158_0x2d0ae2(0x126)](){const _0x43bad9=a158_0x2d0ae2;return this['fetchMock']=vi['fn']()[_0x43bad9(0x11d)](async(_0x1d66a6,_0x4538c5)=>{const _0x4a176a=_0x43bad9,_0x339fb=this[_0x4a176a(0x12b)](_0x1d66a6,_0x4538c5);this[_0x4a176a(0x139)][_0x4a176a(0x15e)](_0x339fb);for(const _0x23669d of this[_0x4a176a(0x161)]){if(_0x23669d[_0x4a176a(0x149)](_0x339fb))return _0x23669d[_0x4a176a(0x135)]=!![],_0x23669d[_0x4a176a(0x12d)]++,_0x23669d[_0x4a176a(0x121)](_0x339fb);}const _0x39be93=this[_0x4a176a(0x161)][_0x4a176a(0x127)]((_0x5a1621,_0x179225)=>'\x20\x20'+(_0x179225+0x1)+'.\x20'+(_0x5a1621['description']??_0x4a176a(0x120)))[_0x4a176a(0x160)]('\x0a');throw new Error(_0x4a176a(0x123)+_0x339fb[_0x4a176a(0x159)]+'\x20'+_0x339fb[_0x4a176a(0x165)]+'\x0a'+(_0x4a176a(0x150)+JSON[_0x4a176a(0x15a)](_0x339fb[_0x4a176a(0x14f)])+'\x0a')+(_0x4a176a(0x157)+(_0x39be93||_0x4a176a(0x148))));}),this[_0x43bad9(0x11c)];}[a158_0x2d0ae2(0x12b)](_0x39fdcd,_0x43d611){const _0x38fc93=a158_0x2d0ae2,_0x10500f={};if(_0x43d611?.[_0x38fc93(0x128)]){if(_0x43d611['headers']instanceof Headers)_0x43d611['headers'][_0x38fc93(0x134)]((_0x18b25a,_0x5a6500)=>{const _0x562843=_0x38fc93;_0x10500f[_0x5a6500[_0x562843(0x146)]()]=_0x18b25a;});else{if(Array['isArray'](_0x43d611['headers']))for(const [_0xe94526,_0x2f203b]of _0x43d611[_0x38fc93(0x128)]){_0x10500f[_0xe94526[_0x38fc93(0x146)]()]=_0x2f203b;}else for(const [_0x25044c,_0x4022ea]of Object['entries'](_0x43d611[_0x38fc93(0x128)])){_0x4022ea!==undefined&&(_0x10500f[_0x25044c['toLowerCase']()]=_0x4022ea);}}}let _0x28a3e5;if(_0x43d611?.['body'])try{_0x28a3e5=JSON[_0x38fc93(0x13b)](_0x43d611[_0x38fc93(0x14f)]);}catch{_0x28a3e5=_0x43d611[_0x38fc93(0x14f)];}return{'method':_0x43d611?.['method']??_0x38fc93(0x156),'url':_0x39fdcd,'headers':_0x10500f,'body':_0x28a3e5};}[a158_0x2d0ae2(0x13f)](_0x53df86){const _0x11ae1f=a158_0x2d0ae2,_0xe4d4b1=this[_0x11ae1f(0x161)]['filter'](_0x2510b6=>!_0x2510b6['matched']);if(_0xe4d4b1['length']>0x0){const _0x1bfd07=_0xe4d4b1['map'](_0x12fed3=>{const _0x59f550=_0x11ae1f,_0x928ba9=_0x12fed3['description']?'\x20('+_0x12fed3['description']+')':'',_0x58730a=_0x12fed3[_0x59f550(0x122)][_0x59f550(0x143)]('\x0a')[_0x59f550(0x153)](0x2,0x5)[_0x59f550(0x160)]('\x0a');return _0x59f550(0x151)+_0x928ba9+_0x59f550(0x137)+_0x58730a;});_0x53df86[_0x11ae1f(0x15f)](_0xe4d4b1[_0x11ae1f(0x152)]+_0x11ae1f(0x12f)+_0x1bfd07[_0x11ae1f(0x160)]('\x0a\x0a'));}}['getRequests'](){return[...this['requests']];}['getLastRequest'](){const _0x34bb4b=a158_0x2d0ae2;return this['requests'][this[_0x34bb4b(0x139)][_0x34bb4b(0x152)]-0x1];}[a158_0x2d0ae2(0x166)](_0x5c2fe7,_0x195e8b){const _0x10c9d0=a158_0x2d0ae2;return this[_0x10c9d0(0x139)][_0x10c9d0(0x15b)](_0x2a8843=>{const _0x1b588a=_0x10c9d0;if(_0x2a8843[_0x1b588a(0x159)][_0x1b588a(0x15d)]()!==_0x5c2fe7['toUpperCase']())return![];if(typeof _0x195e8b===_0x1b588a(0x129))return _0x2a8843[_0x1b588a(0x165)][_0x1b588a(0x130)](_0x195e8b);return _0x195e8b['test'](_0x2a8843[_0x1b588a(0x165)]);});}[a158_0x2d0ae2(0x136)](_0x45fa4d){const _0x520e3a=a158_0x2d0ae2;return this[_0x520e3a(0x161)][_0x45fa4d]?.[_0x520e3a(0x12d)]??0x0;}[a158_0x2d0ae2(0x169)](){const _0xa9ca6f=a158_0x2d0ae2;this[_0xa9ca6f(0x161)]=[],this[_0xa9ca6f(0x139)]=[],this[_0xa9ca6f(0x11c)]=null;}static[a158_0x2d0ae2(0x132)](_0xe63541){const _0x46a341=a158_0x2d0ae2,_0x30c1db={0xc8:'OK',0xc9:_0x46a341(0x119),0xcc:'No\x20Content',0x190:'Bad\x20Request',0x191:'Unauthorized',0x193:'Forbidden',0x194:_0x46a341(0x140),0x199:_0x46a341(0x13c),0x1a6:_0x46a341(0x13a),0x1ad:_0x46a341(0x14d),0x1f4:_0x46a341(0x142),0x1f6:_0x46a341(0x11f),0x1f7:'Service\x20Unavailable'};return _0x30c1db[_0xe63541]??'Unknown';}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a159_0x4807(){var _0x330a62=['10uUsQGN','1079334myEqbq','209wrEaNd','108143YtriVL','1691555vJqXgT','705UWdZdr','8948UBKPbz','248RVilDL','2470Skanoe','2739753hLNMUA','366bXBaeK','504852jDxrWe'];a159_0x4807=function(){return _0x330a62;};return a159_0x4807();}(function(_0x3a7e15,_0x3d511a){var _0x17a6bd=a159_0x595a,_0x391a05=_0x3a7e15();while(!![]){try{var _0x304a9a=-parseInt(_0x17a6bd(0x191))/0x1*(-parseInt(_0x17a6bd(0x18f))/0x2)+parseInt(_0x17a6bd(0x18c))/0x3*(parseInt(_0x17a6bd(0x18d))/0x4)+-parseInt(_0x17a6bd(0x18b))/0x5+-parseInt(_0x17a6bd(0x194))/0x6+parseInt(_0x17a6bd(0x18a))/0x7*(parseInt(_0x17a6bd(0x18e))/0x8)+-parseInt(_0x17a6bd(0x190))/0x9*(-parseInt(_0x17a6bd(0x193))/0xa)+parseInt(_0x17a6bd(0x195))/0xb*(-parseInt(_0x17a6bd(0x192))/0xc);if(_0x304a9a===_0x3d511a)break;else _0x391a05['push'](_0x391a05['shift']());}catch(_0x4eab2e){_0x391a05['push'](_0x391a05['shift']());}}}(a159_0x4807,0x6c464));function a159_0x595a(_0x335d4b,_0x55a22f){_0x335d4b=_0x335d4b-0x18a;var _0x4807eb=a159_0x4807();var _0x595af1=_0x4807eb[_0x335d4b];return _0x595af1;}export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a160_0x4c1b(_0x2e15fc,_0x515f13){_0x2e15fc=_0x2e15fc-0xfa;const _0x21f32d=a160_0x21f3();let _0x4c1b11=_0x21f32d[_0x2e15fc];return _0x4c1b11;}function a160_0x21f3(){const _0x221a74=['1733298UOsThi','map','24006gNBNsk','8nSZDen','6XSfZpX','968xxMxcv','75NZSPZf','push','171FxBOgH','74646OERTyd','6199820hOpgva','slice','2107640VTlZRu','68468WfVqgf','all','length'];a160_0x21f3=function(){return _0x221a74;};return a160_0x21f3();}(function(_0x44fb6d,_0x58ad65){const _0x5582b9=a160_0x4c1b,_0x4e1b3d=_0x44fb6d();while(!![]){try{const _0x28a2ea=-parseInt(_0x5582b9(0xfc))/0x1*(parseInt(_0x5582b9(0xfb))/0x2)+-parseInt(_0x5582b9(0x102))/0x3+-parseInt(_0x5582b9(0x106))/0x4*(parseInt(_0x5582b9(0xff))/0x5)+-parseInt(_0x5582b9(0xfd))/0x6*(parseInt(_0x5582b9(0x109))/0x7)+parseInt(_0x5582b9(0xfe))/0x8*(-parseInt(_0x5582b9(0x101))/0x9)+parseInt(_0x5582b9(0x105))/0xa+parseInt(_0x5582b9(0x103))/0xb;if(_0x28a2ea===_0x58ad65)break;else _0x4e1b3d['push'](_0x4e1b3d['shift']());}catch(_0x552473){_0x4e1b3d['push'](_0x4e1b3d['shift']());}}}(a160_0x21f3,0x23d7a));export async function batchAsync(_0x1ef306,_0x21d712,_0x1eebb0=0xa){const _0x28043e=a160_0x4c1b,_0x5b078a=[];for(let _0x3732f0=0x0;_0x3732f0<_0x1ef306[_0x28043e(0x108)];_0x3732f0+=_0x1eebb0){const _0x2b9bea=_0x1ef306[_0x28043e(0x104)](_0x3732f0,_0x3732f0+_0x1eebb0),_0x1b6a2f=await Promise[_0x28043e(0x107)](_0x2b9bea[_0x28043e(0xfa)](_0x21d712));_0x5b078a[_0x28043e(0x100)](..._0x1b6a2f);}return _0x5b078a;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a161_0x3c28(_0x5be06c,_0x2e3159){_0x5be06c=_0x5be06c-0x79;const _0x4bbd9c=a161_0x4bbd();let _0x3c28fa=_0x4bbd9c[_0x5be06c];return _0x3c28fa;}const a161_0x3a2a5e=a161_0x3c28;(function(_0x411477,_0x18e242){const _0x4034df=a161_0x3c28,_0x590e8a=_0x411477();while(!![]){try{const _0x2b6174=parseInt(_0x4034df(0x7d))/0x1+parseInt(_0x4034df(0x81))/0x2*(-parseInt(_0x4034df(0x8c))/0x3)+-parseInt(_0x4034df(0x8a))/0x4*(-parseInt(_0x4034df(0x96))/0x5)+parseInt(_0x4034df(0x98))/0x6*(-parseInt(_0x4034df(0x8b))/0x7)+-parseInt(_0x4034df(0x94))/0x8*(-parseInt(_0x4034df(0x90))/0x9)+-parseInt(_0x4034df(0x99))/0xa+-parseInt(_0x4034df(0x8e))/0xb;if(_0x2b6174===_0x18e242)break;else _0x590e8a['push'](_0x590e8a['shift']());}catch(_0x4ce946){_0x590e8a['push'](_0x590e8a['shift']());}}}(a161_0x4bbd,0xe57c1));import*as a161_0x47a568 from'chalk';const Chalk=a161_0x47a568[a161_0x3a2a5e(0x91)];export function shouldUseColor(_0x477a7f={}){const _0x5b74a3=a161_0x3a2a5e;if(_0x477a7f[_0x5b74a3(0x88)]===!![])return![];if(_0x477a7f[_0x5b74a3(0x7c)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5b74a3(0x89)][_0x5b74a3(0x92)]??![];}export function getChalk(_0xdef4a3={}){if(shouldUseColor(_0xdef4a3))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x5e5f8b,_0x2c697a={}){const _0x5e7bc8=a161_0x3a2a5e;return getChalk(_0x2c697a)[_0x5e7bc8(0x82)](_0x5e5f8b);}export function colorHeader(_0x409f4a,_0x2b8d2c={}){const _0x12305f=a161_0x3a2a5e;return getChalk(_0x2b8d2c)[_0x12305f(0x85)](_0x409f4a);}export function colorType(_0x5a4e0d,_0x3f9070={}){const _0x3bf66c=a161_0x3a2a5e;return getChalk(_0x3f9070)[_0x3bf66c(0x82)](_0x5a4e0d);}export function colorJSONKey(_0x3f6607,_0x4a3c9c={}){const _0x1394f6=a161_0x3a2a5e;return getChalk(_0x4a3c9c)[_0x1394f6(0x7a)](_0x3f6607);}export function colorJSONString(_0x251af3,_0x4db23a={}){const _0x2124f8=a161_0x3a2a5e;return getChalk(_0x4db23a)[_0x2124f8(0x7f)](_0x251af3);}export function colorJSONNumber(_0x308656,_0x471518={}){const _0x1b2f57=a161_0x3a2a5e;return getChalk(_0x471518)[_0x1b2f57(0x85)](_0x308656);}export function colorJSONBoolean(_0x533c67,_0x4006c9={}){const _0x22c5a1=a161_0x3a2a5e;return getChalk(_0x4006c9)[_0x22c5a1(0x8f)](_0x533c67);}function a161_0x4bbd(){const _0x4c8a36=['boolean','noColor','stdout','4cwZjXQ','21yzDiMS','1812765czQBNr','join','4307160DQakna','yellow','27bRQeMy','Chalk','isTTY','map','3987528OOIwZQ','null','4848095ewxfQo','object','184938RneRCw','6344500OeYlgq','isArray','blue','string','color','197761UjJpZU','number','green','stringify','2jgAJiW','dim','repeat','length','cyan','entries'];a161_0x4bbd=function(){return _0x4c8a36;};return a161_0x4bbd();}export function colorJSONNull(_0x41b789,_0xa7e6f6={}){return getChalk(_0xa7e6f6)['dim'](_0x41b789);}export function colorizeJSONCompact(_0x528031,_0x16e993={}){const _0x159ec5=a161_0x3a2a5e;if(!shouldUseColor(_0x16e993))return JSON['stringify'](_0x528031);if(_0x528031===null)return colorJSONNull(_0x159ec5(0x95),_0x16e993);if(typeof _0x528031===_0x159ec5(0x87))return colorJSONBoolean(String(_0x528031),_0x16e993);if(typeof _0x528031===_0x159ec5(0x7e))return colorJSONNumber(String(_0x528031),_0x16e993);if(typeof _0x528031===_0x159ec5(0x7b))return colorJSONString(JSON[_0x159ec5(0x80)](_0x528031),_0x16e993);if(Array[_0x159ec5(0x79)](_0x528031)){if(_0x528031['length']===0x0)return'[]';const _0x93417f=_0x528031[_0x159ec5(0x93)](_0x1b60d8=>colorizeJSONCompact(_0x1b60d8,_0x16e993));return'['+_0x93417f[_0x159ec5(0x8d)](',')+']';}if(typeof _0x528031===_0x159ec5(0x97)){const _0x24832f=Object[_0x159ec5(0x86)](_0x528031);if(_0x24832f[_0x159ec5(0x84)]===0x0)return'{}';const _0x205fba=_0x24832f[_0x159ec5(0x93)](([_0x574c60,_0x400a8f])=>{const _0x92ce6e=_0x159ec5,_0x133be6=colorJSONKey(JSON[_0x92ce6e(0x80)](_0x574c60),_0x16e993),_0x3b8e24=colorizeJSONCompact(_0x400a8f,_0x16e993);return _0x133be6+':'+_0x3b8e24;});return'{'+_0x205fba['join'](',')+'}';}return String(_0x528031);}export function colorizeJSON(_0x3cf79d,_0x66b542={},_0x128fce=0x0){const _0xaa71ae=a161_0x3a2a5e;if(!shouldUseColor(_0x66b542))return JSON['stringify'](_0x3cf79d,null,0x2);const _0x4dd696='\x20'['repeat'](_0x128fce),_0x2cbe20=_0x128fce+0x2;if(_0x3cf79d===null)return colorJSONNull('null',_0x66b542);if(typeof _0x3cf79d==='boolean')return colorJSONBoolean(String(_0x3cf79d),_0x66b542);if(typeof _0x3cf79d===_0xaa71ae(0x7e))return colorJSONNumber(String(_0x3cf79d),_0x66b542);if(typeof _0x3cf79d===_0xaa71ae(0x7b))return colorJSONString(JSON[_0xaa71ae(0x80)](_0x3cf79d),_0x66b542);if(Array['isArray'](_0x3cf79d)){if(_0x3cf79d[_0xaa71ae(0x84)]===0x0)return'[]';const _0x478b04=_0x3cf79d[_0xaa71ae(0x93)](_0x42f125=>{const _0x1c5ed3=_0xaa71ae,_0x2895b0=colorizeJSON(_0x42f125,_0x66b542,_0x2cbe20);return''+'\x20'[_0x1c5ed3(0x83)](_0x2cbe20)+_0x2895b0;});return'[\x0a'+_0x478b04[_0xaa71ae(0x8d)](',\x0a')+('\x0a'+_0x4dd696+']');}if(typeof _0x3cf79d===_0xaa71ae(0x97)){const _0x357412=Object[_0xaa71ae(0x86)](_0x3cf79d);if(_0x357412[_0xaa71ae(0x84)]===0x0)return'{}';const _0x8189ef=_0x357412[_0xaa71ae(0x93)](([_0x761bb6,_0x3c8cb6])=>{const _0xa93fe9=_0xaa71ae,_0x22e4fa=colorJSONKey(JSON['stringify'](_0x761bb6),_0x66b542),_0x3e5fbc=colorizeJSON(_0x3c8cb6,_0x66b542,_0x2cbe20);return''+'\x20'[_0xa93fe9(0x83)](_0x2cbe20)+_0x22e4fa+':\x20'+_0x3e5fbc;});return'{\x0a'+_0x8189ef[_0xaa71ae(0x8d)](',\x0a')+('\x0a'+_0x4dd696+'}');}return String(_0x3cf79d);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3682b8,_0x269142){const _0x27ce60=a162_0x4c0e,_0x1c7389=_0x3682b8();while(!![]){try{const _0x25b7f4=parseInt(_0x27ce60(0xbd))/0x1*(-parseInt(_0x27ce60(0xbb))/0x2)+parseInt(_0x27ce60(0xc4))/0x3+-parseInt(_0x27ce60(0xae))/0x4*(-parseInt(_0x27ce60(0xab))/0x5)+parseInt(_0x27ce60(0xc3))/0x6+parseInt(_0x27ce60(0xb6))/0x7*(-parseInt(_0x27ce60(0xb1))/0x8)+-parseInt(_0x27ce60(0xb3))/0x9+parseInt(_0x27ce60(0xbf))/0xa*(parseInt(_0x27ce60(0xc0))/0xb);if(_0x25b7f4===_0x269142)break;else _0x1c7389['push'](_0x1c7389['shift']());}catch(_0x435b26){_0x1c7389['push'](_0x1c7389['shift']());}}}(a162_0x30ac,0x6a403));import a162_0x3eb42a from'chalk';function a162_0x30ac(){const _0x2817b2=['6893928HytLzF','size','\x20+\x20','7maYwjr','old','unshift','add','repeat','2KTsjdg','content','545533bdZxnr','padStart','18734530cBENJc','11XXfmmo','forEach','fill','228042IdabkK','312993VejbOE','\x20\x20\x20','removed','green','join','length','max','added','unchanged','46930eKyIAK','\x20-\x20','push','84DUDPOX','type','some','3729352doTDMp','split'];a162_0x30ac=function(){return _0x2817b2;};return a162_0x30ac();}export function generateDiff(_0xe8c498,_0x2b11b2){const _0x2f99b9=a162_0x4c0e,_0x6693e7=_0xe8c498[_0x2f99b9(0xb2)]('\x0a'),_0x1cfe98=_0x2b11b2[_0x2f99b9(0xb2)]('\x0a'),_0x2e60a9=[],_0xc2ae55=computeLCS(_0x6693e7,_0x1cfe98);let _0x12f81c=0x0,_0x1cca23=0x0,_0x8e7d52=0x0;while(_0x12f81c<_0x6693e7[_0x2f99b9(0xa7)]||_0x1cca23<_0x1cfe98[_0x2f99b9(0xa7)]){if(_0x8e7d52<_0xc2ae55[_0x2f99b9(0xa7)]&&_0x12f81c<_0x6693e7['length']&&_0x6693e7[_0x12f81c]===_0xc2ae55[_0x8e7d52])_0x1cca23<_0x1cfe98[_0x2f99b9(0xa7)]&&_0x1cfe98[_0x1cca23]===_0xc2ae55[_0x8e7d52]?(_0x2e60a9[_0x2f99b9(0xad)]({'type':_0x2f99b9(0xaa),'content':_0x6693e7[_0x12f81c]}),_0x12f81c++,_0x1cca23++,_0x8e7d52++):(_0x2e60a9[_0x2f99b9(0xad)]({'type':_0x2f99b9(0xa9),'content':_0x1cfe98[_0x1cca23]}),_0x1cca23++);else{if(_0x8e7d52<_0xc2ae55[_0x2f99b9(0xa7)]&&_0x1cca23<_0x1cfe98[_0x2f99b9(0xa7)]&&_0x1cfe98[_0x1cca23]===_0xc2ae55[_0x8e7d52])_0x2e60a9['push']({'type':'removed','content':_0x6693e7[_0x12f81c]}),_0x12f81c++;else{if(_0x12f81c<_0x6693e7[_0x2f99b9(0xa7)]&&(_0x8e7d52>=_0xc2ae55[_0x2f99b9(0xa7)]||_0x6693e7[_0x12f81c]!==_0xc2ae55[_0x8e7d52]))_0x2e60a9[_0x2f99b9(0xad)]({'type':_0x2f99b9(0xa4),'content':_0x6693e7[_0x12f81c]}),_0x12f81c++;else _0x1cca23<_0x1cfe98['length']&&(_0x2e60a9[_0x2f99b9(0xad)]({'type':'added','content':_0x1cfe98[_0x1cca23]}),_0x1cca23++);}}}return _0x2e60a9;}function computeLCS(_0x3e071c,_0x5ea281){const _0x7c8515=a162_0x4c0e,_0x295e44=_0x3e071c['length'],_0x579ebe=_0x5ea281[_0x7c8515(0xa7)],_0x3c35cf=Array(_0x295e44+0x1)[_0x7c8515(0xc2)](null)['map'](()=>Array(_0x579ebe+0x1)['fill'](0x0));for(let _0x129b5d=0x1;_0x129b5d<=_0x295e44;_0x129b5d++){for(let _0x337403=0x1;_0x337403<=_0x579ebe;_0x337403++){_0x3e071c[_0x129b5d-0x1]===_0x5ea281[_0x337403-0x1]?_0x3c35cf[_0x129b5d][_0x337403]=_0x3c35cf[_0x129b5d-0x1][_0x337403-0x1]+0x1:_0x3c35cf[_0x129b5d][_0x337403]=Math['max'](_0x3c35cf[_0x129b5d-0x1][_0x337403],_0x3c35cf[_0x129b5d][_0x337403-0x1]);}}const _0x27a8a8=[];let _0x5cad71=_0x295e44,_0x16b357=_0x579ebe;while(_0x5cad71>0x0&&_0x16b357>0x0){if(_0x3e071c[_0x5cad71-0x1]===_0x5ea281[_0x16b357-0x1])_0x27a8a8[_0x7c8515(0xb8)](_0x3e071c[_0x5cad71-0x1]),_0x5cad71--,_0x16b357--;else _0x3c35cf[_0x5cad71-0x1][_0x16b357]>_0x3c35cf[_0x5cad71][_0x16b357-0x1]?_0x5cad71--:_0x16b357--;}return _0x27a8a8;}export function formatDiffWithColors(_0x2d6489,_0x553793=0x3){const _0x3c17c6=a162_0x4c0e,_0x47a88e=new Set();_0x2d6489[_0x3c17c6(0xc1)]((_0x56182a,_0x2c105d)=>{const _0xc1009=_0x3c17c6;_0x56182a[_0xc1009(0xaf)]!=='unchanged'&&_0x47a88e[_0xc1009(0xb9)](_0x2c105d);});if(_0x47a88e[_0x3c17c6(0xb4)]===0x0)return'';const _0x466d13=new Set();for(const _0xbae52b of _0x47a88e){for(let _0x2bd160=Math[_0x3c17c6(0xa8)](0x0,_0xbae52b-_0x553793);_0x2bd160<=Math['min'](_0x2d6489[_0x3c17c6(0xa7)]-0x1,_0xbae52b+_0x553793);_0x2bd160++){_0x466d13[_0x3c17c6(0xb9)](_0x2bd160);}}const _0x36f232=[];let _0x21bd25=-0x1;const _0x514d6b=_0x2d6489[_0x3c17c6(0xa7)],_0x5726a5=Math['max'](0x3,String(_0x514d6b)[_0x3c17c6(0xa7)]),_0x180cdd=[];let _0x345181=0x0,_0x4e9e72=0x0;for(const _0x8722cc of _0x2d6489){if(_0x8722cc['type']==='removed')_0x345181++,_0x180cdd[_0x3c17c6(0xad)]({'old':_0x345181,'new':0x0});else _0x8722cc[_0x3c17c6(0xaf)]==='added'?(_0x4e9e72++,_0x180cdd[_0x3c17c6(0xad)]({'old':0x0,'new':_0x4e9e72})):(_0x345181++,_0x4e9e72++,_0x180cdd[_0x3c17c6(0xad)]({'old':_0x345181,'new':_0x4e9e72}));}for(let _0x415c76=0x0;_0x415c76<_0x2d6489[_0x3c17c6(0xa7)];_0x415c76++){if(!_0x466d13['has'](_0x415c76))continue;_0x21bd25!==-0x1&&_0x415c76>_0x21bd25+0x1&&_0x36f232['push'](a162_0x3eb42a['cyan']('\x20\x20...'));_0x21bd25=_0x415c76;const _0x21e67f=_0x2d6489[_0x415c76],_0x25388b=_0x180cdd[_0x415c76],_0x2b3c1a=_0x25388b[_0x3c17c6(0xb7)]>0x0?String(_0x25388b['old'])[_0x3c17c6(0xbe)](_0x5726a5):'\x20'['repeat'](_0x5726a5),_0x4a4078=_0x25388b['new']>0x0?String(_0x25388b['new'])[_0x3c17c6(0xbe)](_0x5726a5):'\x20'[_0x3c17c6(0xba)](_0x5726a5);switch(_0x21e67f[_0x3c17c6(0xaf)]){case _0x3c17c6(0xa4):_0x36f232[_0x3c17c6(0xad)](a162_0x3eb42a['red'](_0x2b3c1a+'\x20'+_0x4a4078+_0x3c17c6(0xac)+_0x21e67f[_0x3c17c6(0xbc)]));break;case'added':_0x36f232[_0x3c17c6(0xad)](a162_0x3eb42a[_0x3c17c6(0xa5)](_0x2b3c1a+'\x20'+_0x4a4078+_0x3c17c6(0xb5)+_0x21e67f[_0x3c17c6(0xbc)]));break;default:_0x36f232[_0x3c17c6(0xad)](a162_0x3eb42a['dim'](_0x2b3c1a+'\x20'+_0x4a4078+_0x3c17c6(0xa3)+_0x21e67f['content']));break;}}return _0x36f232[_0x3c17c6(0xa6)]('\x0a');}function a162_0x4c0e(_0x2b2db3,_0x509cfc){_0x2b2db3=_0x2b2db3-0xa3;const _0x30ac2c=a162_0x30ac();let _0x4c0e3b=_0x30ac2c[_0x2b2db3];return _0x4c0e3b;}export function hasChanges(_0x3bed55){const _0x5cb884=a162_0x4c0e;return _0x3bed55[_0x5cb884(0xb0)](_0x413eca=>_0x413eca['type']!==_0x5cb884(0xaa));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x41729b,_0x2a23d2){const _0x21f455=a163_0x5a55,_0x352046=_0x41729b();while(!![]){try{const _0x104676=-parseInt(_0x21f455(0xeb))/0x1*(parseInt(_0x21f455(0xe1))/0x2)+-parseInt(_0x21f455(0xdc))/0x3*(-parseInt(_0x21f455(0xef))/0x4)+-parseInt(_0x21f455(0xea))/0x5*(-parseInt(_0x21f455(0xdb))/0x6)+-parseInt(_0x21f455(0xde))/0x7*(parseInt(_0x21f455(0xe2))/0x8)+parseInt(_0x21f455(0xe3))/0x9+parseInt(_0x21f455(0xe0))/0xa+parseInt(_0x21f455(0xdd))/0xb*(-parseInt(_0x21f455(0xda))/0xc);if(_0x104676===_0x2a23d2)break;else _0x352046['push'](_0x352046['shift']());}catch(_0x161b41){_0x352046['push'](_0x352046['shift']());}}}(a163_0x5a11,0xe85f5));function a163_0x5a11(){const _0x2ad7c1=['732rWvsxO','Should\x20be\x200600\x20or\x20more\x20restrictive.','643392mmbvjY','6zgsUkB','21933FOsApV','473viicEd','2105859zfgKlf','chmodSync','18091210OjpXHs','22846avARTz','24JUIdJJ','5906691fskgFX','\x20has\x20insecure\x20permissions\x20(',').\x20','dirname','toString','existsSync','mode','4638065aCFbLT','50vmVRse','writeFileSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','mkdirSync'];a163_0x5a11=function(){return _0x2ad7c1;};return a163_0x5a11();}import*as a163_0x43ee7a from'node:fs';import*as a163_0x2ab315 from'node:path';export function setSecureFilePermissions(_0x2b2fba){const _0x16a531=a163_0x5a55;try{a163_0x43ee7a[_0x16a531(0xdf)](_0x2b2fba,0x180);}catch{console['warn'](_0x16a531(0xed)+_0x2b2fba);}}export function setSecureDirectoryPermissions(_0x5d60aa){const _0x1f4ca6=a163_0x5a55;try{a163_0x43ee7a[_0x1f4ca6(0xdf)](_0x5d60aa,0x1c0);}catch{console['warn'](_0x1f4ca6(0xed)+_0x5d60aa);}}export function createSecureDirectory(_0x1a2912){const _0x35ba35=a163_0x5a55;!a163_0x43ee7a[_0x35ba35(0xe8)](_0x1a2912)&&(a163_0x43ee7a[_0x35ba35(0xee)](_0x1a2912,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x1a2912));}export function validateSecureFilePermissions(_0x3a7342){const _0x1a04ca=a163_0x5a55;try{const _0x44797a=a163_0x43ee7a['statSync'](_0x3a7342),_0x264209=_0x44797a[_0x1a04ca(0xe9)]&0x1ff,_0x4e84b1=(_0x264209&0x3f)!==0x0;if(_0x4e84b1)return console['warn']('Warning:\x20'+_0x3a7342+_0x1a04ca(0xe4)+_0x264209[_0x1a04ca(0xe7)](0x8)+_0x1a04ca(0xe5)+_0x1a04ca(0xd9)),![];return!![];}catch{return!![];}}function a163_0x5a55(_0x18d49b,_0x5bab49){_0x18d49b=_0x18d49b-0xd9;const _0x5a115f=a163_0x5a11();let _0x5a550c=_0x5a115f[_0x18d49b];return _0x5a550c;}export function writeSecureFile(_0x430f46,_0xfe1c2b){const _0x4202eb=a163_0x5a55,_0x2e899b=a163_0x2ab315[_0x4202eb(0xe6)](_0x430f46);createSecureDirectory(_0x2e899b),a163_0x43ee7a[_0x4202eb(0xec)](_0x430f46,_0xfe1c2b,{'mode':0x180}),setSecureFilePermissions(_0x430f46);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5883e4,_0x592647){const _0x3cfb8d=a164_0x46bf,_0x11d8dc=_0x5883e4();while(!![]){try{const _0x58dfa3=parseInt(_0x3cfb8d(0x126))/0x1+-parseInt(_0x3cfb8d(0x129))/0x2*(parseInt(_0x3cfb8d(0x137))/0x3)+-parseInt(_0x3cfb8d(0x12e))/0x4+-parseInt(_0x3cfb8d(0x12a))/0x5+parseInt(_0x3cfb8d(0x124))/0x6+parseInt(_0x3cfb8d(0x12b))/0x7+-parseInt(_0x3cfb8d(0x136))/0x8;if(_0x58dfa3===_0x592647)break;else _0x11d8dc['push'](_0x11d8dc['shift']());}catch(_0x26ab83){_0x11d8dc['push'](_0x11d8dc['shift']());}}}(a164_0x20d1,0x19d29));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x5e843a=a164_0x46bf;return process.env.TDX_CACHE_DIR||join(homedir(),_0x5e843a(0x12d),_0x5e843a(0x132));}const registry=new Map();function a164_0x46bf(_0x1ee614,_0xd3130e){_0x1ee614=_0x1ee614-0x124;const _0x20d197=a164_0x20d1();let _0x46bfab=_0x20d197[_0x1ee614];return _0x46bfab;}export function registerGlobalCacheKey(_0x1f7aaa,_0x4315be){const _0x2fcf4e=a164_0x46bf,_0x15472c=registry[_0x2fcf4e(0x127)](_0x1f7aaa);if(_0x15472c&&_0x15472c!==_0x4315be)throw new Error(_0x2fcf4e(0x12c)+_0x1f7aaa+_0x2fcf4e(0x135)+_0x15472c+_0x2fcf4e(0x130)+_0x4315be+'\x22');registry[_0x2fcf4e(0x131)](_0x1f7aaa,_0x4315be);}export function getGlobalCachePath(_0x440013){return join(getGlobalCacheDir(),_0x440013);}function ensureGlobalCacheDir(){const _0x42f115=getGlobalCacheDir();!existsSync(_0x42f115)&&mkdirSync(_0x42f115,{'recursive':!![]});}function a164_0x20d1(){const _0x2787df=['27312NwVsid','4386tRlYUb','760530rMVXVl','clear','143439erbJPo','get','utf-8','42IgwKPP','468885hGknfW','626717jEHmBa','Global\x20cache\x20key\x20\x22','.cache','504252TwOxxx','{profile}','\x22,\x20cannot\x20register\x20for\x20\x22','set','tdx','replace','default','\x22\x20already\x20registered\x20by\x20\x22'];a164_0x20d1=function(){return _0x2787df;};return a164_0x20d1();}function readCacheJson(_0x35ff97){const _0x3a5ef5=a164_0x46bf,_0x25ab7c=getGlobalCachePath(_0x35ff97);if(!existsSync(_0x25ab7c))return undefined;try{const _0x52d8c4=readFileSync(_0x25ab7c,_0x3a5ef5(0x128));return JSON['parse'](_0x52d8c4);}catch{return undefined;}}function writeCacheJson(_0x32edab,_0x5533e0){ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x32edab),JSON['stringify'](_0x5533e0,null,0x2),'utf-8');}function readCacheText(_0x237ee5){const _0x326f85=a164_0x46bf,_0x212a31=getGlobalCachePath(_0x237ee5);if(!existsSync(_0x212a31))return undefined;try{return readFileSync(_0x212a31,_0x326f85(0x128));}catch{return undefined;}}function writeCacheText(_0x5c74db,_0x4d59c9){const _0x1dd52d=a164_0x46bf;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x5c74db),_0x4d59c9,_0x1dd52d(0x128));}function clearCache(_0x17e346){const _0xe17ffe=getGlobalCachePath(_0x17e346);if(existsSync(_0xe17ffe))try{unlinkSync(_0xe17ffe);}catch{}}function cacheExists(_0x256f78){return existsSync(getGlobalCachePath(_0x256f78));}export function createGlobalCache(_0x41e25d,_0x341bc8){return registerGlobalCacheKey(_0x41e25d,_0x341bc8),{'read':()=>readCacheJson(_0x41e25d),'write':_0x507843=>writeCacheJson(_0x41e25d,_0x507843),'clear':()=>clearCache(_0x41e25d),'exists':()=>cacheExists(_0x41e25d),'path':()=>getGlobalCachePath(_0x41e25d)};}export function createGlobalTextCache(_0x3e1623,_0x546070){return registerGlobalCacheKey(_0x3e1623,_0x546070),{'read':()=>readCacheText(_0x3e1623)?.['trim']()||undefined,'write':_0x231eaa=>writeCacheText(_0x3e1623,_0x231eaa),'clear':()=>clearCache(_0x3e1623),'exists':()=>cacheExists(_0x3e1623),'path':()=>getGlobalCachePath(_0x3e1623)};}export function createProfileCache(_0xabc2db,_0x136d46){const _0x4711b4=_0x38c310=>{const _0x412485=a164_0x46bf,_0x28b91f=_0x38c310||_0x412485(0x134);return _0xabc2db[_0x412485(0x133)](_0x412485(0x12f),_0x28b91f);};return{'read':_0x22834a=>{const _0x88232f=_0x4711b4(_0x22834a);return registerGlobalCacheKey(_0x88232f,_0x136d46),readCacheJson(_0x88232f);},'write':(_0x6398d6,_0x8294bf)=>{const _0x208367=_0x4711b4(_0x6398d6);registerGlobalCacheKey(_0x208367,_0x136d46),writeCacheJson(_0x208367,_0x8294bf);},'clear':_0xec899c=>{const _0x105577=_0x4711b4(_0xec899c);clearCache(_0x105577);},'exists':_0x36d345=>{const _0x5824bf=_0x4711b4(_0x36d345);return cacheExists(_0x5824bf);},'path':_0x398c84=>{const _0x264100=_0x4711b4(_0x398c84);return getGlobalCachePath(_0x264100);}};}export function createOptionalProfileCache(_0x321d92,_0x36cfd6,_0x470b77={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x470b77,_0x5b152c=_0x1f17ac=>{return _0x1f17ac?''+_0x321d92+profileSeparator+_0x1f17ac+suffix:''+_0x321d92+suffix;};return{'read':_0x289501=>{const _0x268c2b=_0x5b152c(_0x289501);return registerGlobalCacheKey(_0x268c2b,_0x36cfd6),readCacheJson(_0x268c2b);},'write':(_0x561ca8,_0x5b895c)=>{const _0x59f1e4=_0x5b152c(_0x5b895c);registerGlobalCacheKey(_0x59f1e4,_0x36cfd6),writeCacheJson(_0x59f1e4,_0x561ca8);},'clear':_0x5ce362=>{const _0x3de8f2=_0x5b152c(_0x5ce362);clearCache(_0x3de8f2);},'exists':_0x2f2fb1=>{const _0x253497=_0x5b152c(_0x2f2fb1);return cacheExists(_0x253497);},'path':_0x123cb5=>{const _0x23cbd6=_0x5b152c(_0x123cb5);return getGlobalCachePath(_0x23cbd6);}};}export function clearGlobalRegistry(){const _0x7047a3=a164_0x46bf;registry[_0x7047a3(0x125)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x386549,_0x5f0ded){const _0x2d6f75=a165_0x5ae7,_0x5d880d=_0x386549();while(!![]){try{const _0x51779e=-parseInt(_0x2d6f75(0x108))/0x1*(parseInt(_0x2d6f75(0x10f))/0x2)+-parseInt(_0x2d6f75(0xf3))/0x3*(parseInt(_0x2d6f75(0xf8))/0x4)+parseInt(_0x2d6f75(0xf4))/0x5*(parseInt(_0x2d6f75(0x102))/0x6)+-parseInt(_0x2d6f75(0x106))/0x7*(-parseInt(_0x2d6f75(0xff))/0x8)+parseInt(_0x2d6f75(0xfa))/0x9*(parseInt(_0x2d6f75(0x107))/0xa)+parseInt(_0x2d6f75(0x10c))/0xb*(parseInt(_0x2d6f75(0x10a))/0xc)+-parseInt(_0x2d6f75(0xfe))/0xd*(parseInt(_0x2d6f75(0xf7))/0xe);if(_0x51779e===_0x5f0ded)break;else _0x5d880d['push'](_0x5d880d['shift']());}catch(_0x252647){_0x5d880d['push'](_0x5d880d['shift']());}}}(a165_0x3a46,0x80ecf));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a165_0x3a46(){const _0x2e60ec=['Permission\x20denied\x20reading\x20file:\x20','code','2184TUoWEY','10Uphvwo','15502zVJrUD','PERMISSION_DENIED','12VtNbUe','Failed\x20to\x20load\x20JSON:\x20','654698lNsmhS','File\x20not\x20found:\x20','utf-8','8StBVRS','181653ZFiwoS','5BDVrvz','INTERNAL','Invalid\x20JSON\x20string:\x20','57568yimzue','28PTWLQY','ENOENT','6337404VYJLEf','\x27:\x20','parse','INVALID_ARGUMENT','2522qfUwIL','15032qrKhof','message','EACCES','2770500uWNPVj','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.'];a165_0x3a46=function(){return _0x2e60ec;};return a165_0x3a46();}function a165_0x5ae7(_0x3fc745,_0x28c013){_0x3fc745=_0x3fc745-0xf3;const _0x3a4648=a165_0x3a46();let _0x5ae768=_0x3a4648[_0x3fc745];return _0x5ae768;}export async function loadJSON(_0x199be8,_0x5cb9f7){const _0x1e08fb=a165_0x5ae7;try{if(_0x5cb9f7){const _0x14f782=await readFile(_0x199be8,_0x1e08fb(0x10e));try{return JSON[_0x1e08fb(0xfc)](_0x14f782);}catch(_0x254db5){throw new SDKError(ErrorCode[_0x1e08fb(0xfd)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x199be8+_0x1e08fb(0xfb)+(_0x254db5 instanceof Error?_0x254db5[_0x1e08fb(0x100)]:String(_0x254db5)));}}else try{return JSON[_0x1e08fb(0xfc)](_0x199be8);}catch(_0x1263f9){throw new SDKError(ErrorCode[_0x1e08fb(0xfd)],_0x1e08fb(0xf6)+(_0x1263f9 instanceof Error?_0x1263f9[_0x1e08fb(0x100)]:String(_0x1263f9)));}}catch(_0x59192d){if(_0x59192d instanceof SDKError)throw _0x59192d;if(_0x59192d instanceof Error&&_0x1e08fb(0x105)in _0x59192d){const _0x2e3564=_0x59192d;if(_0x2e3564[_0x1e08fb(0x105)]===_0x1e08fb(0xf9))throw new SDKError(ErrorCode['NOT_FOUND'],_0x1e08fb(0x10d)+_0x199be8);else{if(_0x2e3564[_0x1e08fb(0x105)]===_0x1e08fb(0x101))throw new SDKError(ErrorCode[_0x1e08fb(0x109)],_0x1e08fb(0x104)+_0x199be8);}}throw new SDKError(ErrorCode[_0x1e08fb(0xf5)],_0x1e08fb(0x10b)+(_0x59192d instanceof Error?_0x59192d[_0x1e08fb(0x100)]:String(_0x59192d)));}}export async function loadJSONFromOptions(_0x431e2e,_0x598ffd){const _0x439e16=a165_0x5ae7;if(_0x431e2e&&_0x598ffd)throw new SDKError(ErrorCode[_0x439e16(0xfd)],_0x439e16(0x103));if(_0x431e2e)return await loadJSON(_0x431e2e,![]);if(_0x598ffd)return await loadJSON(_0x598ffd,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a166_0x54d8(){const _0xda2867=['28944900EUMowv','337jytcvW','2046595RGYpSq','1234179pYOrHA','clear','1254104YswEFx','3sKhOCq','4222XiTtTL','\x22\x20already\x20registered\x20by\x20\x22','.cache/tdx','10390443iEzJmR','8VlpcdS','8403714FNCdgx','Cache\x20key\x20\x22','utf-8','trim','parse','\x22,\x20cannot\x20register\x20for\x20\x22'];a166_0x54d8=function(){return _0xda2867;};return a166_0x54d8();}const a166_0x1e5de7=a166_0xf2f2;(function(_0x42d455,_0x4d00cd){const _0x5d778d=a166_0xf2f2,_0x33f001=_0x42d455();while(!![]){try{const _0x5b1c44=-parseInt(_0x5d778d(0x12c))/0x1*(-parseInt(_0x5d778d(0x120))/0x2)+-parseInt(_0x5d778d(0x11f))/0x3*(-parseInt(_0x5d778d(0x130))/0x4)+-parseInt(_0x5d778d(0x12d))/0x5+-parseInt(_0x5d778d(0x125))/0x6+-parseInt(_0x5d778d(0x123))/0x7+parseInt(_0x5d778d(0x124))/0x8*(parseInt(_0x5d778d(0x12e))/0x9)+parseInt(_0x5d778d(0x12b))/0xa;if(_0x5b1c44===_0x4d00cd)break;else _0x33f001['push'](_0x33f001['shift']());}catch(_0x16773e){_0x33f001['push'](_0x33f001['shift']());}}}(a166_0x54d8,0xba19b));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a166_0x1e5de7(0x122),registry=new Map();export function registerCacheKey(_0x331948,_0x5e3bee){const _0x367e41=a166_0x1e5de7,_0x3e1e71=registry['get'](_0x331948);if(_0x3e1e71&&_0x3e1e71!==_0x5e3bee)throw new Error(_0x367e41(0x126)+_0x331948+_0x367e41(0x121)+_0x3e1e71+_0x367e41(0x12a)+_0x5e3bee+'\x22');registry['set'](_0x331948,_0x5e3bee);}export function getCacheDir(){return join(process['cwd'](),LOCAL_CACHE_DIR);}export function getCachePath(_0x42958f){return join(getCacheDir(),_0x42958f);}function ensureCacheDir(){const _0xd33fb8=getCacheDir();!existsSync(_0xd33fb8)&&mkdirSync(_0xd33fb8,{'recursive':!![]});}function readCacheJson(_0x32c491){const _0x57f9d2=a166_0x1e5de7,_0x400683=getCachePath(_0x32c491);if(!existsSync(_0x400683))return undefined;try{const _0x4dc012=readFileSync(_0x400683,'utf-8');return JSON[_0x57f9d2(0x129)](_0x4dc012);}catch{return undefined;}}function writeCacheJson(_0x826027,_0x2f0aa6){const _0xe0ad0e=a166_0x1e5de7;ensureCacheDir(),writeFileSync(getCachePath(_0x826027),JSON['stringify'](_0x2f0aa6,null,0x2),_0xe0ad0e(0x127));}function readCacheText(_0x18ddd1){const _0x46cb16=a166_0x1e5de7,_0x44ae73=getCachePath(_0x18ddd1);if(!existsSync(_0x44ae73))return undefined;try{return readFileSync(_0x44ae73,_0x46cb16(0x127));}catch{return undefined;}}function a166_0xf2f2(_0x875854,_0x5ec950){_0x875854=_0x875854-0x11f;const _0x54d88b=a166_0x54d8();let _0xf2f295=_0x54d88b[_0x875854];return _0xf2f295;}function writeCacheText(_0x440bfb,_0x14df0d){ensureCacheDir(),writeFileSync(getCachePath(_0x440bfb),_0x14df0d,'utf-8');}function clearCache(_0x2c3a61){const _0x1239b3=getCachePath(_0x2c3a61);if(existsSync(_0x1239b3))try{unlinkSync(_0x1239b3);}catch{}}function cacheExists(_0x4d7538){return existsSync(getCachePath(_0x4d7538));}export function createCache(_0x1709c0,_0x431300){return registerCacheKey(_0x1709c0,_0x431300),{'read':()=>readCacheJson(_0x1709c0),'write':_0x3debce=>writeCacheJson(_0x1709c0,_0x3debce),'clear':()=>clearCache(_0x1709c0),'exists':()=>cacheExists(_0x1709c0),'path':()=>getCachePath(_0x1709c0)};}export function createTextCache(_0x5d7594,_0x178496){const _0x5ceecb=a166_0x1e5de7;return registerCacheKey(_0x5d7594,_0x178496),{'read':()=>readCacheText(_0x5d7594)?.[_0x5ceecb(0x128)]()||undefined,'write':_0x14fd3c=>writeCacheText(_0x5d7594,_0x14fd3c),'clear':()=>clearCache(_0x5d7594),'exists':()=>cacheExists(_0x5d7594),'path':()=>getCachePath(_0x5d7594)};}export function clearRegistry(){const _0x4eb6f1=a166_0x1e5de7;registry[_0x4eb6f1(0x12f)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a167_0x37bf(_0xf335d7,_0x3af942){_0xf335d7=_0xf335d7-0x177;const _0x1494dc=a167_0x1494();let _0x37bfc7=_0x1494dc[_0xf335d7];return _0x37bfc7;}const a167_0x345e9e=a167_0x37bf;(function(_0x1e063c,_0x5cccf2){const _0x382c56=a167_0x37bf,_0x1abd66=_0x1e063c();while(!![]){try{const _0x204b4a=parseInt(_0x382c56(0x189))/0x1+-parseInt(_0x382c56(0x184))/0x2+parseInt(_0x382c56(0x178))/0x3*(parseInt(_0x382c56(0x188))/0x4)+-parseInt(_0x382c56(0x180))/0x5+parseInt(_0x382c56(0x183))/0x6*(-parseInt(_0x382c56(0x18e))/0x7)+-parseInt(_0x382c56(0x179))/0x8*(parseInt(_0x382c56(0x177))/0x9)+parseInt(_0x382c56(0x17c))/0xa;if(_0x204b4a===_0x5cccf2)break;else _0x1abd66['push'](_0x1abd66['shift']());}catch(_0x1a16c1){_0x1abd66['push'](_0x1abd66['shift']());}}}(a167_0x1494,0xd074b));import a167_0x4fb06f from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';function a167_0x1494(){const _0x525fa4=['chalk','16ILlZAx','1479515gIJUrC','blue','cyan','DEBUG','colors','77iWZFRZ','default','gray',']\x20[','dim','level','9YxhgXx','901401lMKqPH','4312376lcDjRN','colorLevel','green','12806330jOQTOc','red','Chalk','yellow','4550645XXpZrZ','component','message','60918YTHGyP','3094644RPXIFg','timestamp','INFO'];a167_0x1494=function(){return _0x525fa4;};return a167_0x1494();}const chalkModule=a167_0x4fb06f,ChalkClass=chalkModule[a167_0x345e9e(0x17e)]||chalkModule[a167_0x345e9e(0x18f)]?.['Chalk'];export class DefaultLogFormatter{[a167_0x345e9e(0x18d)];[a167_0x345e9e(0x187)];constructor(_0x40d87c={}){const _0x4edd8c=a167_0x345e9e;this[_0x4edd8c(0x18d)]=_0x40d87c[_0x4edd8c(0x18d)]??![],this[_0x4edd8c(0x187)]=_0x40d87c[_0x4edd8c(0x18d)]&&ChalkClass?new ChalkClass({'level':0x3}):a167_0x4fb06f;}['format'](_0x3919d1){const _0x374afa=a167_0x345e9e,_0xee0578=formatTimestamp(_0x3919d1[_0x374afa(0x185)]),_0x3ec883=logLevelToString(_0x3919d1[_0x374afa(0x193)]);if(!this[_0x374afa(0x18d)])return _0xee0578+'\x20['+_0x3ec883+_0x374afa(0x191)+_0x3919d1[_0x374afa(0x181)]+']\x20'+_0x3919d1[_0x374afa(0x182)];const _0x13cb08=this[_0x374afa(0x187)][_0x374afa(0x192)](_0xee0578),_0x5cce8e=this[_0x374afa(0x17a)](_0x3ec883,_0x3919d1[_0x374afa(0x193)]),_0x1a3630=this['chalk'][_0x374afa(0x18a)]('['+_0x3919d1['component']+']');return _0x13cb08+'\x20'+_0x5cce8e+'\x20'+_0x1a3630+'\x20'+_0x3919d1[_0x374afa(0x182)];}[a167_0x345e9e(0x17a)](_0xc62b7e,_0x426052){const _0x3f5373=a167_0x345e9e;switch(_0x426052){case LogLevel['TRACE']:return this[_0x3f5373(0x187)][_0x3f5373(0x190)]('['+_0xc62b7e+']');case LogLevel[_0x3f5373(0x18c)]:return this[_0x3f5373(0x187)][_0x3f5373(0x17b)]('['+_0xc62b7e+']');case LogLevel[_0x3f5373(0x186)]:return this[_0x3f5373(0x187)][_0x3f5373(0x18b)]('['+_0xc62b7e+']');case LogLevel['WARN']:return this[_0x3f5373(0x187)][_0x3f5373(0x17f)]('['+_0xc62b7e+']');case LogLevel['ERROR']:return this['chalk'][_0x3f5373(0x17d)]('['+_0xc62b7e+']');default:return'['+_0xc62b7e+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a168_0x1fcd(_0x2057e6,_0x4c3b31){_0x2057e6=_0x2057e6-0x84;var _0x170cba=a168_0x170c();var _0x1fcdc1=_0x170cba[_0x2057e6];return _0x1fcdc1;}(function(_0x22766f,_0x3da907){var _0x45c649=a168_0x1fcd,_0x50a142=_0x22766f();while(!![]){try{var _0x5b3195=-parseInt(_0x45c649(0x8a))/0x1*(parseInt(_0x45c649(0x89))/0x2)+-parseInt(_0x45c649(0x85))/0x3+parseInt(_0x45c649(0x8d))/0x4+parseInt(_0x45c649(0x8b))/0x5+parseInt(_0x45c649(0x8c))/0x6*(-parseInt(_0x45c649(0x84))/0x7)+parseInt(_0x45c649(0x86))/0x8+-parseInt(_0x45c649(0x88))/0x9*(-parseInt(_0x45c649(0x87))/0xa);if(_0x5b3195===_0x3da907)break;else _0x50a142['push'](_0x50a142['shift']());}catch(_0x409858){_0x50a142['push'](_0x50a142['shift']());}}}(a168_0x170c,0xa6ef8));function a168_0x170c(){var _0x2ee44b=['390uDUzrm','387837WQutVU','266372UxWjsK','8MbDReq','4007065hlLabq','6euWvpY','3094580NXlfmR','6032782pJefjd','2541717ELZIsU','1621088xdpFRb'];a168_0x170c=function(){return _0x2ee44b;};return a168_0x170c();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a169_0x5dc91c=a169_0x18a5;(function(_0x30d540,_0x372be5){const _0x5515cb=a169_0x18a5,_0x3c0551=_0x30d540();while(!![]){try{const _0x24dffd=-parseInt(_0x5515cb(0x15a))/0x1*(-parseInt(_0x5515cb(0x14d))/0x2)+parseInt(_0x5515cb(0x14c))/0x3+parseInt(_0x5515cb(0x150))/0x4*(-parseInt(_0x5515cb(0x157))/0x5)+-parseInt(_0x5515cb(0x14e))/0x6+parseInt(_0x5515cb(0x151))/0x7*(-parseInt(_0x5515cb(0x156))/0x8)+-parseInt(_0x5515cb(0x14b))/0x9*(parseInt(_0x5515cb(0x14f))/0xa)+parseInt(_0x5515cb(0x152))/0xb;if(_0x24dffd===_0x372be5)break;else _0x3c0551['push'](_0x3c0551['shift']());}catch(_0x255d2a){_0x3c0551['push'](_0x3c0551['shift']());}}}(a169_0x1e6c,0x75387));import{LogLevel as a169_0x162466}from'../types.js';function a169_0x1e6c(){const _0x4e39f5=['log','20322edqLvi','1209912sWKkvq','2TbFsgX','2467818rwxQrQ','2270cSjtrd','196xpcfrE','92057dQQBgN','12428768bPjKHf','WARN','useStderr','level','272vhDVLu','2725LBcTsX','format','minLevel','344651UphgXr','formatter'];a169_0x1e6c=function(){return _0x4e39f5;};return a169_0x1e6c();}function a169_0x18a5(_0x2ff08b,_0x125cd9){_0x2ff08b=_0x2ff08b-0x14a;const _0x1e6cdc=a169_0x1e6c();let _0x18a504=_0x1e6cdc[_0x2ff08b];return _0x18a504;}import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a169_0x5dc91c(0x154)];['formatter'];constructor(_0x3d3b19={}){const _0x3ffedf=a169_0x5dc91c;this[_0x3ffedf(0x159)]=_0x3d3b19[_0x3ffedf(0x159)]??a169_0x162466[_0x3ffedf(0x153)],this[_0x3ffedf(0x154)]=_0x3d3b19[_0x3ffedf(0x154)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x3d3b19['colors']??!![]});}['handle'](_0x2d00a2){const _0x77ef6=a169_0x5dc91c;if(_0x2d00a2[_0x77ef6(0x155)]<this[_0x77ef6(0x159)])return;const _0x40934a=this[_0x77ef6(0x15b)][_0x77ef6(0x158)](_0x2d00a2);this[_0x77ef6(0x154)]&&_0x2d00a2[_0x77ef6(0x155)]>=a169_0x162466[_0x77ef6(0x153)]?console['error'](_0x40934a):console[_0x77ef6(0x14a)](_0x40934a);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a170_0x4472bc=a170_0x5340;function a170_0x4f10(){const _0x1d9966=['logStream','includes','.gz','init','filePath','rotateOldLogs','logBaseName','2880jJuGYx','tdx.log','logDir','10797RsIqBw','9095OjEDLZ','448263pZlOFb','1687CieSwM','mtime','filter','logs','replace','Warning:\x20Error\x20writing\x20to\x20','write','test','.log','format','logFileName','rotate','415971ZQQyKB','close','error','end','40866HvhpoD','Warning:\x20Failed\x20to\x20compress\x20','10172296PKvLZC','split','logPath','toISOString','-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$','22JKfSFJ','message','7160740ziTkAR'];a170_0x4f10=function(){return _0x1d9966;};return a170_0x4f10();}(function(_0x1363c0,_0xc1b89c){const _0x4a0503=a170_0x5340,_0x338555=_0x1363c0();while(!![]){try{const _0x46a185=-parseInt(_0x4a0503(0x10c))/0x1*(-parseInt(_0x4a0503(0xff))/0x2)+-parseInt(_0x4a0503(0x10e))/0x3+parseInt(_0x4a0503(0x109))/0x4*(-parseInt(_0x4a0503(0x10d))/0x5)+-parseInt(_0x4a0503(0x11f))/0x6*(-parseInt(_0x4a0503(0x10f))/0x7)+parseInt(_0x4a0503(0x121))/0x8+parseInt(_0x4a0503(0x11b))/0x9+-parseInt(_0x4a0503(0x101))/0xa;if(_0x46a185===_0xc1b89c)break;else _0x338555['push'](_0x338555['shift']());}catch(_0x254cab){_0x338555['push'](_0x338555['shift']());}}}(a170_0x4f10,0xdc68f));import{createWriteStream,createReadStream}from'fs';import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';function a170_0x5340(_0x26f48a,_0xe684bf){_0x26f48a=_0x26f48a-0xff;const _0x4f105a=a170_0x4f10();let _0x5340df=_0x4f105a[_0x26f48a];return _0x5340df;}import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a170_0x4472bc(0x123)];[a170_0x4472bc(0x10b)];[a170_0x4472bc(0x119)];[a170_0x4472bc(0x108)];['logStream']=null;['rotate'];constructor(_0x445ab2={}){const _0x5785ef=a170_0x4472bc;this[_0x5785ef(0x123)]=_0x445ab2[_0x5785ef(0x106)]??join(getGlobalCacheDir(),_0x5785ef(0x112),_0x5785ef(0x10a)),this[_0x5785ef(0x10b)]=dirname(this[_0x5785ef(0x123)]),this['logFileName']=basename(this[_0x5785ef(0x123)]),this[_0x5785ef(0x108)]=this[_0x5785ef(0x119)][_0x5785ef(0x113)](/\.log$/,''),this[_0x5785ef(0x11a)]=_0x445ab2[_0x5785ef(0x11a)]??!![];}async[a170_0x4472bc(0x105)](){const _0x578533=a170_0x4472bc;try{await mkdir(this['logDir'],{'recursive':!![]}),this[_0x578533(0x11a)]&&await this[_0x578533(0x107)](),this[_0x578533(0x102)]=createWriteStream(this['logPath'],{'flags':'a'}),this[_0x578533(0x102)]['on'](_0x578533(0x11d),_0x3c390e=>{const _0xa8794c=_0x578533;console['error'](_0xa8794c(0x114)+this[_0xa8794c(0x119)]+':',_0x3c390e[_0xa8794c(0x100)]);});}catch(_0x58c369){console[_0x578533(0x11d)]('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x58c369);}}['handle'](_0x47666e){const _0x2048db=a170_0x4472bc;if(!this[_0x2048db(0x102)])return;const _0x3c2090=Logger[_0x2048db(0x118)](_0x47666e);this[_0x2048db(0x102)][_0x2048db(0x115)](_0x3c2090+'\x0a');}async[a170_0x4472bc(0x11c)](){return new Promise(_0x5a80ce=>{const _0x3ee911=a170_0x5340;this[_0x3ee911(0x102)]?this['logStream'][_0x3ee911(0x11e)](()=>{const _0x521163=_0x3ee911;this[_0x521163(0x102)]=null,_0x5a80ce();}):_0x5a80ce();});}['getLogPath'](){const _0x30438e=a170_0x4472bc;return this[_0x30438e(0x123)];}async[a170_0x4472bc(0x107)](){const _0x20fa91=a170_0x4472bc;try{const _0x5cce7c=await readdir(this['logDir']),_0x1a1eb0=new Date()[_0x20fa91(0x124)]()[_0x20fa91(0x122)]('T')[0x0];if(_0x5cce7c[_0x20fa91(0x103)](this[_0x20fa91(0x119)])){const _0x24e04d=join(this[_0x20fa91(0x10b)],this[_0x20fa91(0x119)]),_0x1a6604=await stat(_0x24e04d),_0x57d10b=new Date(_0x1a6604[_0x20fa91(0x110)])[_0x20fa91(0x124)]()[_0x20fa91(0x122)]('T')[0x0];if(_0x57d10b<_0x1a1eb0){const _0x31f323=join(this['logDir'],this[_0x20fa91(0x108)]+'-'+_0x57d10b+_0x20fa91(0x117));await rename(_0x24e04d,_0x31f323);}}const _0xa25523=await readdir(this['logDir']),_0x2ee889=this[_0x20fa91(0x108)][_0x20fa91(0x113)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x22eb2d=new RegExp('^'+_0x2ee889+_0x20fa91(0x125)),_0x5c8622=_0xa25523[_0x20fa91(0x111)](_0x46ddc6=>_0x22eb2d[_0x20fa91(0x116)](_0x46ddc6));for(const _0x37c742 of _0x5c8622){const _0x3bf7cd=join(this[_0x20fa91(0x10b)],_0x37c742),_0x2fd0ce=join(this[_0x20fa91(0x10b)],_0x37c742+_0x20fa91(0x104));try{await pipeline(createReadStream(_0x3bf7cd),createGzip(),createWriteStream(_0x2fd0ce)),await unlink(_0x3bf7cd);}catch(_0x1c586d){console[_0x20fa91(0x11d)](_0x20fa91(0x120)+_0x37c742+':',_0x1c586d);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a171_0x16fb(_0x3474d8,_0x442c69){_0x3474d8=_0x3474d8-0x191;var _0x280f08=a171_0x280f();var _0x16fbc0=_0x280f08[_0x3474d8];return _0x16fbc0;}(function(_0x44b8e6,_0x65cb2e){var _0x57936a=a171_0x16fb,_0x239455=_0x44b8e6();while(!![]){try{var _0x2e5d45=parseInt(_0x57936a(0x195))/0x1+-parseInt(_0x57936a(0x191))/0x2+parseInt(_0x57936a(0x194))/0x3+parseInt(_0x57936a(0x192))/0x4+parseInt(_0x57936a(0x193))/0x5+-parseInt(_0x57936a(0x197))/0x6*(-parseInt(_0x57936a(0x196))/0x7)+-parseInt(_0x57936a(0x198))/0x8;if(_0x2e5d45===_0x65cb2e)break;else _0x239455['push'](_0x239455['shift']());}catch(_0x273e42){_0x239455['push'](_0x239455['shift']());}}}(a171_0x280f,0x4066f));export{FileHandler}from'./file-handler.js';function a171_0x280f(){var _0x35a730=['3287704EtnMor','864164ucDJNQ','1275076GbgljQ','1787990FfpHna','887535ltrNCL','19881DbsvZT','7pYeJqI','688458rdyKWM'];a171_0x280f=function(){return _0x35a730;};return a171_0x280f();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a172_0x222f(){var _0x2a8dba=['972136maYsCt','handle','1822828XtCdmC','295272WWzKMr','7MTxQCa','2142060Xumioi','461166gtkZtB','237577bqVOyp','1191396kVmGEj'];a172_0x222f=function(){return _0x2a8dba;};return a172_0x222f();}function a172_0x578f(_0x110d68,_0x428b90){_0x110d68=_0x110d68-0xe7;var _0x222f7b=a172_0x222f();var _0x578ff6=_0x222f7b[_0x110d68];return _0x578ff6;}var a172_0x123017=a172_0x578f;(function(_0x5172fd,_0x5027f3){var _0x4b7787=a172_0x578f,_0x4b8ca1=_0x5172fd();while(!![]){try{var _0x1a4292=parseInt(_0x4b7787(0xe7))/0x1+parseInt(_0x4b7787(0xe9))/0x2+parseInt(_0x4b7787(0xe8))/0x3+-parseInt(_0x4b7787(0xeb))/0x4+-parseInt(_0x4b7787(0xee))/0x5+parseInt(_0x4b7787(0xef))/0x6*(parseInt(_0x4b7787(0xed))/0x7)+-parseInt(_0x4b7787(0xec))/0x8;if(_0x1a4292===_0x5027f3)break;else _0x4b8ca1['push'](_0x4b8ca1['shift']());}catch(_0x509f25){_0x4b8ca1['push'](_0x4b8ca1['shift']());}}}(a172_0x222f,0x43882));export class NullHandler{[a172_0x123017(0xea)](_0x2177d1){}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x47d5d7,_0x1c8275){var _0x3ae759=a173_0x2405,_0x56dc5b=_0x47d5d7();while(!![]){try{var _0x246b17=-parseInt(_0x3ae759(0x1b5))/0x1+-parseInt(_0x3ae759(0x1bb))/0x2*(parseInt(_0x3ae759(0x1b9))/0x3)+-parseInt(_0x3ae759(0x1b8))/0x4+-parseInt(_0x3ae759(0x1b7))/0x5*(-parseInt(_0x3ae759(0x1b6))/0x6)+parseInt(_0x3ae759(0x1bd))/0x7*(-parseInt(_0x3ae759(0x1ba))/0x8)+parseInt(_0x3ae759(0x1be))/0x9*(-parseInt(_0x3ae759(0x1bc))/0xa)+parseInt(_0x3ae759(0x1bf))/0xb;if(_0x246b17===_0x1c8275)break;else _0x56dc5b['push'](_0x56dc5b['shift']());}catch(_0x50d686){_0x56dc5b['push'](_0x56dc5b['shift']());}}}(a173_0x5328,0x8c4bf));function a173_0x2405(_0x231eb4,_0x386a41){_0x231eb4=_0x231eb4-0x1b5;var _0x5328ca=a173_0x5328();var _0x240504=_0x5328ca[_0x231eb4];return _0x240504;}export{Logger}from'./logger.js';export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';function a173_0x5328(){var _0x47c92d=['71743OoqWcR','6hoSgdk','2638670yKSYQr','3663900zdXMNd','3IfQXOy','8WmKnCU','2016374COCRQZ','210SZzang','3826627EPAPJE','446751aOSCET','39950966AEjrit'];a173_0x5328=function(){return _0x47c92d;};return a173_0x5328();}export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|