@treasuredata/tdx 0.25.0 → 0.25.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/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/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/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-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
|
-
const a149_0x5982fe=a149_0x1c9f;(function(_0x5e4cd8,_0x68c40e){const _0x47bd0a=a149_0x1c9f,_0x2853f6=_0x5e4cd8();while(!![]){try{const _0x3930b9=-parseInt(_0x47bd0a(0x8d))/0x1+parseInt(_0x47bd0a(0xdb))/0x2*(parseInt(_0x47bd0a(0xe7))/0x3)+-parseInt(_0x47bd0a(0xca))/0x4*(parseInt(_0x47bd0a(0x91))/0x5)+-parseInt(_0x47bd0a(0x89))/0x6*(-parseInt(_0x47bd0a(0xab))/0x7)+-parseInt(_0x47bd0a(0xe4))/0x8+-parseInt(_0x47bd0a(0xa0))/0x9+parseInt(_0x47bd0a(0xd7))/0xa;if(_0x3930b9===_0x68c40e)break;else _0x2853f6['push'](_0x2853f6['shift']());}catch(_0x1df48c){_0x2853f6['push'](_0x2853f6['shift']());}}}(a149_0x3302,0xaf8ba));export const fixtures={'database':{'basic':{'name':a149_0x5982fe(0x90),'count':0x5,'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-01T00:00:00Z','permission':a149_0x5982fe(0xc4)},'withTables':{'name':a149_0x5982fe(0xb4),'count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':a149_0x5982fe(0xd0)}},'table':{'basic':{'id':0x3039,'name':'users','type':a149_0x5982fe(0xa7),'schema':JSON[a149_0x5982fe(0xd8)]([['id',a149_0x5982fe(0x8b)],[a149_0x5982fe(0xbc),a149_0x5982fe(0xc8)],[a149_0x5982fe(0xb1),a149_0x5982fe(0x8b)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0xc7)},'events':{'id':0x303a,'name':a149_0x5982fe(0xb8),'type':a149_0x5982fe(0xa7),'schema':JSON[a149_0x5982fe(0xd8)]([[a149_0x5982fe(0xb9),a149_0x5982fe(0x8b)],[a149_0x5982fe(0xbc),a149_0x5982fe(0xc8)],['user_id','string'],[a149_0x5982fe(0x8e),a149_0x5982fe(0x8b)],[a149_0x5982fe(0xcd),a149_0x5982fe(0x9f)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x82)}},'parentSegment':{'basic':{'id':a149_0x5982fe(0x80),'name':'Test\x20Parent\x20Segment','description':a149_0x5982fe(0xe5),'status':a149_0x5982fe(0xa3),'master_table':{'database':a149_0x5982fe(0xd5),'table':a149_0x5982fe(0xb0)},'attributes':[{'name':a149_0x5982fe(0x9c),'type':a149_0x5982fe(0x8b),'key':!![]},{'name':a149_0x5982fe(0x84),'type':a149_0x5982fe(0x8b)},{'name':a149_0x5982fe(0xe6),'type':a149_0x5982fe(0xc0)}],'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a149_0x5982fe(0x8c),'name':a149_0x5982fe(0xb5),'description':a149_0x5982fe(0x98),'status':a149_0x5982fe(0xa3),'master_table':{'database':a149_0x5982fe(0xd5),'table':'customers'},'behaviors':[{'name':a149_0x5982fe(0xae),'table':{'database':a149_0x5982fe(0xba),'table':a149_0x5982fe(0xae)},'join_key':a149_0x5982fe(0x9c)},{'name':a149_0x5982fe(0xb3),'table':{'database':a149_0x5982fe(0xba),'table':'pageviews'},'join_key':a149_0x5982fe(0x9c)}],'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-15T00:00:00Z'}},'segment':{'basic':{'id':a149_0x5982fe(0x7e),'name':'Active\x20Users','description':a149_0x5982fe(0x9a),'parent_segment_id':a149_0x5982fe(0x80),'status':a149_0x5982fe(0xa3),'rules':[{'type':a149_0x5982fe(0x92),'field':'last_login','operator':a149_0x5982fe(0xaf),'value':a149_0x5982fe(0xc6)}],'count':0x1388,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b)},'withMultipleRules':{'id':a149_0x5982fe(0xcf),'name':a149_0x5982fe(0xdd),'description':a149_0x5982fe(0x95),'parent_segment_id':'ps-123456','status':a149_0x5982fe(0xa3),'rules':[{'type':a149_0x5982fe(0x92),'field':'last_login','operator':a149_0x5982fe(0xaf),'value':a149_0x5982fe(0xc6)},{'type':a149_0x5982fe(0x92),'field':a149_0x5982fe(0xa2),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b)}},'journey':{'basic':{'id':a149_0x5982fe(0xe0),'name':a149_0x5982fe(0xcc),'description':a149_0x5982fe(0xb7),'status':a149_0x5982fe(0xc9),'version':0x1,'steps':[{'id':a149_0x5982fe(0xa5),'type':a149_0x5982fe(0xe1),'duration':'1d'},{'id':'step-2','type':a149_0x5982fe(0xa9),'activation_id':'act-123'}],'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b)},'withDecision':{'id':a149_0x5982fe(0xc1),'name':'Purchase\x20Reminder','description':'Journey\x20with\x20decision\x20point','status':'active','version':0x2,'steps':[{'id':a149_0x5982fe(0xa5),'type':'decision_point','segment_id':a149_0x5982fe(0x7e),'yes_path':a149_0x5982fe(0xb6),'no_path':a149_0x5982fe(0xdf)},{'id':a149_0x5982fe(0xb6),'type':a149_0x5982fe(0xa9),'activation_id':a149_0x5982fe(0xc3)},{'id':a149_0x5982fe(0xdf),'type':a149_0x5982fe(0xde)}],'created_at':a149_0x5982fe(0xc7),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':a149_0x5982fe(0x97)},{'name':a149_0x5982fe(0xb1),'type':'varchar'},{'name':a149_0x5982fe(0xe3),'type':a149_0x5982fe(0x83)}],'data':[[a149_0x5982fe(0x96),a149_0x5982fe(0x87),0x64],[a149_0x5982fe(0x88),a149_0x5982fe(0x94),0xc8],[a149_0x5982fe(0x7f),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a149_0x5982fe(0xb1),'type':a149_0x5982fe(0x97)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a149_0x5982fe(0xaa),'created_at':a149_0x5982fe(0xc7),'updated_at':a149_0x5982fe(0x9b),'administrator':![]},'admin':{'id':0x1,'name':a149_0x5982fe(0xc5),'email':a149_0x5982fe(0xac),'created_at':'2023-01-01T00:00:00Z','updated_at':a149_0x5982fe(0x9b),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a149_0x5982fe(0xa1),'database':'test_db','status':a149_0x5982fe(0xb2),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':'2024-01-15T10:00:00Z','end_at':'2024-01-15T10:00:05Z','duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x5982fe(0xa1),'database':a149_0x5982fe(0x90),'status':'running','query':a149_0x5982fe(0xdc),'start_at':a149_0x5982fe(0xd6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a149_0x5982fe(0x90),'status':a149_0x5982fe(0x85),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a149_0x5982fe(0x86),'end_at':a149_0x5982fe(0xd4),'duration':0x1,'result_size':null,'error':a149_0x5982fe(0xc2)}},'workflow':{'basic':{'id':a149_0x5982fe(0xbf),'name':a149_0x5982fe(0xbd),'project':a149_0x5982fe(0x81),'revision':a149_0x5982fe(0xa4),'timezone':a149_0x5982fe(0x93),'schedule':{'cron':a149_0x5982fe(0x9e)}},'withSessions':{'id':'wf-67890','name':a149_0x5982fe(0xbe),'project':'data_sync','revision':a149_0x5982fe(0xd9),'timezone':'America/Los_Angeles','schedule':{'cron':a149_0x5982fe(0x9d)},'last_session':{'id':a149_0x5982fe(0xbb),'status':a149_0x5982fe(0xb2),'started_at':'2024-01-15T09:00:00Z','finished_at':a149_0x5982fe(0xa8)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x5982fe(0xd2),'message':a149_0x5982fe(0xd2),'severity':a149_0x5982fe(0x85),'status_code':0x191}},'notFound':{'errors':{'error':a149_0x5982fe(0xd3),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a149_0x5982fe(0x85),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a149_0x5982fe(0xda),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':'/v3/database/list'}}};function a149_0x1c9f(_0x15067d,_0x441f1b){_0x15067d=_0x15067d-0x7e;const _0x3302ff=a149_0x3302();let _0x1c9f80=_0x3302ff[_0x15067d];return _0x1c9f80;}export function createDatabase(_0x24eac6){const _0x3c3b25=a149_0x5982fe;return{...fixtures[_0x3c3b25(0xd1)][_0x3c3b25(0xce)],..._0x24eac6};}export function createTable(_0x53777e){const _0x1cecb4=a149_0x5982fe;return{...fixtures[_0x1cecb4(0x99)][_0x1cecb4(0xce)],..._0x53777e};}export function createParentSegment(_0x2859bf){const _0xd6c3e8=a149_0x5982fe;return{...fixtures[_0xd6c3e8(0x8f)][_0xd6c3e8(0xce)],..._0x2859bf};}export function createSegment(_0x3700e4){const _0x10b77e=a149_0x5982fe;return{...fixtures[_0x10b77e(0x8a)][_0x10b77e(0xce)],..._0x3700e4};}function a149_0x3302(){const _0x1c0544=['abc123','step-1','user','log','2024-01-15T09:05:00Z','activation','test@example.com','7vgtUHM','admin@example.com','queryResult','purchases','TimeWithinPast','unified_customers','name','success','page_views','production_db','Customers\x20with\x20Behaviors','step-2','Onboarding\x20journey\x20for\x20new\x20users','events','event_id','events_db','sess-111','time','daily_etl','hourly_sync','wf-12345','timestamp','j-def456','Table\x20does\x20not\x20exist:\x20nonexistent_table','act-email','administrator','Admin\x20User','30d','2024-01-01T00:00:00Z','long','draft','2868004TUbgtK','workflow','Welcome\x20Journey','properties','basic','cs-111222','full_access','database','Invalid\x20API\x20key','Resource\x20not\x20found','2024-01-15T10:10:01Z','cdp_db','2024-01-15T10:05:00Z','32767110beeLMd','stringify','def456','Forbidden','435964NlImyh','SELECT\x20COUNT(*)\x20FROM\x20events','High\x20Value\x20Active\x20Users','end','step-3','j-abc123','wait','journey','count','3321088DmpSpz','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','created_at','3sKrTsv','job','cs-456789','user-3','ps-123456','data_pipeline','2024-01-15T12:00:00Z','bigint','email','error','2024-01-15T10:10:00Z','Alice','user-2','6521532abrune','segment','string','ps-789012','628405fprvjy','event_type','parentSegment','test_db','10hfOwJW','attribute','UTC','Bob','Active\x20users\x20with\x20high\x20lifetime\x20value','user-1','varchar','Parent\x20segment\x20with\x20behavioral\x20data','table','Users\x20active\x20in\x20the\x20last\x2030\x20days','2024-01-15T00:00:00Z','customer_id','0\x20*\x20*\x20*\x20*','0\x200\x20*\x20*\x20*','map<string,string>','12465342RlxiDO','presto','lifetime_value','active'];a149_0x3302=function(){return _0x1c0544;};return a149_0x3302();}export function createJourney(_0x380d03){const _0x855da2=a149_0x5982fe;return{...fixtures[_0x855da2(0xe2)][_0x855da2(0xce)],..._0x380d03};}export function createQueryResult(_0x3378bb){const _0x1f9358=a149_0x5982fe;return{...fixtures[_0x1f9358(0xad)][_0x1f9358(0xce)],..._0x3378bb};}export function createUser(_0x387ea2){const _0x11e989=a149_0x5982fe;return{...fixtures[_0x11e989(0xa6)]['basic'],..._0x387ea2};}export function createJob(_0x2df5a3){const _0x2a320e=a149_0x5982fe;return{...fixtures[_0x2a320e(0xe8)]['completed'],..._0x2df5a3};}export function createWorkflow(_0x586e79){const _0x3d8737=a149_0x5982fe;return{...fixtures[_0x3d8737(0xcb)][_0x3d8737(0xce)],..._0x586e79};}
|
|
1
|
+
const a149_0x409fdc=a149_0x1881;(function(_0x50cfbc,_0x4af1ee){const _0x4bb59e=a149_0x1881,_0x457560=_0x50cfbc();while(!![]){try{const _0x41797a=parseInt(_0x4bb59e(0xb4))/0x1*(-parseInt(_0x4bb59e(0x99))/0x2)+-parseInt(_0x4bb59e(0xe6))/0x3*(parseInt(_0x4bb59e(0xe8))/0x4)+-parseInt(_0x4bb59e(0x98))/0x5*(parseInt(_0x4bb59e(0x8b))/0x6)+parseInt(_0x4bb59e(0x89))/0x7*(parseInt(_0x4bb59e(0x7e))/0x8)+parseInt(_0x4bb59e(0xb6))/0x9+parseInt(_0x4bb59e(0x75))/0xa*(-parseInt(_0x4bb59e(0x9b))/0xb)+parseInt(_0x4bb59e(0x80))/0xc;if(_0x41797a===_0x4af1ee)break;else _0x457560['push'](_0x457560['shift']());}catch(_0x323672){_0x457560['push'](_0x457560['shift']());}}}(a149_0x4e5d,0xea377));function a149_0x4e5d(){const _0x340a85=['decision_point','running','6926965dKazTk','50vdUixu','time','22cinnwD','error','customers','sess-111','total','log','2023-01-01T00:00:00Z','user_id','act-email','step-3','activation','attribute','bigint','Forbidden','2024-01-15T09:05:00Z','job','cs-456789','events_db','step-1','properties','j-def456','customer_id','queryResult','2023-06-15T10:30:00Z','completed','76246asFzdv','varchar','10563507uANDva','def456','page_views','string','SELECT\x20*\x20FROM\x20nonexistent_table','name','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','wf-12345','pageviews','Welcome\x20Journey','timestamp','production_db','presto','parentSegment','Journey\x20with\x20decision\x20point','Table\x20does\x20not\x20exist:\x20nonexistent_table','Admin\x20User','Parent\x20segment\x20with\x20behavioral\x20data','Purchase\x20Reminder','Users\x20active\x20in\x20the\x20last\x2030\x20days','stringify','data_pipeline','ps-789012','2024-01-15T00:00:00Z','0\x200\x20*\x20*\x20*','2024-01-15T10:00:05Z','data_sync','events','admin@example.com','SELECT\x20COUNT(*)\x20FROM\x20events','Charlie','email','Test\x20Parent\x20Segment','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','test_db','2024-01-15T12:00:00Z','success','table','journey','Alice','last_login','2024-01-15T10:10:00Z','segment','administrator','purchases','/v3/database/list','full_access','America/Los_Angeles','9XoRkZA','Active\x20users\x20with\x20high\x20lifetime\x20value','2247556OoSOzb','test@example.com','Invalid\x20API\x20key','created_at','9526110ezuIOU','https://api.treasuredata.com/errors/forbidden','Greater','Customers\x20with\x20Behaviors','basic','Bob','High\x20Value\x20Active\x20Users','unified_customers','30d','10553584pXTQIG','Onboarding\x20journey\x20for\x20new\x20users','64186344skBlyq','long','UTC','TimeWithinPast','The\x20requested\x20resource\x20does\x20not\x20exist','count','database','cdp_db','step-2','7XtLbzY','user','6rXZTRg','draft','Resource\x20not\x20found','abc123','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','2024-01-01T00:00:00Z','user-3','wf-67890','ps-123456','active','event_id'];a149_0x4e5d=function(){return _0x340a85;};return a149_0x4e5d();}export const fixtures={'database':{'basic':{'name':a149_0x409fdc(0xd8),'count':0x5,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0x90),'permission':a149_0x409fdc(0xe1)},'withTables':{'name':a149_0x409fdc(0xc1),'count':0x64,'created_at':a149_0x409fdc(0xb2),'updated_at':'2024-01-15T08:00:00Z','permission':a149_0x409fdc(0xe4)}},'table':{'basic':{'id':0x3039,'name':'users','type':a149_0x409fdc(0xa0),'schema':JSON[a149_0x409fdc(0xca)]([['id','string'],[a149_0x409fdc(0x9a),a149_0x409fdc(0x81)],[a149_0x409fdc(0xbb),a149_0x409fdc(0xb9)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x409fdc(0x90)},'events':{'id':0x303a,'name':a149_0x409fdc(0xd1),'type':a149_0x409fdc(0xa0),'schema':JSON[a149_0x409fdc(0xca)]([[a149_0x409fdc(0x95),a149_0x409fdc(0xb9)],[a149_0x409fdc(0x9a),a149_0x409fdc(0x81)],[a149_0x409fdc(0xa2),'string'],['event_type',a149_0x409fdc(0xb9)],[a149_0x409fdc(0xae),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xd9)}},'parentSegment':{'basic':{'id':a149_0x409fdc(0x93),'name':a149_0x409fdc(0xd6),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a149_0x409fdc(0x94),'master_table':{'database':'cdp_db','table':a149_0x409fdc(0x7c)},'attributes':[{'name':a149_0x409fdc(0xb0),'type':a149_0x409fdc(0xb9),'key':!![]},{'name':a149_0x409fdc(0xd5),'type':'string'},{'name':a149_0x409fdc(0x74),'type':a149_0x409fdc(0xc0)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a149_0x409fdc(0xcd)},'withBehaviors':{'id':a149_0x409fdc(0xcc),'name':a149_0x409fdc(0x78),'description':a149_0x409fdc(0xc7),'status':a149_0x409fdc(0x94),'master_table':{'database':a149_0x409fdc(0x87),'table':a149_0x409fdc(0x9d)},'behaviors':[{'name':a149_0x409fdc(0xe2),'table':{'database':a149_0x409fdc(0xac),'table':a149_0x409fdc(0xe2)},'join_key':a149_0x409fdc(0xb0)},{'name':a149_0x409fdc(0xb8),'table':{'database':a149_0x409fdc(0xac),'table':a149_0x409fdc(0xbe)},'join_key':a149_0x409fdc(0xb0)}],'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)}},'segment':{'basic':{'id':a149_0x409fdc(0xab),'name':'Active\x20Users','description':a149_0x409fdc(0xc9),'parent_segment_id':a149_0x409fdc(0x93),'status':a149_0x409fdc(0x94),'rules':[{'type':a149_0x409fdc(0xa6),'field':'last_login','operator':a149_0x409fdc(0x83),'value':a149_0x409fdc(0x7d)}],'count':0x1388,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)},'withMultipleRules':{'id':'cs-111222','name':a149_0x409fdc(0x7b),'description':a149_0x409fdc(0xe7),'parent_segment_id':'ps-123456','status':a149_0x409fdc(0x94),'rules':[{'type':a149_0x409fdc(0xa6),'field':a149_0x409fdc(0xde),'operator':a149_0x409fdc(0x83),'value':a149_0x409fdc(0x7d)},{'type':a149_0x409fdc(0xa6),'field':'lifetime_value','operator':a149_0x409fdc(0x77),'value':0x3e8}],'count':0x5dc,'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)}},'journey':{'basic':{'id':'j-abc123','name':a149_0x409fdc(0xbf),'description':a149_0x409fdc(0x7f),'status':a149_0x409fdc(0x8c),'version':0x1,'steps':[{'id':a149_0x409fdc(0xad),'type':'wait','duration':'1d'},{'id':a149_0x409fdc(0x88),'type':'activation','activation_id':'act-123'}],'created_at':a149_0x409fdc(0x90),'updated_at':a149_0x409fdc(0xcd)},'withDecision':{'id':a149_0x409fdc(0xaf),'name':a149_0x409fdc(0xc8),'description':a149_0x409fdc(0xc4),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a149_0x409fdc(0x96),'segment_id':a149_0x409fdc(0xab),'yes_path':'step-2','no_path':a149_0x409fdc(0xa4)},{'id':a149_0x409fdc(0x88),'type':a149_0x409fdc(0xa5),'activation_id':a149_0x409fdc(0xa3)},{'id':a149_0x409fdc(0xa4),'type':'end'}],'created_at':a149_0x409fdc(0x90),'updated_at':'2024-01-15T00:00:00Z'}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a149_0x409fdc(0xbb),'type':a149_0x409fdc(0xb5)},{'name':a149_0x409fdc(0x85),'type':a149_0x409fdc(0xa7)}],'data':[['user-1',a149_0x409fdc(0xdd),0x64],['user-2',a149_0x409fdc(0x7a),0xc8],[a149_0x409fdc(0x91),a149_0x409fdc(0xd4),0x96]]},'empty':{'schema':[{'name':'id','type':a149_0x409fdc(0xb5)},{'name':a149_0x409fdc(0xbb),'type':a149_0x409fdc(0xb5)}],'data':[]},'singleRow':{'schema':[{'name':a149_0x409fdc(0x9f),'type':a149_0x409fdc(0xa7)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a149_0x409fdc(0x72),'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z','administrator':![]},'admin':{'id':0x1,'name':a149_0x409fdc(0xc6),'email':a149_0x409fdc(0xd2),'created_at':a149_0x409fdc(0xa1),'updated_at':a149_0x409fdc(0xcd),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a149_0x409fdc(0xd8),'status':a149_0x409fdc(0xda),'query':a149_0x409fdc(0xd7),'start_at':'2024-01-15T10:00:00Z','end_at':a149_0x409fdc(0xcf),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a149_0x409fdc(0xc2),'database':a149_0x409fdc(0xd8),'status':a149_0x409fdc(0x97),'query':a149_0x409fdc(0xd3),'start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':'presto','database':a149_0x409fdc(0xd8),'status':'error','query':a149_0x409fdc(0xba),'start_at':a149_0x409fdc(0xdf),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':a149_0x409fdc(0xc5)}},'workflow':{'basic':{'id':a149_0x409fdc(0xbd),'name':'daily_etl','project':a149_0x409fdc(0xcb),'revision':a149_0x409fdc(0x8e),'timezone':a149_0x409fdc(0x82),'schedule':{'cron':a149_0x409fdc(0xce)}},'withSessions':{'id':a149_0x409fdc(0x92),'name':'hourly_sync','project':a149_0x409fdc(0xd0),'revision':a149_0x409fdc(0xb7),'timezone':a149_0x409fdc(0xe5),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a149_0x409fdc(0x9e),'status':a149_0x409fdc(0xda),'started_at':'2024-01-15T09:00:00Z','finished_at':a149_0x409fdc(0xa9)}}},'apiError':{'unauthorized':{'errors':{'error':a149_0x409fdc(0x73),'message':a149_0x409fdc(0x73),'severity':a149_0x409fdc(0x9c),'status_code':0x191}},'notFound':{'errors':{'error':a149_0x409fdc(0x8d),'message':a149_0x409fdc(0x84),'severity':a149_0x409fdc(0x9c),'status_code':0x194}},'rateLimited':{'detail':a149_0x409fdc(0xbc)},'rfc9457':{'type':a149_0x409fdc(0x76),'title':a149_0x409fdc(0xa8),'status':0x193,'detail':a149_0x409fdc(0x8f),'instance':a149_0x409fdc(0xe3)}}};export function createDatabase(_0x33fb64){const _0x51e918=a149_0x409fdc;return{...fixtures[_0x51e918(0x86)][_0x51e918(0x79)],..._0x33fb64};}export function createTable(_0x3bdd2e){const _0x5635fa=a149_0x409fdc;return{...fixtures[_0x5635fa(0xdb)]['basic'],..._0x3bdd2e};}export function createParentSegment(_0x201e77){const _0x6a9dde=a149_0x409fdc;return{...fixtures[_0x6a9dde(0xc3)]['basic'],..._0x201e77};}export function createSegment(_0x3f960b){const _0x2e7e79=a149_0x409fdc;return{...fixtures[_0x2e7e79(0xe0)]['basic'],..._0x3f960b};}export function createJourney(_0x58b776){const _0x5f3dee=a149_0x409fdc;return{...fixtures[_0x5f3dee(0xdc)][_0x5f3dee(0x79)],..._0x58b776};}export function createQueryResult(_0x4d9afc){const _0x12fa4b=a149_0x409fdc;return{...fixtures[_0x12fa4b(0xb1)][_0x12fa4b(0x79)],..._0x4d9afc};}export function createUser(_0x47d98a){const _0x4f0d51=a149_0x409fdc;return{...fixtures[_0x4f0d51(0x8a)][_0x4f0d51(0x79)],..._0x47d98a};}function a149_0x1881(_0x566f2a,_0xc27dec){_0x566f2a=_0x566f2a-0x72;const _0x4e5d52=a149_0x4e5d();let _0x188140=_0x4e5d52[_0x566f2a];return _0x188140;}export function createJob(_0x28248a){const _0x15df0d=a149_0x409fdc;return{...fixtures[_0x15df0d(0xaa)][_0x15df0d(0xb3)],..._0x28248a};}export function createWorkflow(_0x1fac9c){const _0x6806e5=a149_0x409fdc;return{...fixtures['workflow'][_0x6806e5(0x79)],..._0x1fac9c};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a150_0x11858a=a150_0x2fec;(function(_0x5c22cc,_0x1cac04){const _0x31045a=a150_0x2fec,_0x4ef9b2=_0x5c22cc();while(!![]){try{const _0xd56b1d=parseInt(_0x31045a(0xa2))/0x1*(parseInt(_0x31045a(0x8c))/0x2)+parseInt(_0x31045a(0xbd))/0x3*(-parseInt(_0x31045a(0xce))/0x4)+parseInt(_0x31045a(0xd3))/0x5*(parseInt(_0x31045a(0xac))/0x6)+-parseInt(_0x31045a(0xcc))/0x7*(-parseInt(_0x31045a(0x87))/0x8)+-parseInt(_0x31045a(0x82))/0x9*(-parseInt(_0x31045a(0xcf))/0xa)+parseInt(_0x31045a(0xca))/0xb+parseInt(_0x31045a(0xc1))/0xc*(-parseInt(_0x31045a(0xb8))/0xd);if(_0xd56b1d===_0x1cac04)break;else _0x4ef9b2['push'](_0x4ef9b2['shift']());}catch(_0x2d2010){_0x4ef9b2['push'](_0x4ef9b2['shift']());}}}(a150_0x3648,0x2a4f9));import{vi}from'vitest';function a150_0x2fec(_0x141f05,_0x3b8bf6){_0x141f05=_0x141f05-0x7f;const _0x36480d=a150_0x3648();let _0x2fecfd=_0x36480d[_0x141f05];return _0x2fecfd;}export class HTTPMockRegistry{[a150_0x11858a(0x95)]=[];[a150_0x11858a(0xb9)]=[];['fetchMock']=null;['REST'](_0x3a7b54,_0x12306f){return _0x8aa72a=>{const _0x212f95=a150_0x2fec;if(_0x8aa72a[_0x212f95(0x9a)][_0x212f95(0x93)]()!==_0x3a7b54[_0x212f95(0x93)]())return![];const _0x4b820b=new URL(_0x8aa72a[_0x212f95(0xc0)]);if(typeof _0x12306f===_0x212f95(0xad))return _0x4b820b[_0x212f95(0x89)]===_0x12306f||_0x4b820b[_0x212f95(0x89)]['includes'](_0x12306f);return _0x12306f[_0x212f95(0x8b)](_0x4b820b['pathname']);};}[a150_0x11858a(0xae)](_0x1f0178,_0x20e162){return _0x329f8b=>{const _0x1f9cac=a150_0x2fec;if(!_0x1f0178(_0x329f8b))return![];const _0x161d52=new URL(_0x329f8b['url']);return Object['entries'](_0x20e162)[_0x1f9cac(0x85)](([_0x3af0c5,_0x1f9f95])=>_0x161d52['searchParams'][_0x1f9cac(0x96)](_0x3af0c5)===_0x1f9f95);};}['withBody'](_0x43e47f,_0x2c2745){return _0x3302f=>{const _0x13211f=a150_0x2fec;if(!_0x43e47f(_0x3302f))return![];if(typeof _0x2c2745===_0x13211f(0xc8))return _0x2c2745(_0x3302f[_0x13211f(0x90)]);return JSON[_0x13211f(0xa0)](_0x3302f[_0x13211f(0x90)])===JSON[_0x13211f(0xa0)](_0x2c2745);};}[a150_0x11858a(0xcd)](_0x14d1e9,_0xd99d7d){return _0x1aceaf=>{const _0x51b479=a150_0x2fec;if(!_0x14d1e9(_0x1aceaf))return![];const _0x21b485=new URL(_0x1aceaf[_0x51b479(0xc0)]);return _0x21b485[_0x51b479(0xc9)]===_0xd99d7d;};}[a150_0x11858a(0x8a)](_0x5a23e4,_0x2e403d,_0x4b5640){const _0x41008e=a150_0x11858a;this[_0x41008e(0x95)][_0x41008e(0xd1)]({'matcher':_0x5a23e4,'responder':_0x2e403d,'matched':![],'matchCount':0x0,'stack':new Error()[_0x41008e(0xb2)]??'','description':_0x4b5640?.[_0x41008e(0xa1)]});}[a150_0x11858a(0x83)](_0x5d58f2,_0x460ad6,_0x5dd95c){const _0x412873=a150_0x11858a,_0x3318f1=_0x366fcc=>{const _0x31b6d6=a150_0x2fec;return _0x5dd95c(_0x366fcc[_0x31b6d6(0x90)],_0x366fcc),_0x460ad6(_0x366fcc);};this[_0x412873(0x8a)](_0x5d58f2,_0x3318f1);}static[a150_0x11858a(0xb1)](_0x5354df,_0x10ca95=0xc8){const _0x51966d=a150_0x11858a;return()=>new Response(JSON[_0x51966d(0xa0)](_0x5354df),{'status':_0x10ca95,'headers':{'Content-Type':_0x51966d(0x98)}});}static[a150_0x11858a(0xa6)](_0x438155,_0x4b0a96,_0x59572e=a150_0x11858a(0xc5)){return()=>{const _0xa50c4d=a150_0x2fec;let _0x3b9ccf;switch(_0x59572e){case _0xa50c4d(0x92):_0x3b9ccf={'errors':{'error':_0x4b0a96,'message':_0x4b0a96,'severity':'error','status_code':_0x438155}};break;case'rfc9457':_0x3b9ccf={'type':_0xa50c4d(0xd0)+_0x438155,'title':HTTPMockRegistry['getStatusText'](_0x438155),'status':_0x438155,'detail':_0x4b0a96};break;default:_0x3b9ccf={'error':_0x4b0a96};}return new Response(JSON['stringify'](_0x3b9ccf),{'status':_0x438155,'headers':{'Content-Type':_0xa50c4d(0x98)}});};}static['jsonResponseWithHeaders'](_0x322029,_0xcd4874,_0x5c16bf=0xc8){const _0x1e9420=a150_0x11858a;return()=>new Response(JSON['stringify'](_0x322029),{'status':_0x5c16bf,'headers':{'Content-Type':_0x1e9420(0x98),..._0xcd4874}});}static[a150_0x11858a(0xaf)](_0x59f4be,_0x522e93=0xc8){const _0x51e41f=a150_0x11858a;return()=>new Response(_0x59f4be,{'status':_0x522e93,'headers':{'Content-Type':_0x51e41f(0xc3)}});}static[a150_0x11858a(0xbf)](_0x267b19){return()=>{throw new Error(_0x267b19);};}[a150_0x11858a(0xa3)](){const _0x234a4f=a150_0x11858a;return this[_0x234a4f(0xc4)]=vi['fn']()['mockImplementation'](async(_0x2ee048,_0x3f7289)=>{const _0x36118c=_0x234a4f,_0x3c4b3c=this[_0x36118c(0xc6)](_0x2ee048,_0x3f7289);this[_0x36118c(0xb9)][_0x36118c(0xd1)](_0x3c4b3c);for(const _0x41e10b of this['stubs']){if(_0x41e10b[_0x36118c(0x91)](_0x3c4b3c))return _0x41e10b[_0x36118c(0x9c)]=!![],_0x41e10b['matchCount']++,_0x41e10b[_0x36118c(0x8d)](_0x3c4b3c);}const _0x1c4b6d=this[_0x36118c(0x95)][_0x36118c(0xbb)]((_0x445fc8,_0x261926)=>'\x20\x20'+(_0x261926+0x1)+'.\x20'+(_0x445fc8[_0x36118c(0xa1)]??_0x36118c(0x8e)))[_0x36118c(0xcb)]('\x0a');throw new Error(_0x36118c(0x7f)+_0x3c4b3c[_0x36118c(0x9a)]+'\x20'+_0x3c4b3c[_0x36118c(0xc0)]+'\x0a'+(_0x36118c(0xb0)+JSON[_0x36118c(0xa0)](_0x3c4b3c[_0x36118c(0x90)])+'\x0a')+(_0x36118c(0xb5)+(_0x1c4b6d||_0x36118c(0x86))));}),this[_0x234a4f(0xc4)];}[a150_0x11858a(0xc6)](_0x54e071,_0x53325f){const _0x3137bc=a150_0x11858a,_0x23353d={};if(_0x53325f?.[_0x3137bc(0xab)]){if(_0x53325f[_0x3137bc(0xab)]instanceof Headers)_0x53325f['headers'][_0x3137bc(0x9f)]((_0x2d6b49,_0x55a0e7)=>{const _0x14f890=_0x3137bc;_0x23353d[_0x55a0e7[_0x14f890(0x97)]()]=_0x2d6b49;});else{if(Array[_0x3137bc(0xc2)](_0x53325f[_0x3137bc(0xab)]))for(const [_0x1743ef,_0x1db21e]of _0x53325f[_0x3137bc(0xab)]){_0x23353d[_0x1743ef[_0x3137bc(0x97)]()]=_0x1db21e;}else for(const [_0x3c58d9,_0x8e9cdb]of Object[_0x3137bc(0xa4)](_0x53325f[_0x3137bc(0xab)])){_0x8e9cdb!==undefined&&(_0x23353d[_0x3c58d9[_0x3137bc(0x97)]()]=_0x8e9cdb);}}}let _0x319697;if(_0x53325f?.[_0x3137bc(0x90)])try{_0x319697=JSON[_0x3137bc(0xa7)](_0x53325f['body']);}catch{_0x319697=_0x53325f[_0x3137bc(0x90)];}return{'method':_0x53325f?.[_0x3137bc(0x9a)]??_0x3137bc(0xa8),'url':_0x54e071,'headers':_0x23353d,'body':_0x319697};}[a150_0x11858a(0x81)](_0x29c435){const _0x474519=a150_0x11858a,_0xf8802b=this[_0x474519(0x95)]['filter'](_0x269bcb=>!_0x269bcb[_0x474519(0x9c)]);if(_0xf8802b[_0x474519(0x9d)]>0x0){const _0x34e3c5=_0xf8802b[_0x474519(0xbb)](_0x37de32=>{const _0x35f243=_0x474519,_0x122636=_0x37de32[_0x35f243(0xa1)]?'\x20('+_0x37de32[_0x35f243(0xa1)]+')':'',_0x1bd420=_0x37de32['stack'][_0x35f243(0x9b)]('\x0a')[_0x35f243(0x84)](0x2,0x5)[_0x35f243(0xcb)]('\x0a');return _0x35f243(0x88)+_0x122636+_0x35f243(0x94)+_0x1bd420;});_0x29c435[_0x474519(0x9e)](_0xf8802b[_0x474519(0x9d)]+_0x474519(0x8f)+_0x34e3c5[_0x474519(0xcb)]('\x0a\x0a'));}}[a150_0x11858a(0xb4)](){const _0x429aca=a150_0x11858a;return[...this[_0x429aca(0xb9)]];}[a150_0x11858a(0xa5)](){const _0x20f356=a150_0x11858a;return this[_0x20f356(0xb9)][this[_0x20f356(0xb9)]['length']-0x1];}[a150_0x11858a(0xaa)](_0x576703,_0x392083){const _0x2606ee=a150_0x11858a;return this[_0x2606ee(0xb9)]['some'](_0x476b6a=>{const _0xb5a09a=_0x2606ee;if(_0x476b6a[_0xb5a09a(0x9a)][_0xb5a09a(0x93)]()!==_0x576703['toUpperCase']())return![];if(typeof _0x392083===_0xb5a09a(0xad))return _0x476b6a[_0xb5a09a(0xc0)][_0xb5a09a(0xa9)](_0x392083);return _0x392083[_0xb5a09a(0x8b)](_0x476b6a[_0xb5a09a(0xc0)]);});}[a150_0x11858a(0x80)](_0x20c658){const _0x3afa3e=a150_0x11858a;return this[_0x3afa3e(0x95)][_0x20c658]?.[_0x3afa3e(0xd2)]??0x0;}['reset'](){const _0x4a328b=a150_0x11858a;this[_0x4a328b(0x95)]=[],this[_0x4a328b(0xb9)]=[],this[_0x4a328b(0xc4)]=null;}static['getStatusText'](_0x591d3c){const _0x463cef=a150_0x11858a,_0x2da268={0xc8:'OK',0xc9:_0x463cef(0xb7),0xcc:_0x463cef(0xbe),0x190:_0x463cef(0x99),0x191:_0x463cef(0xba),0x193:'Forbidden',0x194:'Not\x20Found',0x199:_0x463cef(0xb6),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x463cef(0xbc),0x1f4:_0x463cef(0xc7),0x1f6:_0x463cef(0xb3),0x1f7:'Service\x20Unavailable'};return _0x2da268[_0x591d3c]??'Unknown';}}function a150_0x3648(){const _0x4949ba=['Internal\x20Server\x20Error','function','host','2864620pjbRsH','join','7fTLAjW','withHost','716hsKMoV','31910lezMfS','https://api.treasuredata.com/errors/','push','matchCount','165MNHDaz','No\x20stub\x20matched\x20request:\x20','getMatchCount','verify','9vIrHPw','registerWithInspector','slice','every','\x20\x20(none)','2044072WcqkUc','Unmatched\x20stub','pathname','register','test','6WxwnNJ','responder','unnamed\x20stub','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','body','matcher','td-api','toUpperCase','\x20registered\x20at:\x0a','stubs','get','toLowerCase','application/json','Bad\x20Request','method','split','matched','length','fail','forEach','stringify','description','18260fXksYy','createFetch','entries','getLastRequest','errorResponse','parse','GET','includes','wasCalled','headers','17934nTGYmA','string','withQuery','textResponse','Request\x20body:\x20','jsonResponse','stack','Bad\x20Gateway','getRequests','Registered\x20stubs:\x0a','Conflict','Created','4607473ltTIWT','requests','Unauthorized','map','Too\x20Many\x20Requests','2427YDUMVL','No\x20Content','networkError','url','12Zczxkj','isArray','text/plain','fetchMock','simple','parseRequest'];a150_0x3648=function(){return _0x4949ba;};return a150_0x3648();}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a151_0x5d7a(_0x536f1f,_0x275775){_0x536f1f=_0x536f1f-0xd6;var _0x321c58=a151_0x321c();var _0x5d7ae1=_0x321c58[_0x536f1f];return _0x5d7ae1;}(function(_0x4567fb,_0x4fb760){var _0x2b1388=a151_0x5d7a,_0x2e67c2=_0x4567fb();while(!![]){try{var _0x166641=-parseInt(_0x2b1388(0xdb))/0x1+-parseInt(_0x2b1388(0xd6))/0x2*(-parseInt(_0x2b1388(0xd7))/0x3)+parseInt(_0x2b1388(0xde))/0x4+parseInt(_0x2b1388(0xda))/0x5*(parseInt(_0x2b1388(0xd9))/0x6)+-parseInt(_0x2b1388(0xd8))/0x7+-parseInt(_0x2b1388(0xdc))/0x8+parseInt(_0x2b1388(0xdd))/0x9;if(_0x166641===_0x4fb760)break;else _0x2e67c2['push'](_0x2e67c2['shift']());}catch(_0x2dbe70){_0x2e67c2['push'](_0x2e67c2['shift']());}}}(a151_0x321c,0xbc9d2));function a151_0x321c(){var _0x1500f4=['1230eIaFNg','1107zDyhCg','4896892oVEaGL','1842qrecrd','23155LkjMQb','43355OzuWBQ','9902520tuaHlH','4563360NBUUbJ','2390384zHEeSe'];a151_0x321c=function(){return _0x1500f4;};return a151_0x321c();}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 a152_0x4fe2(_0x403bc4,_0xe2c263){_0x403bc4=_0x403bc4-0x9f;const _0x51bef2=a152_0x51be();let _0x4fe285=_0x51bef2[_0x403bc4];return _0x4fe285;}(function(_0xd132cb,_0x48db2e){const _0x3ceb03=a152_0x4fe2,_0x26994f=_0xd132cb();while(!![]){try{const _0x498631=parseInt(_0x3ceb03(0xaa))/0x1+parseInt(_0x3ceb03(0x9f))/0x2+parseInt(_0x3ceb03(0xa6))/0x3*(parseInt(_0x3ceb03(0xa1))/0x4)+parseInt(_0x3ceb03(0xa2))/0x5+-parseInt(_0x3ceb03(0xab))/0x6*(parseInt(_0x3ceb03(0xa0))/0x7)+-parseInt(_0x3ceb03(0xa5))/0x8+-parseInt(_0x3ceb03(0xa9))/0x9;if(_0x498631===_0x48db2e)break;else _0x26994f['push'](_0x26994f['shift']());}catch(_0x4e1d15){_0x26994f['push'](_0x26994f['shift']());}}}(a152_0x51be,0x2086c));function a152_0x51be(){const _0x4f5262=['1294590zmHZTV','slice','push','1331560CXtFEx','195MXjemR','length','all','2699496khUCRB','78570JjPiQk','3456RkplKM','174664jNljbB','616nBQSGl','13876lrtvSi'];a152_0x51be=function(){return _0x4f5262;};return a152_0x51be();}export async function batchAsync(_0x273d54,_0xdf418b,_0x3b3710=0xa){const _0x107a3e=a152_0x4fe2,_0x132bea=[];for(let _0x123ce3=0x0;_0x123ce3<_0x273d54[_0x107a3e(0xa7)];_0x123ce3+=_0x3b3710){const _0x2ff779=_0x273d54[_0x107a3e(0xa3)](_0x123ce3,_0x123ce3+_0x3b3710),_0x5ab896=await Promise[_0x107a3e(0xa8)](_0x2ff779['map'](_0xdf418b));_0x132bea[_0x107a3e(0xa4)](..._0x5ab896);}return _0x132bea;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a153_0x5d81c7=a153_0x2aac;(function(_0x23e953,_0x187eee){const _0x246b36=a153_0x2aac,_0xb3150a=_0x23e953();while(!![]){try{const _0x132c4d=parseInt(_0x246b36(0x1dd))/0x1*(-parseInt(_0x246b36(0x1e0))/0x2)+-parseInt(_0x246b36(0x1e3))/0x3*(parseInt(_0x246b36(0x1d5))/0x4)+-parseInt(_0x246b36(0x1df))/0x5*(parseInt(_0x246b36(0x1d9))/0x6)+-parseInt(_0x246b36(0x1da))/0x7+parseInt(_0x246b36(0x1e4))/0x8+parseInt(_0x246b36(0x1d6))/0x9+parseInt(_0x246b36(0x1d8))/0xa;if(_0x132c4d===_0x187eee)break;else _0xb3150a['push'](_0xb3150a['shift']());}catch(_0x4c4c70){_0xb3150a['push'](_0xb3150a['shift']());}}}(a153_0x2b50,0x5b2d8));import*as a153_0x192923 from'chalk';const Chalk=a153_0x192923[a153_0x5d81c7(0x1d1)];export function shouldUseColor(_0x3173c6={}){const _0x3c1a9a=a153_0x5d81c7;if(_0x3173c6['noColor']===!![])return![];if(_0x3173c6[_0x3c1a9a(0x1e2)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3c1a9a(0x1d3)][_0x3c1a9a(0x1d7)]??![];}export function getChalk(_0x5a1e38={}){if(shouldUseColor(_0x5a1e38))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x1c3df4,_0x2ef76d={}){const _0x114b3f=a153_0x5d81c7;return getChalk(_0x2ef76d)[_0x114b3f(0x1e1)](_0x1c3df4);}export function colorHeader(_0x431be9,_0x518f5f={}){const _0x531985=a153_0x5d81c7;return getChalk(_0x518f5f)[_0x531985(0x1d2)](_0x431be9);}export function colorType(_0x32d01f,_0x550d25={}){const _0x30c563=a153_0x5d81c7;return getChalk(_0x550d25)[_0x30c563(0x1e1)](_0x32d01f);}function a153_0x2aac(_0x498ea3,_0x1d9a07){_0x498ea3=_0x498ea3-0x1cc;const _0x2b502d=a153_0x2b50();let _0x2aac1c=_0x2b502d[_0x498ea3];return _0x2aac1c;}function a153_0x2b50(){const _0x3577f5=['10342310fTKaxr','12wEFojI','855764THnLSD','boolean','blue','19AkERcC','entries','1176585AHexGt','36346TaLQqR','dim','color','60edfRzz','1289888sLtkVx','yellow','map','string','join','green','length','number','stringify','isArray','repeat','null','Chalk','cyan','stdout','object','64BtntxE','1048410sUHBIe','isTTY'];a153_0x2b50=function(){return _0x3577f5;};return a153_0x2b50();}export function colorJSONKey(_0x457039,_0x39d2e7={}){const _0x19bb86=a153_0x5d81c7;return getChalk(_0x39d2e7)[_0x19bb86(0x1dc)](_0x457039);}export function colorJSONString(_0x4a0abc,_0x20df2f={}){const _0x5a2a3d=a153_0x5d81c7;return getChalk(_0x20df2f)[_0x5a2a3d(0x1e9)](_0x4a0abc);}export function colorJSONNumber(_0x15c87e,_0x26f4ed={}){const _0x568c68=a153_0x5d81c7;return getChalk(_0x26f4ed)[_0x568c68(0x1d2)](_0x15c87e);}export function colorJSONBoolean(_0x522604,_0x3e8062={}){const _0x5ef2c0=a153_0x5d81c7;return getChalk(_0x3e8062)[_0x5ef2c0(0x1e5)](_0x522604);}export function colorJSONNull(_0x5d2a99,_0x5f2229={}){return getChalk(_0x5f2229)['dim'](_0x5d2a99);}export function colorizeJSONCompact(_0x10097b,_0x2f64a7={}){const _0x461dc4=a153_0x5d81c7;if(!shouldUseColor(_0x2f64a7))return JSON[_0x461dc4(0x1cd)](_0x10097b);if(_0x10097b===null)return colorJSONNull(_0x461dc4(0x1d0),_0x2f64a7);if(typeof _0x10097b===_0x461dc4(0x1db))return colorJSONBoolean(String(_0x10097b),_0x2f64a7);if(typeof _0x10097b===_0x461dc4(0x1cc))return colorJSONNumber(String(_0x10097b),_0x2f64a7);if(typeof _0x10097b===_0x461dc4(0x1e7))return colorJSONString(JSON[_0x461dc4(0x1cd)](_0x10097b),_0x2f64a7);if(Array['isArray'](_0x10097b)){if(_0x10097b[_0x461dc4(0x1ea)]===0x0)return'[]';const _0x34b281=_0x10097b[_0x461dc4(0x1e6)](_0x16504c=>colorizeJSONCompact(_0x16504c,_0x2f64a7));return'['+_0x34b281['join'](',')+']';}if(typeof _0x10097b===_0x461dc4(0x1d4)){const _0x130a5e=Object[_0x461dc4(0x1de)](_0x10097b);if(_0x130a5e[_0x461dc4(0x1ea)]===0x0)return'{}';const _0x21d056=_0x130a5e[_0x461dc4(0x1e6)](([_0xd9a025,_0x37af7c])=>{const _0x14095d=colorJSONKey(JSON['stringify'](_0xd9a025),_0x2f64a7),_0x4df327=colorizeJSONCompact(_0x37af7c,_0x2f64a7);return _0x14095d+':'+_0x4df327;});return'{'+_0x21d056[_0x461dc4(0x1e8)](',')+'}';}return String(_0x10097b);}export function colorizeJSON(_0x613d45,_0x2cf05d={},_0x24cbbc=0x0){const _0x342469=a153_0x5d81c7;if(!shouldUseColor(_0x2cf05d))return JSON[_0x342469(0x1cd)](_0x613d45,null,0x2);const _0x1ae243='\x20'['repeat'](_0x24cbbc),_0x22ef20=_0x24cbbc+0x2;if(_0x613d45===null)return colorJSONNull(_0x342469(0x1d0),_0x2cf05d);if(typeof _0x613d45===_0x342469(0x1db))return colorJSONBoolean(String(_0x613d45),_0x2cf05d);if(typeof _0x613d45==='number')return colorJSONNumber(String(_0x613d45),_0x2cf05d);if(typeof _0x613d45===_0x342469(0x1e7))return colorJSONString(JSON[_0x342469(0x1cd)](_0x613d45),_0x2cf05d);if(Array[_0x342469(0x1ce)](_0x613d45)){if(_0x613d45[_0x342469(0x1ea)]===0x0)return'[]';const _0x401ba2=_0x613d45[_0x342469(0x1e6)](_0x364499=>{const _0x3b08e6=_0x342469,_0x38e707=colorizeJSON(_0x364499,_0x2cf05d,_0x22ef20);return''+'\x20'[_0x3b08e6(0x1cf)](_0x22ef20)+_0x38e707;});return'[\x0a'+_0x401ba2['join'](',\x0a')+('\x0a'+_0x1ae243+']');}if(typeof _0x613d45===_0x342469(0x1d4)){const _0x483f96=Object[_0x342469(0x1de)](_0x613d45);if(_0x483f96['length']===0x0)return'{}';const _0x54bbd7=_0x483f96[_0x342469(0x1e6)](([_0x4b89f0,_0x148253])=>{const _0x1d7f8f=_0x342469,_0x47b02a=colorJSONKey(JSON['stringify'](_0x4b89f0),_0x2cf05d),_0x398b92=colorizeJSON(_0x148253,_0x2cf05d,_0x22ef20);return''+'\x20'[_0x1d7f8f(0x1cf)](_0x22ef20)+_0x47b02a+':\x20'+_0x398b92;});return'{\x0a'+_0x54bbd7['join'](',\x0a')+('\x0a'+_0x1ae243+'}');}return String(_0x613d45);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x463705,_0x87a39f){const _0x1433ab=a154_0x227b,_0x103f9d=_0x463705();while(!![]){try{const _0x273f63=parseInt(_0x1433ab(0xd4))/0x1*(-parseInt(_0x1433ab(0xc0))/0x2)+-parseInt(_0x1433ab(0xe0))/0x3*(parseInt(_0x1433ab(0xde))/0x4)+-parseInt(_0x1433ab(0xc8))/0x5+-parseInt(_0x1433ab(0xda))/0x6*(-parseInt(_0x1433ab(0xca))/0x7)+parseInt(_0x1433ab(0xc9))/0x8+parseInt(_0x1433ab(0xd1))/0x9*(parseInt(_0x1433ab(0xd7))/0xa)+parseInt(_0x1433ab(0xbe))/0xb;if(_0x273f63===_0x87a39f)break;else _0x103f9d['push'](_0x103f9d['shift']());}catch(_0x235bf0){_0x103f9d['push'](_0x103f9d['shift']());}}}(a154_0x221a,0xe9d1d));import a154_0x2c5182 from'chalk';function a154_0x221a(){const _0x451132=['map','add','max','\x20+\x20','unshift','added','27pFvBhi','min','repeat','70RjSlHn','fill','size','6130890geKBea','push','cyan','3987402hqyWnq','new','content','green','5313156nVEvfj','padStart','3rLfctr','removed','red','old','13148058IShjcE','dim','48628TLCuMR','unchanged','some','forEach','split','type','join','length','4909360BXZrWV','10166032kwNztU','7KSAvfd'];a154_0x221a=function(){return _0x451132;};return a154_0x221a();}export function generateDiff(_0x45cc80,_0x2656fb){const _0x2ce5cc=a154_0x227b,_0x42edd4=_0x45cc80[_0x2ce5cc(0xc4)]('\x0a'),_0x3ec838=_0x2656fb[_0x2ce5cc(0xc4)]('\x0a'),_0x2d7fe9=[],_0x20c559=computeLCS(_0x42edd4,_0x3ec838);let _0x166f9b=0x0,_0x17d5c9=0x0,_0x4dce1d=0x0;while(_0x166f9b<_0x42edd4[_0x2ce5cc(0xc7)]||_0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]){if(_0x4dce1d<_0x20c559['length']&&_0x166f9b<_0x42edd4[_0x2ce5cc(0xc7)]&&_0x42edd4[_0x166f9b]===_0x20c559[_0x4dce1d])_0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]&&_0x3ec838[_0x17d5c9]===_0x20c559[_0x4dce1d]?(_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':'unchanged','content':_0x42edd4[_0x166f9b]}),_0x166f9b++,_0x17d5c9++,_0x4dce1d++):(_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xd0),'content':_0x3ec838[_0x17d5c9]}),_0x17d5c9++);else{if(_0x4dce1d<_0x20c559[_0x2ce5cc(0xc7)]&&_0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]&&_0x3ec838[_0x17d5c9]===_0x20c559[_0x4dce1d])_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xe1),'content':_0x42edd4[_0x166f9b]}),_0x166f9b++;else{if(_0x166f9b<_0x42edd4['length']&&(_0x4dce1d>=_0x20c559[_0x2ce5cc(0xc7)]||_0x42edd4[_0x166f9b]!==_0x20c559[_0x4dce1d]))_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xe1),'content':_0x42edd4[_0x166f9b]}),_0x166f9b++;else _0x17d5c9<_0x3ec838[_0x2ce5cc(0xc7)]&&(_0x2d7fe9[_0x2ce5cc(0xd8)]({'type':_0x2ce5cc(0xd0),'content':_0x3ec838[_0x17d5c9]}),_0x17d5c9++);}}}return _0x2d7fe9;}function computeLCS(_0x3ccf23,_0x4a30d7){const _0x3e1ebc=a154_0x227b,_0x236dba=_0x3ccf23[_0x3e1ebc(0xc7)],_0x244591=_0x4a30d7[_0x3e1ebc(0xc7)],_0x35ce8b=Array(_0x236dba+0x1)[_0x3e1ebc(0xd5)](null)[_0x3e1ebc(0xcb)](()=>Array(_0x244591+0x1)[_0x3e1ebc(0xd5)](0x0));for(let _0x47fbf2=0x1;_0x47fbf2<=_0x236dba;_0x47fbf2++){for(let _0x5e8377=0x1;_0x5e8377<=_0x244591;_0x5e8377++){_0x3ccf23[_0x47fbf2-0x1]===_0x4a30d7[_0x5e8377-0x1]?_0x35ce8b[_0x47fbf2][_0x5e8377]=_0x35ce8b[_0x47fbf2-0x1][_0x5e8377-0x1]+0x1:_0x35ce8b[_0x47fbf2][_0x5e8377]=Math['max'](_0x35ce8b[_0x47fbf2-0x1][_0x5e8377],_0x35ce8b[_0x47fbf2][_0x5e8377-0x1]);}}const _0x213fdc=[];let _0x125ffd=_0x236dba,_0x2b7007=_0x244591;while(_0x125ffd>0x0&&_0x2b7007>0x0){if(_0x3ccf23[_0x125ffd-0x1]===_0x4a30d7[_0x2b7007-0x1])_0x213fdc[_0x3e1ebc(0xcf)](_0x3ccf23[_0x125ffd-0x1]),_0x125ffd--,_0x2b7007--;else _0x35ce8b[_0x125ffd-0x1][_0x2b7007]>_0x35ce8b[_0x125ffd][_0x2b7007-0x1]?_0x125ffd--:_0x2b7007--;}return _0x213fdc;}function a154_0x227b(_0x5f5a84,_0x4f2ff1){_0x5f5a84=_0x5f5a84-0xbe;const _0x221abe=a154_0x221a();let _0x227bcf=_0x221abe[_0x5f5a84];return _0x227bcf;}export function formatDiffWithColors(_0x4aa8a6,_0x259372=0x3){const _0x3f7384=a154_0x227b,_0x12d4c2=new Set();_0x4aa8a6[_0x3f7384(0xc3)]((_0x1cd1de,_0x11e406)=>{const _0x1ee351=_0x3f7384;_0x1cd1de['type']!==_0x1ee351(0xc1)&&_0x12d4c2[_0x1ee351(0xcc)](_0x11e406);});if(_0x12d4c2[_0x3f7384(0xd6)]===0x0)return'';const _0x23801e=new Set();for(const _0x5ad9d9 of _0x12d4c2){for(let _0x4aa40b=Math[_0x3f7384(0xcd)](0x0,_0x5ad9d9-_0x259372);_0x4aa40b<=Math[_0x3f7384(0xd2)](_0x4aa8a6[_0x3f7384(0xc7)]-0x1,_0x5ad9d9+_0x259372);_0x4aa40b++){_0x23801e['add'](_0x4aa40b);}}const _0x5b4d13=[];let _0x45be7c=-0x1;const _0x4f9202=_0x4aa8a6[_0x3f7384(0xc7)],_0x529ce3=Math[_0x3f7384(0xcd)](0x3,String(_0x4f9202)[_0x3f7384(0xc7)]),_0x3edb67=[];let _0x57d555=0x0,_0x34ad2e=0x0;for(const _0x150304 of _0x4aa8a6){if(_0x150304[_0x3f7384(0xc5)]===_0x3f7384(0xe1))_0x57d555++,_0x3edb67[_0x3f7384(0xd8)]({'old':_0x57d555,'new':0x0});else _0x150304[_0x3f7384(0xc5)]===_0x3f7384(0xd0)?(_0x34ad2e++,_0x3edb67[_0x3f7384(0xd8)]({'old':0x0,'new':_0x34ad2e})):(_0x57d555++,_0x34ad2e++,_0x3edb67['push']({'old':_0x57d555,'new':_0x34ad2e}));}for(let _0x9d155d=0x0;_0x9d155d<_0x4aa8a6[_0x3f7384(0xc7)];_0x9d155d++){if(!_0x23801e['has'](_0x9d155d))continue;_0x45be7c!==-0x1&&_0x9d155d>_0x45be7c+0x1&&_0x5b4d13[_0x3f7384(0xd8)](a154_0x2c5182[_0x3f7384(0xd9)]('\x20\x20...'));_0x45be7c=_0x9d155d;const _0x4dcba8=_0x4aa8a6[_0x9d155d],_0x2a1711=_0x3edb67[_0x9d155d],_0x29addc=_0x2a1711['old']>0x0?String(_0x2a1711[_0x3f7384(0xe3)])[_0x3f7384(0xdf)](_0x529ce3):'\x20'[_0x3f7384(0xd3)](_0x529ce3),_0x821f2d=_0x2a1711[_0x3f7384(0xdb)]>0x0?String(_0x2a1711[_0x3f7384(0xdb)])['padStart'](_0x529ce3):'\x20'[_0x3f7384(0xd3)](_0x529ce3);switch(_0x4dcba8['type']){case _0x3f7384(0xe1):_0x5b4d13[_0x3f7384(0xd8)](a154_0x2c5182[_0x3f7384(0xe2)](_0x29addc+'\x20'+_0x821f2d+'\x20-\x20'+_0x4dcba8['content']));break;case'added':_0x5b4d13['push'](a154_0x2c5182[_0x3f7384(0xdd)](_0x29addc+'\x20'+_0x821f2d+_0x3f7384(0xce)+_0x4dcba8[_0x3f7384(0xdc)]));break;default:_0x5b4d13[_0x3f7384(0xd8)](a154_0x2c5182[_0x3f7384(0xbf)](_0x29addc+'\x20'+_0x821f2d+'\x20\x20\x20'+_0x4dcba8['content']));break;}}return _0x5b4d13[_0x3f7384(0xc6)]('\x0a');}export function hasChanges(_0x18ae1e){const _0x1eee94=a154_0x227b;return _0x18ae1e[_0x1eee94(0xc2)](_0x2ab2af=>_0x2ab2af[_0x1eee94(0xc5)]!==_0x1eee94(0xc1));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a155_0x2a35(){const _0x4be689=['920061GpIlPK','10433142UPIbTd','4aHuGMd','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','writeFileSync','6OlfzgF',').\x20','warn','Warning:\x20','1737555DYNvpQ','mode','3783052MHshUS','chmodSync','1378192glhUwW','statSync','mkdirSync','440379hleFtv','dirname','toString','478550qMHygv'];a155_0x2a35=function(){return _0x4be689;};return a155_0x2a35();}function a155_0x92e7(_0x191c40,_0x375fae){_0x191c40=_0x191c40-0x14c;const _0x2a3547=a155_0x2a35();let _0x92e75f=_0x2a3547[_0x191c40];return _0x92e75f;}(function(_0x15595a,_0x444019){const _0x2e6c07=a155_0x92e7,_0x1185c4=_0x15595a();while(!![]){try{const _0x140dd5=-parseInt(_0x2e6c07(0x153))/0x1+parseInt(_0x2e6c07(0x156))/0x2+parseInt(_0x2e6c07(0x157))/0x3*(-parseInt(_0x2e6c07(0x159))/0x4)+parseInt(_0x2e6c07(0x14c))/0x5*(parseInt(_0x2e6c07(0x15c))/0x6)+-parseInt(_0x2e6c07(0x14e))/0x7+-parseInt(_0x2e6c07(0x150))/0x8+parseInt(_0x2e6c07(0x158))/0x9;if(_0x140dd5===_0x444019)break;else _0x1185c4['push'](_0x1185c4['shift']());}catch(_0x2b5c3e){_0x1185c4['push'](_0x1185c4['shift']());}}}(a155_0x2a35,0x45e28));import*as a155_0x35ed4e from'node:fs';import*as a155_0x37e1fd from'node:path';export function setSecureFilePermissions(_0x1d199b){const _0x11c0e1=a155_0x92e7;try{a155_0x35ed4e[_0x11c0e1(0x14f)](_0x1d199b,0x180);}catch{console[_0x11c0e1(0x15e)]('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1d199b);}}export function setSecureDirectoryPermissions(_0x54cd51){const _0x5219ff=a155_0x92e7;try{a155_0x35ed4e[_0x5219ff(0x14f)](_0x54cd51,0x1c0);}catch{console[_0x5219ff(0x15e)](_0x5219ff(0x15a)+_0x54cd51);}}export function createSecureDirectory(_0x183ced){const _0x22cd4e=a155_0x92e7;!a155_0x35ed4e['existsSync'](_0x183ced)&&(a155_0x35ed4e[_0x22cd4e(0x152)](_0x183ced,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x183ced));}export function validateSecureFilePermissions(_0x18e43b){const _0x2528cb=a155_0x92e7;try{const _0x1bd9b7=a155_0x35ed4e[_0x2528cb(0x151)](_0x18e43b),_0x685a70=_0x1bd9b7[_0x2528cb(0x14d)]&0x1ff,_0x4afc95=(_0x685a70&0x3f)!==0x0;if(_0x4afc95)return console[_0x2528cb(0x15e)](_0x2528cb(0x15f)+_0x18e43b+'\x20has\x20insecure\x20permissions\x20('+_0x685a70[_0x2528cb(0x155)](0x8)+_0x2528cb(0x15d)+'Should\x20be\x200600\x20or\x20more\x20restrictive.'),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xeaa24c,_0x1c5981){const _0x461f91=a155_0x92e7,_0x1c7009=a155_0x37e1fd[_0x461f91(0x154)](_0xeaa24c);createSecureDirectory(_0x1c7009),a155_0x35ed4e[_0x461f91(0x15b)](_0xeaa24c,_0x1c5981,{'mode':0x180}),setSecureFilePermissions(_0xeaa24c);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a156_0x4536(_0x4afc81,_0x380a69){_0x4afc81=_0x4afc81-0x14c;const _0x4fd6a4=a156_0x4fd6();let _0x45363b=_0x4fd6a4[_0x4afc81];return _0x45363b;}(function(_0x38acf1,_0x495e85){const _0x1bf71d=a156_0x4536,_0xfa07e1=_0x38acf1();while(!![]){try{const _0x13c381=parseInt(_0x1bf71d(0x154))/0x1+-parseInt(_0x1bf71d(0x15a))/0x2+-parseInt(_0x1bf71d(0x157))/0x3+parseInt(_0x1bf71d(0x150))/0x4+-parseInt(_0x1bf71d(0x15b))/0x5*(-parseInt(_0x1bf71d(0x158))/0x6)+-parseInt(_0x1bf71d(0x15f))/0x7+parseInt(_0x1bf71d(0x15c))/0x8*(-parseInt(_0x1bf71d(0x15e))/0x9);if(_0x13c381===_0x495e85)break;else _0xfa07e1['push'](_0xfa07e1['shift']());}catch(_0x3fb5b7){_0xfa07e1['push'](_0xfa07e1['shift']());}}}(a156_0x4fd6,0x4b94f));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';function a156_0x4fd6(){const _0x140f1c=['619227evkmKe','get','\x22\x20already\x20registered\x20by\x20\x22','{profile}','tdx','replace','trim','.cache','108000OIirpA','Global\x20cache\x20key\x20\x22','parse','utf-8','565134FtXsFW','stringify','set','309018TLjRwq','6eKQDZd','default','443350dNPXuL','2614385oklAmZ','24wKFlOc','\x22,\x20cannot\x20register\x20for\x20\x22','1176858fwQJgd'];a156_0x4fd6=function(){return _0x140f1c;};return a156_0x4fd6();}import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x396323=a156_0x4536;return process.env.TDX_CACHE_DIR||join(homedir(),_0x396323(0x14f),_0x396323(0x14c));}const registry=new Map();export function registerGlobalCacheKey(_0x3a6437,_0x2d7579){const _0x10bd7d=a156_0x4536,_0x114052=registry[_0x10bd7d(0x160)](_0x3a6437);if(_0x114052&&_0x114052!==_0x2d7579)throw new Error(_0x10bd7d(0x151)+_0x3a6437+_0x10bd7d(0x161)+_0x114052+_0x10bd7d(0x15d)+_0x2d7579+'\x22');registry[_0x10bd7d(0x156)](_0x3a6437,_0x2d7579);}export function getGlobalCachePath(_0x5ac12d){return join(getGlobalCacheDir(),_0x5ac12d);}function ensureGlobalCacheDir(){const _0x1e5dc5=getGlobalCacheDir();!existsSync(_0x1e5dc5)&&mkdirSync(_0x1e5dc5,{'recursive':!![]});}function readCacheJson(_0x3c76fc){const _0x559160=a156_0x4536,_0x371af9=getGlobalCachePath(_0x3c76fc);if(!existsSync(_0x371af9))return undefined;try{const _0x521a80=readFileSync(_0x371af9,_0x559160(0x153));return JSON[_0x559160(0x152)](_0x521a80);}catch{return undefined;}}function writeCacheJson(_0x10c76a,_0x1ecbad){const _0x1de088=a156_0x4536;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x10c76a),JSON[_0x1de088(0x155)](_0x1ecbad,null,0x2),'utf-8');}function readCacheText(_0x3cbd4a){const _0x3542f8=a156_0x4536,_0x323092=getGlobalCachePath(_0x3cbd4a);if(!existsSync(_0x323092))return undefined;try{return readFileSync(_0x323092,_0x3542f8(0x153));}catch{return undefined;}}function writeCacheText(_0x557d66,_0x3e57fa){const _0x3df431=a156_0x4536;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x557d66),_0x3e57fa,_0x3df431(0x153));}function clearCache(_0x3aa2f9){const _0x9f2517=getGlobalCachePath(_0x3aa2f9);if(existsSync(_0x9f2517))try{unlinkSync(_0x9f2517);}catch{}}function cacheExists(_0x3dab1b){return existsSync(getGlobalCachePath(_0x3dab1b));}export function createGlobalCache(_0x573fc3,_0x28acb9){return registerGlobalCacheKey(_0x573fc3,_0x28acb9),{'read':()=>readCacheJson(_0x573fc3),'write':_0x251db2=>writeCacheJson(_0x573fc3,_0x251db2),'clear':()=>clearCache(_0x573fc3),'exists':()=>cacheExists(_0x573fc3),'path':()=>getGlobalCachePath(_0x573fc3)};}export function createGlobalTextCache(_0x19c961,_0x3f1d33){const _0x362775=a156_0x4536;return registerGlobalCacheKey(_0x19c961,_0x3f1d33),{'read':()=>readCacheText(_0x19c961)?.[_0x362775(0x14e)]()||undefined,'write':_0x17aae3=>writeCacheText(_0x19c961,_0x17aae3),'clear':()=>clearCache(_0x19c961),'exists':()=>cacheExists(_0x19c961),'path':()=>getGlobalCachePath(_0x19c961)};}export function createProfileCache(_0x240bb8,_0x26c550){const _0x4e15f3=_0x1c0fbd=>{const _0x49f0a2=a156_0x4536,_0x52be73=_0x1c0fbd||_0x49f0a2(0x159);return _0x240bb8[_0x49f0a2(0x14d)](_0x49f0a2(0x162),_0x52be73);};return{'read':_0x3ae6eb=>{const _0x10926=_0x4e15f3(_0x3ae6eb);return registerGlobalCacheKey(_0x10926,_0x26c550),readCacheJson(_0x10926);},'write':(_0x143d0a,_0x5c761a)=>{const _0x40ee36=_0x4e15f3(_0x143d0a);registerGlobalCacheKey(_0x40ee36,_0x26c550),writeCacheJson(_0x40ee36,_0x5c761a);},'clear':_0x38def3=>{const _0xa95e32=_0x4e15f3(_0x38def3);clearCache(_0xa95e32);},'exists':_0x130ed0=>{const _0x43c712=_0x4e15f3(_0x130ed0);return cacheExists(_0x43c712);},'path':_0x4a6552=>{const _0x3c30c4=_0x4e15f3(_0x4a6552);return getGlobalCachePath(_0x3c30c4);}};}export function createOptionalProfileCache(_0x2a9420,_0x5b049c,_0x400ba3={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x400ba3,_0x214c2c=_0x54e06b=>{return _0x54e06b?''+_0x2a9420+profileSeparator+_0x54e06b+suffix:''+_0x2a9420+suffix;};return{'read':_0x2d3a02=>{const _0x287b42=_0x214c2c(_0x2d3a02);return registerGlobalCacheKey(_0x287b42,_0x5b049c),readCacheJson(_0x287b42);},'write':(_0x12823b,_0x1d1076)=>{const _0x4bbf41=_0x214c2c(_0x1d1076);registerGlobalCacheKey(_0x4bbf41,_0x5b049c),writeCacheJson(_0x4bbf41,_0x12823b);},'clear':_0x394b94=>{const _0xd745f2=_0x214c2c(_0x394b94);clearCache(_0xd745f2);},'exists':_0x58d01f=>{const _0x5c8b28=_0x214c2c(_0x58d01f);return cacheExists(_0x5c8b28);},'path':_0x2827be=>{const _0x29e4cc=_0x214c2c(_0x2827be);return getGlobalCachePath(_0x29e4cc);}};}export function clearGlobalRegistry(){registry['clear']();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0xe16f2e,_0x492abe){const _0x57c0ad=a157_0x5ff0,_0x58cede=_0xe16f2e();while(!![]){try{const _0x139c7c=parseInt(_0x57c0ad(0x133))/0x1+parseInt(_0x57c0ad(0x12d))/0x2+-parseInt(_0x57c0ad(0x12a))/0x3+-parseInt(_0x57c0ad(0x132))/0x4*(parseInt(_0x57c0ad(0x134))/0x5)+-parseInt(_0x57c0ad(0x12f))/0x6*(-parseInt(_0x57c0ad(0x137))/0x7)+-parseInt(_0x57c0ad(0x128))/0x8+parseInt(_0x57c0ad(0x129))/0x9;if(_0x139c7c===_0x492abe)break;else _0x58cede['push'](_0x58cede['shift']());}catch(_0x285554){_0x58cede['push'](_0x58cede['shift']());}}}(a157_0x38d3,0x37033));function a157_0x38d3(){const _0x1ee425=['\x27:\x20','utf-8','163040LztAMp','941688WKydgR','357327BZkMlE','code','parse','389032cLJgWK','Invalid\x20JSON\x20string:\x20','88518ouIJCU','INTERNAL','NOT_FOUND','1378796NWJPDR','26793nRCTFa','5xRDReC','ENOENT','Permission\x20denied\x20reading\x20file:\x20','182VaSkOF','INVALID_ARGUMENT','message','EACCES','Failed\x20to\x20load\x20JSON:\x20'];a157_0x38d3=function(){return _0x1ee425;};return a157_0x38d3();}function a157_0x5ff0(_0x31adef,_0x1d6b1a){_0x31adef=_0x31adef-0x122;const _0x38d3cc=a157_0x38d3();let _0x5ff093=_0x38d3cc[_0x31adef];return _0x5ff093;}import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';export async function loadJSON(_0x19babe,_0x4678a8){const _0xc9ef1a=a157_0x5ff0;try{if(_0x4678a8){const _0x688b68=await readFile(_0x19babe,_0xc9ef1a(0x127));try{return JSON['parse'](_0x688b68);}catch(_0x7857bf){throw new SDKError(ErrorCode[_0xc9ef1a(0x122)],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x19babe+_0xc9ef1a(0x126)+(_0x7857bf instanceof Error?_0x7857bf[_0xc9ef1a(0x123)]:String(_0x7857bf)));}}else try{return JSON[_0xc9ef1a(0x12c)](_0x19babe);}catch(_0x5a3b9c){throw new SDKError(ErrorCode[_0xc9ef1a(0x122)],_0xc9ef1a(0x12e)+(_0x5a3b9c instanceof Error?_0x5a3b9c[_0xc9ef1a(0x123)]:String(_0x5a3b9c)));}}catch(_0x78a57c){if(_0x78a57c instanceof SDKError)throw _0x78a57c;if(_0x78a57c instanceof Error&&_0xc9ef1a(0x12b)in _0x78a57c){const _0x12c446=_0x78a57c;if(_0x12c446[_0xc9ef1a(0x12b)]===_0xc9ef1a(0x135))throw new SDKError(ErrorCode[_0xc9ef1a(0x131)],'File\x20not\x20found:\x20'+_0x19babe);else{if(_0x12c446[_0xc9ef1a(0x12b)]===_0xc9ef1a(0x124))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0xc9ef1a(0x136)+_0x19babe);}}throw new SDKError(ErrorCode[_0xc9ef1a(0x130)],_0xc9ef1a(0x125)+(_0x78a57c instanceof Error?_0x78a57c[_0xc9ef1a(0x123)]:String(_0x78a57c)));}}export async function loadJSONFromOptions(_0x2f93ef,_0x5c9c5f){const _0x2379be=a157_0x5ff0;if(_0x2f93ef&&_0x5c9c5f)throw new SDKError(ErrorCode[_0x2379be(0x122)],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x2f93ef)return await loadJSON(_0x2f93ef,![]);if(_0x5c9c5f)return await loadJSON(_0x5c9c5f,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a158_0x3edf73=a158_0x1a33;(function(_0x369c94,_0x507030){const _0x551668=a158_0x1a33,_0x32ff91=_0x369c94();while(!![]){try{const _0x1c7282=parseInt(_0x551668(0x15a))/0x1+-parseInt(_0x551668(0x150))/0x2*(-parseInt(_0x551668(0x14c))/0x3)+parseInt(_0x551668(0x152))/0x4+parseInt(_0x551668(0x14f))/0x5+parseInt(_0x551668(0x157))/0x6+parseInt(_0x551668(0x14a))/0x7*(-parseInt(_0x551668(0x155))/0x8)+parseInt(_0x551668(0x154))/0x9*(-parseInt(_0x551668(0x159))/0xa);if(_0x1c7282===_0x507030)break;else _0x32ff91['push'](_0x32ff91['shift']());}catch(_0x1244f2){_0x32ff91['push'](_0x32ff91['shift']());}}}(a158_0x2c95,0x76c26));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';const LOCAL_CACHE_DIR=a158_0x3edf73(0x156),registry=new Map();function a158_0x1a33(_0x2502c1,_0x4f8c86){_0x2502c1=_0x2502c1-0x149;const _0x2c95a4=a158_0x2c95();let _0x1a3394=_0x2c95a4[_0x2502c1];return _0x1a3394;}export function registerCacheKey(_0x352149,_0x30ce27){const _0x909965=a158_0x3edf73,_0x42d475=registry[_0x909965(0x153)](_0x352149);if(_0x42d475&&_0x42d475!==_0x30ce27)throw new Error('Cache\x20key\x20\x22'+_0x352149+'\x22\x20already\x20registered\x20by\x20\x22'+_0x42d475+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x30ce27+'\x22');registry[_0x909965(0x158)](_0x352149,_0x30ce27);}function a158_0x2c95(){const _0x30d917=['2GKOOrW','clear','1351740bIvetB','get','10701pHkFPv','1328520CMWYNF','.cache/tdx','2456634aEfBZg','set','10030npToih','77213yYgiKE','utf-8','parse','14KAbWIV','cwd','1702251ijYUAD','trim','stringify','3095655uMaiRa'];a158_0x2c95=function(){return _0x30d917;};return a158_0x2c95();}export function getCacheDir(){const _0x2031cd=a158_0x3edf73;return join(process[_0x2031cd(0x14b)](),LOCAL_CACHE_DIR);}export function getCachePath(_0x212eb5){return join(getCacheDir(),_0x212eb5);}function ensureCacheDir(){const _0x4d45a1=getCacheDir();!existsSync(_0x4d45a1)&&mkdirSync(_0x4d45a1,{'recursive':!![]});}function readCacheJson(_0x1722dd){const _0xa7ce16=a158_0x3edf73,_0x59f2df=getCachePath(_0x1722dd);if(!existsSync(_0x59f2df))return undefined;try{const _0x4874d7=readFileSync(_0x59f2df,_0xa7ce16(0x15b));return JSON[_0xa7ce16(0x149)](_0x4874d7);}catch{return undefined;}}function writeCacheJson(_0x28ba19,_0x4aa863){const _0x5709f4=a158_0x3edf73;ensureCacheDir(),writeFileSync(getCachePath(_0x28ba19),JSON[_0x5709f4(0x14e)](_0x4aa863,null,0x2),_0x5709f4(0x15b));}function readCacheText(_0x46850f){const _0x1f5842=a158_0x3edf73,_0xa4d6dd=getCachePath(_0x46850f);if(!existsSync(_0xa4d6dd))return undefined;try{return readFileSync(_0xa4d6dd,_0x1f5842(0x15b));}catch{return undefined;}}function writeCacheText(_0x150d7e,_0x5a74c0){ensureCacheDir(),writeFileSync(getCachePath(_0x150d7e),_0x5a74c0,'utf-8');}function clearCache(_0xe0648f){const _0x3df983=getCachePath(_0xe0648f);if(existsSync(_0x3df983))try{unlinkSync(_0x3df983);}catch{}}function cacheExists(_0x48aeab){return existsSync(getCachePath(_0x48aeab));}export function createCache(_0x5fb236,_0x4e35b7){return registerCacheKey(_0x5fb236,_0x4e35b7),{'read':()=>readCacheJson(_0x5fb236),'write':_0x2bd415=>writeCacheJson(_0x5fb236,_0x2bd415),'clear':()=>clearCache(_0x5fb236),'exists':()=>cacheExists(_0x5fb236),'path':()=>getCachePath(_0x5fb236)};}export function createTextCache(_0x2a4c68,_0x47841a){const _0x41bca8=a158_0x3edf73;return registerCacheKey(_0x2a4c68,_0x47841a),{'read':()=>readCacheText(_0x2a4c68)?.[_0x41bca8(0x14d)]()||undefined,'write':_0x8461b8=>writeCacheText(_0x2a4c68,_0x8461b8),'clear':()=>clearCache(_0x2a4c68),'exists':()=>cacheExists(_0x2a4c68),'path':()=>getCachePath(_0x2a4c68)};}export function clearRegistry(){const _0x3d84ae=a158_0x3edf73;registry[_0x3d84ae(0x151)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a159_0x532057=a159_0x268b;function a159_0x42e6(){const _0x102b70=['gray','77DvOFSP','DEBUG','message','WARN','component','707544wVvcVA','4bRukWB','Chalk','220494eGoBIu','280010kawCfW','colorLevel','cyan','timestamp','2pIHEKR','chalk','771477SiBEFQ','288459rdnfju','127302VFOreK','yellow','16pnTtPn','ERROR','blue',']\x20[','default','colors','TRACE','red','level','green','25yXCyvU','313566RhsPES','dim'];a159_0x42e6=function(){return _0x102b70;};return a159_0x42e6();}function a159_0x268b(_0x2cb3a2,_0x531c1d){_0x2cb3a2=_0x2cb3a2-0x117;const _0x42e616=a159_0x42e6();let _0x268beb=_0x42e616[_0x2cb3a2];return _0x268beb;}(function(_0xc07fd3,_0x403439){const _0x795187=a159_0x268b,_0x7a90fd=_0xc07fd3();while(!![]){try{const _0x429645=-parseInt(_0x795187(0x125))/0x1*(parseInt(_0x795187(0x129))/0x2)+parseInt(_0x795187(0x136))/0x3*(parseInt(_0x795187(0x11e))/0x4)+-parseInt(_0x795187(0x135))/0x5*(parseInt(_0x795187(0x120))/0x6)+-parseInt(_0x795187(0x127))/0x7*(-parseInt(_0x795187(0x12b))/0x8)+parseInt(_0x795187(0x128))/0x9+-parseInt(_0x795187(0x121))/0xa*(-parseInt(_0x795187(0x118))/0xb)+-parseInt(_0x795187(0x11d))/0xc;if(_0x429645===_0x403439)break;else _0x7a90fd['push'](_0x7a90fd['shift']());}catch(_0x4bd523){_0x7a90fd['push'](_0x7a90fd['shift']());}}}(a159_0x42e6,0x2cad1));import a159_0x501988 from'chalk';import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a159_0x501988,ChalkClass=chalkModule[a159_0x532057(0x11f)]||chalkModule[a159_0x532057(0x12f)]?.[a159_0x532057(0x11f)];export class DefaultLogFormatter{[a159_0x532057(0x130)];[a159_0x532057(0x126)];constructor(_0x724607={}){const _0x8d1664=a159_0x532057;this[_0x8d1664(0x130)]=_0x724607[_0x8d1664(0x130)]??![],this[_0x8d1664(0x126)]=_0x724607['colors']&&ChalkClass?new ChalkClass({'level':0x3}):a159_0x501988;}['format'](_0x2c89b7){const _0x82e548=a159_0x532057,_0x4912c5=formatTimestamp(_0x2c89b7[_0x82e548(0x124)]),_0x1002c8=logLevelToString(_0x2c89b7[_0x82e548(0x133)]);if(!this[_0x82e548(0x130)])return _0x4912c5+'\x20['+_0x1002c8+_0x82e548(0x12e)+_0x2c89b7[_0x82e548(0x11c)]+']\x20'+_0x2c89b7[_0x82e548(0x11a)];const _0x10b330=this[_0x82e548(0x126)][_0x82e548(0x137)](_0x4912c5),_0x4967d2=this[_0x82e548(0x122)](_0x1002c8,_0x2c89b7[_0x82e548(0x133)]),_0x542379=this[_0x82e548(0x126)][_0x82e548(0x12d)]('['+_0x2c89b7[_0x82e548(0x11c)]+']');return _0x10b330+'\x20'+_0x4967d2+'\x20'+_0x542379+'\x20'+_0x2c89b7[_0x82e548(0x11a)];}[a159_0x532057(0x122)](_0x544746,_0xff074c){const _0x79971=a159_0x532057;switch(_0xff074c){case LogLevel[_0x79971(0x131)]:return this[_0x79971(0x126)][_0x79971(0x117)]('['+_0x544746+']');case LogLevel[_0x79971(0x119)]:return this[_0x79971(0x126)][_0x79971(0x134)]('['+_0x544746+']');case LogLevel['INFO']:return this[_0x79971(0x126)][_0x79971(0x123)]('['+_0x544746+']');case LogLevel[_0x79971(0x11b)]:return this[_0x79971(0x126)][_0x79971(0x12a)]('['+_0x544746+']');case LogLevel[_0x79971(0x12c)]:return this['chalk'][_0x79971(0x132)]('['+_0x544746+']');default:return'['+_0x544746+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x21354b,_0xf91056){var _0xea7902=a160_0x3ed5,_0x1ac277=_0x21354b();while(!![]){try{var _0x264d5d=-parseInt(_0xea7902(0x152))/0x1+parseInt(_0xea7902(0x155))/0x2+parseInt(_0xea7902(0x14f))/0x3*(parseInt(_0xea7902(0x14e))/0x4)+parseInt(_0xea7902(0x153))/0x5*(-parseInt(_0xea7902(0x154))/0x6)+-parseInt(_0xea7902(0x14d))/0x7*(parseInt(_0xea7902(0x14c))/0x8)+parseInt(_0xea7902(0x150))/0x9+-parseInt(_0xea7902(0x151))/0xa;if(_0x264d5d===_0xf91056)break;else _0x1ac277['push'](_0x1ac277['shift']());}catch(_0x405908){_0x1ac277['push'](_0x1ac277['shift']());}}}(a160_0x5694,0xe3d61));function a160_0x3ed5(_0x3baa12,_0x297f4f){_0x3baa12=_0x3baa12-0x14c;var _0x569456=a160_0x5694();var _0x3ed5ae=_0x569456[_0x3baa12];return _0x3ed5ae;}export{DefaultLogFormatter}from'./default-formatter.js';function a160_0x5694(){var _0x18adce=['880ZgVmez','31782LgOIPX','3651170lPxxuM','16JSBchQ','2607724MtMqxB','108SQCMur','160947bTSnwP','14784633mqqBuf','17629690eFgBwI','543323wGqkTC'];a160_0x5694=function(){return _0x18adce;};return a160_0x5694();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a161_0x5ca68e=a161_0x37b7;(function(_0x5cc3dc,_0x48d862){const _0x23c9f8=a161_0x37b7,_0x2cd093=_0x5cc3dc();while(!![]){try{const _0x6d9551=-parseInt(_0x23c9f8(0x7f))/0x1*(-parseInt(_0x23c9f8(0x76))/0x2)+-parseInt(_0x23c9f8(0x77))/0x3+parseInt(_0x23c9f8(0x83))/0x4+parseInt(_0x23c9f8(0x75))/0x5*(-parseInt(_0x23c9f8(0x85))/0x6)+parseInt(_0x23c9f8(0x79))/0x7*(-parseInt(_0x23c9f8(0x7b))/0x8)+-parseInt(_0x23c9f8(0x80))/0x9*(parseInt(_0x23c9f8(0x86))/0xa)+parseInt(_0x23c9f8(0x88))/0xb;if(_0x6d9551===_0x48d862)break;else _0x2cd093['push'](_0x2cd093['shift']());}catch(_0x3bb36a){_0x2cd093['push'](_0x2cd093['shift']());}}}(a161_0xbddc,0xa6ec1));import{LogLevel as a161_0x21c7ff}from'../types.js';function a161_0x37b7(_0x243d89,_0x3ffa41){_0x243d89=_0x243d89-0x75;const _0xbddc4f=a161_0xbddc();let _0x37b7d1=_0xbddc4f[_0x243d89];return _0x37b7d1;}import{DefaultLogFormatter}from'../formatters/index.js';function a161_0xbddc(){const _0x435dfe=['389352mLZHCK','952197ijCEpf','useStderr','21OVTfJA','minLevel','2035696Ddiswf','WARN','formatter','level','5udxaHv','9mZUJCo','error','colors','1905668OwVupF','handle','1788ukSzdz','4065370uJxiYq','format','18141310dBuGUT','15570wVITBn'];a161_0xbddc=function(){return _0x435dfe;};return a161_0xbddc();}export class ConsoleHandler{[a161_0x5ca68e(0x7a)];[a161_0x5ca68e(0x78)];[a161_0x5ca68e(0x7d)];constructor(_0x5b984d={}){const _0x8043e3=a161_0x5ca68e;this[_0x8043e3(0x7a)]=_0x5b984d[_0x8043e3(0x7a)]??a161_0x21c7ff[_0x8043e3(0x7c)],this[_0x8043e3(0x78)]=_0x5b984d[_0x8043e3(0x78)]??!![],this['formatter']=new DefaultLogFormatter({'colors':_0x5b984d[_0x8043e3(0x82)]??!![]});}[a161_0x5ca68e(0x84)](_0x378248){const _0x1d6c09=a161_0x5ca68e;if(_0x378248[_0x1d6c09(0x7e)]<this['minLevel'])return;const _0x1e3aab=this[_0x1d6c09(0x7d)][_0x1d6c09(0x87)](_0x378248);this[_0x1d6c09(0x78)]&&_0x378248[_0x1d6c09(0x7e)]>=a161_0x21c7ff[_0x1d6c09(0x7c)]?console[_0x1d6c09(0x81)](_0x1e3aab):console['log'](_0x1e3aab);}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a162_0x199f62=a162_0x5b69;(function(_0x598871,_0x1e65c4){const _0x217dbc=a162_0x5b69,_0x3d2fa2=_0x598871();while(!![]){try{const _0x46867d=-parseInt(_0x217dbc(0x1ec))/0x1*(parseInt(_0x217dbc(0x1f7))/0x2)+parseInt(_0x217dbc(0x200))/0x3*(parseInt(_0x217dbc(0x1f1))/0x4)+parseInt(_0x217dbc(0x1eb))/0x5*(-parseInt(_0x217dbc(0x201))/0x6)+-parseInt(_0x217dbc(0x1e6))/0x7*(-parseInt(_0x217dbc(0x1e5))/0x8)+parseInt(_0x217dbc(0x205))/0x9*(parseInt(_0x217dbc(0x1f6))/0xa)+-parseInt(_0x217dbc(0x1e9))/0xb*(parseInt(_0x217dbc(0x1df))/0xc)+-parseInt(_0x217dbc(0x1e3))/0xd*(-parseInt(_0x217dbc(0x1e8))/0xe);if(_0x46867d===_0x1e65c4)break;else _0x3d2fa2['push'](_0x3d2fa2['shift']());}catch(_0x3d583e){_0x3d2fa2['push'](_0x3d2fa2['shift']());}}}(a162_0x1422,0x8a97c));function a162_0x5b69(_0x49077b,_0x493587){_0x49077b=_0x49077b-0x1df;const _0x142291=a162_0x1422();let _0x5b69ce=_0x142291[_0x49077b];return _0x5b69ce;}import{createWriteStream,createReadStream}from'fs';function a162_0x1422(){const _0x445639=['80707NGIjWP','filePath','5lCXmLw','29199wiQfgX','filter','test','Warning:\x20Error\x20writing\x20to\x20','Warning:\x20Failed\x20to\x20compress\x20','2859308WkVYpo','.log','end','split','init','10fLGjrL','44DqNFix','includes','replace','logDir','write','rotateOldLogs','close','logBaseName','logPath','3VJBJjh','2999778nOuZBd','format','rotate','.gz','9879291AGNLQk','message','handle','logStream','1116jBgbei','error','logs','logFileName','13897DgiyNU','toISOString','15136MYEoZp','231LPfDxq','tdx.log','6776ixHktj'];a162_0x1422=function(){return _0x445639;};return a162_0x1422();}import{mkdir,readdir,unlink,stat,rename}from'fs/promises';import{join,dirname,basename}from'path';import{createGzip}from'zlib';import{pipeline}from'stream/promises';import{Logger}from'../logger.js';import{getGlobalCacheDir}from'../../global-cache.js';export class FileHandler{[a162_0x199f62(0x1ff)];[a162_0x199f62(0x1fa)];[a162_0x199f62(0x1e2)];['logBaseName'];['logStream']=null;[a162_0x199f62(0x203)];constructor(_0x8137b2={}){const _0xff9e99=a162_0x199f62;this[_0xff9e99(0x1ff)]=_0x8137b2[_0xff9e99(0x1ea)]??join(getGlobalCacheDir(),_0xff9e99(0x1e1),_0xff9e99(0x1e7)),this[_0xff9e99(0x1fa)]=dirname(this['logPath']),this[_0xff9e99(0x1e2)]=basename(this[_0xff9e99(0x1ff)]),this[_0xff9e99(0x1fe)]=this[_0xff9e99(0x1e2)][_0xff9e99(0x1f9)](/\.log$/,''),this[_0xff9e99(0x203)]=_0x8137b2[_0xff9e99(0x203)]??!![];}async[a162_0x199f62(0x1f5)](){const _0x5359e5=a162_0x199f62;try{await mkdir(this[_0x5359e5(0x1fa)],{'recursive':!![]}),this[_0x5359e5(0x203)]&&await this[_0x5359e5(0x1fc)](),this[_0x5359e5(0x208)]=createWriteStream(this[_0x5359e5(0x1ff)],{'flags':'a'}),this[_0x5359e5(0x208)]['on']('error',_0x5c65f4=>{const _0x353e05=_0x5359e5;console[_0x353e05(0x1e0)](_0x353e05(0x1ef)+this[_0x353e05(0x1e2)]+':',_0x5c65f4[_0x353e05(0x206)]);});}catch(_0x2d3142){console['error']('Warning:\x20Failed\x20to\x20initialize\x20log\x20file:',_0x2d3142);}}[a162_0x199f62(0x207)](_0x417531){const _0x492b5c=a162_0x199f62;if(!this['logStream'])return;const _0x4678cd=Logger[_0x492b5c(0x202)](_0x417531);this[_0x492b5c(0x208)][_0x492b5c(0x1fb)](_0x4678cd+'\x0a');}async[a162_0x199f62(0x1fd)](){return new Promise(_0x11371d=>{const _0x423779=a162_0x5b69;this['logStream']?this['logStream'][_0x423779(0x1f3)](()=>{const _0x543194=_0x423779;this[_0x543194(0x208)]=null,_0x11371d();}):_0x11371d();});}['getLogPath'](){const _0x431c66=a162_0x199f62;return this[_0x431c66(0x1ff)];}async[a162_0x199f62(0x1fc)](){const _0x167e76=a162_0x199f62;try{const _0x2b0c7f=await readdir(this[_0x167e76(0x1fa)]),_0x3476fa=new Date()[_0x167e76(0x1e4)]()[_0x167e76(0x1f4)]('T')[0x0];if(_0x2b0c7f[_0x167e76(0x1f8)](this[_0x167e76(0x1e2)])){const _0x1eaa0b=join(this[_0x167e76(0x1fa)],this[_0x167e76(0x1e2)]),_0xbbea8a=await stat(_0x1eaa0b),_0x10c69a=new Date(_0xbbea8a['mtime'])['toISOString']()['split']('T')[0x0];if(_0x10c69a<_0x3476fa){const _0x426520=join(this[_0x167e76(0x1fa)],this[_0x167e76(0x1fe)]+'-'+_0x10c69a+_0x167e76(0x1f2));await rename(_0x1eaa0b,_0x426520);}}const _0x3c606f=await readdir(this['logDir']),_0x39af61=this[_0x167e76(0x1fe)][_0x167e76(0x1f9)](/[.*+?^${}()|[\]\\]/g,'\x5c$&'),_0x3497a7=new RegExp('^'+_0x39af61+'-(\x5cd{4}-\x5cd{2}-\x5cd{2})\x5c.log$'),_0x33a84b=_0x3c606f[_0x167e76(0x1ed)](_0x2d9749=>_0x3497a7[_0x167e76(0x1ee)](_0x2d9749));for(const _0x32c5ea of _0x33a84b){const _0x38df1b=join(this[_0x167e76(0x1fa)],_0x32c5ea),_0x429085=join(this['logDir'],_0x32c5ea+_0x167e76(0x204));try{await pipeline(createReadStream(_0x38df1b),createGzip(),createWriteStream(_0x429085)),await unlink(_0x38df1b);}catch(_0x3a2e69){console[_0x167e76(0x1e0)](_0x167e76(0x1f0)+_0x32c5ea+':',_0x3a2e69);}}}catch{}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a163_0x2ef8(_0xd467cb,_0x583267){_0xd467cb=_0xd467cb-0x1b5;var _0x43ab26=a163_0x43ab();var _0x2ef811=_0x43ab26[_0xd467cb];return _0x2ef811;}(function(_0x1347f5,_0x415264){var _0x4d20b1=a163_0x2ef8,_0x404650=_0x1347f5();while(!![]){try{var _0x577db9=-parseInt(_0x4d20b1(0x1ba))/0x1+parseInt(_0x4d20b1(0x1b6))/0x2+parseInt(_0x4d20b1(0x1be))/0x3*(parseInt(_0x4d20b1(0x1bd))/0x4)+parseInt(_0x4d20b1(0x1b8))/0x5*(-parseInt(_0x4d20b1(0x1b7))/0x6)+-parseInt(_0x4d20b1(0x1bc))/0x7+-parseInt(_0x4d20b1(0x1bb))/0x8*(-parseInt(_0x4d20b1(0x1b9))/0x9)+parseInt(_0x4d20b1(0x1b5))/0xa;if(_0x577db9===_0x415264)break;else _0x404650['push'](_0x404650['shift']());}catch(_0x4dab9b){_0x404650['push'](_0x404650['shift']());}}}(a163_0x43ab,0xc3637));export{FileHandler}from'./file-handler.js';function a163_0x43ab(){var _0x723584=['12333810ZpbvrO','851472AsbLxK','846iQyFQS','44980kiccOT','27lodqSs','126013KvFvzi','1329304RIqsEK','9879954pYxonT','90536cljBeq','192qJFLAN'];a163_0x43ab=function(){return _0x723584;};return a163_0x43ab();}export{ConsoleHandler}from'./console-handler.js';export{NullHandler}from'./null-handler.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
function a164_0x94a3(_0x3ea3e5,_0x5e3471){_0x3ea3e5=_0x3ea3e5-0x12b;var _0x5b8795=a164_0x5b87();var _0x94a3f=_0x5b8795[_0x3ea3e5];return _0x94a3f;}(function(_0x285e91,_0x2c6f09){var _0x5bb100=a164_0x94a3,_0x261133=_0x285e91();while(!![]){try{var _0x3e2a70=-parseInt(_0x5bb100(0x12d))/0x1+parseInt(_0x5bb100(0x12b))/0x2+-parseInt(_0x5bb100(0x12c))/0x3*(parseInt(_0x5bb100(0x131))/0x4)+parseInt(_0x5bb100(0x133))/0x5*(parseInt(_0x5bb100(0x12e))/0x6)+parseInt(_0x5bb100(0x130))/0x7*(parseInt(_0x5bb100(0x132))/0x8)+-parseInt(_0x5bb100(0x134))/0x9+parseInt(_0x5bb100(0x12f))/0xa;if(_0x3e2a70===_0x2c6f09)break;else _0x261133['push'](_0x261133['shift']());}catch(_0x364d06){_0x261133['push'](_0x261133['shift']());}}}(a164_0x5b87,0x5bf46));export class NullHandler{['handle'](_0x59e250){}}function a164_0x5b87(){var _0x8d76a8=['4723330WzMcZN','42jMgvIJ','1941976ExaZMD','575016fDyEGU','13705VCZtdV','2107278lgFrwD','100108MYUwaq','3RgLfAv','128726cwTfBI','594nSryrN'];a164_0x5b87=function(){return _0x8d76a8;};return a164_0x5b87();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a165_0x110f(){var _0xa1dd71=['1095084fUxYXC','1125320ZPvolR','3635xDyzNw','5292372YpaqHF','6HXsXUH','44260JYEBbU','8IEYWcj','118hstetF','2760865ffysGj','55omYnEY','16220BOADpI','9AmvZKN'];a165_0x110f=function(){return _0xa1dd71;};return a165_0x110f();}(function(_0x75504f,_0x42aa02){var _0x25697c=a165_0x2e09,_0x8087ce=_0x75504f();while(!![]){try{var _0x21da77=-parseInt(_0x25697c(0x8d))/0x1*(-parseInt(_0x25697c(0x92))/0x2)+parseInt(_0x25697c(0x8a))/0x3*(-parseInt(_0x25697c(0x90))/0x4)+parseInt(_0x25697c(0x93))/0x5*(-parseInt(_0x25697c(0x8f))/0x6)+-parseInt(_0x25697c(0x8c))/0x7*(-parseInt(_0x25697c(0x91))/0x8)+parseInt(_0x25697c(0x8b))/0x9+-parseInt(_0x25697c(0x95))/0xa*(parseInt(_0x25697c(0x94))/0xb)+parseInt(_0x25697c(0x8e))/0xc;if(_0x21da77===_0x42aa02)break;else _0x8087ce['push'](_0x8087ce['shift']());}catch(_0x30ef6f){_0x8087ce['push'](_0x8087ce['shift']());}}}(a165_0x110f,0x54186));export{Logger}from'./logger.js';function a165_0x2e09(_0x2ce896,_0x1b0380){_0x2ce896=_0x2ce896-0x8a;var _0x110f12=a165_0x110f();var _0x2e092f=_0x110f12[_0x2ce896];return _0x2e092f;}export{LogLevel,parseLogLevel,logLevelToString}from'./types.js';export{FileHandler,ConsoleHandler,NullHandler}from'./handlers/index.js';export{DefaultLogFormatter}from'./formatters/index.js';
|