@treasuredata/tdx 2026.3.55 → 2026.4.1
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/cas-command.js +1 -1
- package/dist/commands/cas-segment-command.js +1 -1
- package/dist/commands/chat-command.js +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-statusline-command.js +1 -1
- package/dist/commands/claude-usage-command.js +1 -1
- package/dist/commands/command.js +1 -1
- package/dist/commands/connection-command.js +1 -1
- package/dist/commands/databases.js +1 -1
- package/dist/commands/delivery-command.js +1 -1
- package/dist/commands/describe.js +1 -1
- package/dist/commands/engage-campaign-pull-command.js +1 -1
- package/dist/commands/engage-campaign-push-command.js +1 -1
- package/dist/commands/engage-campaign-validate-command.js +1 -1
- package/dist/commands/engage-command.js +1 -1
- package/dist/commands/engage-template-pull-command.js +1 -1
- package/dist/commands/engage-template-push-command.js +1 -1
- package/dist/commands/engage-template-validate-command.js +1 -1
- package/dist/commands/job-command.js +1 -1
- package/dist/commands/journey-command.js +1 -1
- package/dist/commands/journey-validate-command.js +1 -1
- package/dist/commands/llm-command.js +1 -1
- package/dist/commands/mcp-command.js +1 -1
- package/dist/commands/parent-segment-command.js +1 -1
- package/dist/commands/policy-command.js +1 -1
- package/dist/commands/profile-command.js +1 -1
- package/dist/commands/profiles-command.js +1 -1
- package/dist/commands/query-command.js +1 -1
- package/dist/commands/schedule-command.js +1 -1
- package/dist/commands/segment-command.js +1 -1
- package/dist/commands/segment-create-command.js +1 -1
- package/dist/commands/segment-fields-command.js +1 -1
- package/dist/commands/segment-pull-command.js +1 -1
- package/dist/commands/segment-push-command.js +1 -1
- package/dist/commands/segment-update-command.js +1 -1
- package/dist/commands/segment-use-command.js +1 -1
- package/dist/commands/segment-validate-command.js +1 -1
- package/dist/commands/segments.js +1 -1
- package/dist/commands/show.js +1 -1
- package/dist/commands/status-command.js +1 -1
- package/dist/commands/tables.js +1 -1
- package/dist/commands/unset-command.js +1 -1
- package/dist/commands/upgrade-command.js +1 -1
- package/dist/commands/use-command.js +1 -1
- package/dist/commands/user-command.js +1 -1
- package/dist/commands/work-command.js +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/core/auth.js +1 -1
- package/dist/core/command-output.js +1 -1
- package/dist/core/config.js +1 -1
- package/dist/core/connection-cache.js +1 -1
- package/dist/core/constants.js +1 -1
- package/dist/core/credential-cache.js +1 -1
- package/dist/core/global-context.js +1 -1
- package/dist/core/keychain.js +1 -1
- package/dist/core/oauth-keychain.js +1 -1
- package/dist/core/oauth.js +1 -1
- package/dist/core/profile.js +1 -1
- package/dist/core/project-config.js +1 -1
- package/dist/core/session.js +1 -1
- package/dist/core/user-cache.js +1 -1
- package/dist/core/version.js +1 -1
- package/dist/index.js +1 -1
- package/dist/mcp/server.js +1 -1
- package/dist/mcp/tools/index.js +1 -1
- package/dist/mcp/tools/tdx-run.js +1 -1
- package/dist/mcp/tools/tdx-search.js +1 -1
- package/dist/mcp/tools/work-create-item.js +1 -1
- package/dist/mcp/utils.js +1 -1
- package/dist/proxy/claude-usage-tracker.js +1 -1
- package/dist/proxy/passthrough-server.js +1 -1
- package/dist/proxy/sse-usage-parser.js +1 -1
- package/dist/sdk/agent/agent-config.js +1 -1
- package/dist/sdk/agent/agent-ref-parser.js +1 -1
- package/dist/sdk/agent/agent-yaml.js +1 -1
- package/dist/sdk/agent/test/evaluator.js +1 -1
- package/dist/sdk/agent/test/executor.js +1 -1
- package/dist/sdk/agent/test/index.js +1 -1
- package/dist/sdk/agent/test/output.js +1 -1
- package/dist/sdk/agent/test/parser.js +1 -1
- package/dist/sdk/agent/tool-target-registry.js +1 -1
- package/dist/sdk/api.js +1 -1
- package/dist/sdk/cas/cas-api-client.js +1 -1
- package/dist/sdk/cas/cas-audience-yaml.js +1 -1
- package/dist/sdk/cas/cas-segment-yaml.js +1 -1
- package/dist/sdk/cas/index.js +1 -1
- package/dist/sdk/cas/pull-workflow.js +1 -1
- package/dist/sdk/cas/push-workflow.js +1 -1
- package/dist/sdk/client/cdp-api-client.js +1 -1
- package/dist/sdk/client/delivery-api-client.js +1 -1
- package/dist/sdk/client/endpoints.js +1 -1
- package/dist/sdk/client/engage-api-client.js +1 -1
- package/dist/sdk/client/http-client.js +1 -1
- package/dist/sdk/client/llm-api-client.js +1 -1
- package/dist/sdk/client/oauth-refresh.js +1 -1
- package/dist/sdk/client/rate-limiter.js +1 -1
- package/dist/sdk/client/td-api-client.js +1 -1
- package/dist/sdk/client/trino-api-client.js +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/connection-validator.js +1 -1
- package/dist/sdk/connection.js +1 -1
- package/dist/sdk/delivery.js +1 -1
- package/dist/sdk/engage/campaign-pull.js +1 -1
- package/dist/sdk/engage/campaign-push.js +1 -1
- package/dist/sdk/engage/campaign-validator.js +1 -1
- package/dist/sdk/engage/campaign-yaml.js +1 -1
- package/dist/sdk/engage/template-pull.js +1 -1
- package/dist/sdk/engage/template-push.js +1 -1
- package/dist/sdk/engage/template-validator.js +1 -1
- package/dist/sdk/engage/template-yaml.js +1 -1
- package/dist/sdk/engage/types/campaign-def.js +1 -1
- package/dist/sdk/engage/types/campaign-schema.js +1 -1
- package/dist/sdk/engage/types/template-schema.js +1 -1
- package/dist/sdk/engage.js +1 -1
- package/dist/sdk/errors.js +1 -1
- package/dist/sdk/index.js +1 -1
- package/dist/sdk/io/index.js +1 -1
- package/dist/sdk/io/node-filesystem.js +1 -1
- package/dist/sdk/job.js +1 -1
- package/dist/sdk/journey.js +1 -1
- package/dist/sdk/llm/chat-cache.js +1 -1
- package/dist/sdk/llm/index.js +1 -1
- package/dist/sdk/llm/llm-backup-utils.js +1 -1
- package/dist/sdk/llm/model-factors.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/index.js +1 -1
- package/dist/sdk/query/sql-parser.js +1 -1
- package/dist/sdk/realtime.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.d.ts.map +1 -1
- package/dist/sdk/segment/file-discovery.js +1 -1
- package/dist/sdk/segment/file-discovery.js.map +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.d.ts.map +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/push-workflow.js.map +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/index.js +1 -1
- package/dist/sdk/types/progress.js +1 -1
- package/dist/sdk/types/workspace.js +1 -1
- package/dist/sdk/user.js +1 -1
- package/dist/sdk/util/format-detector.js +1 -1
- package/dist/sdk/util/formatters.js +1 -1
- package/dist/sdk/util/index.js +1 -1
- package/dist/sdk/util/paginate.js +1 -1
- package/dist/sdk/util/tree-formatter.js +1 -1
- package/dist/sdk/workflow/archive-validation.js +1 -1
- package/dist/sdk/workflow/clone-workflow.js +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/tdx-config.js +1 -1
- package/dist/sdk/workflow/workflow-utils.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/index.d.ts.map +1 -1
- package/dist/sdk/workspace/index.js +1 -1
- package/dist/sdk/workspace/index.js.map +1 -1
- package/dist/sdk/workspace/templates.js +1 -1
- package/dist/sdk/workspace/weekly.js +1 -1
- package/dist/sdk/workspace/wikilinks.js +1 -1
- package/dist/test-utils/command-runner.js +1 -1
- package/dist/test-utils/factories.js +1 -1
- package/dist/test-utils/fixtures.js +1 -1
- package/dist/test-utils/http-mock.js +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/utils/async.js +1 -1
- package/dist/utils/colors.js +1 -1
- package/dist/utils/diff.js +1 -1
- package/dist/utils/file-permissions.js +1 -1
- package/dist/utils/file-reader.js +1 -1
- package/dist/utils/github-releases.js +1 -1
- package/dist/utils/global-cache.js +1 -1
- package/dist/utils/json-loader.js +1 -1
- package/dist/utils/local-cache.js +1 -1
- package/dist/utils/logger/formatters/default-formatter.js +1 -1
- package/dist/utils/logger/formatters/index.js +1 -1
- package/dist/utils/logger/handlers/console-handler.js +1 -1
- package/dist/utils/logger/handlers/file-handler.js +1 -1
- package/dist/utils/logger/handlers/index.js +1 -1
- package/dist/utils/logger/handlers/null-handler.js +1 -1
- package/dist/utils/logger/index.js +1 -1
- package/dist/utils/logger/logger.js +1 -1
- package/dist/utils/logger/types.js +1 -1
- package/dist/utils/option-validation.js +1 -1
- package/dist/utils/process.js +1 -1
- package/dist/utils/process.js.map +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(
|
|
1
|
+
(function(_0x1df2b5,_0x251660){const _0x53b8d7=a204_0x5bdb,_0x439a1a=_0x1df2b5();while(!![]){try{const _0xf3777e=-parseInt(_0x53b8d7(0x19f))/0x1*(-parseInt(_0x53b8d7(0x1ac))/0x2)+parseInt(_0x53b8d7(0x19a))/0x3+parseInt(_0x53b8d7(0x1a8))/0x4*(-parseInt(_0x53b8d7(0x1a7))/0x5)+-parseInt(_0x53b8d7(0x1b6))/0x6*(-parseInt(_0x53b8d7(0x1ab))/0x7)+parseInt(_0x53b8d7(0x1a1))/0x8*(parseInt(_0x53b8d7(0x19d))/0x9)+-parseInt(_0x53b8d7(0x1ad))/0xa*(parseInt(_0x53b8d7(0x19b))/0xb)+parseInt(_0x53b8d7(0x1af))/0xc*(-parseInt(_0x53b8d7(0x1a3))/0xd);if(_0xf3777e===_0x251660)break;else _0x439a1a['push'](_0x439a1a['shift']());}catch(_0x4a8678){_0x439a1a['push'](_0x439a1a['shift']());}}}(a204_0x204c,0xc1f24));import{vi}from'vitest';import{join}from'path';import{Logger,LogLevel,FileHandler}from'../utils/logger/index.js';import{getGlobalCacheDir}from'../utils/global-cache.js';export function createTestSDKContext(_0x57cbc0){return{'site':'us01','apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel['ERROR'],..._0x57cbc0};}export function createTestGlobalOptions(_0x19948c){const _0x4a2dfc=a204_0x5bdb;return{'site':_0x4a2dfc(0x19e),'format':_0x4a2dfc(0x19c),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x4a2dfc(0x1a9),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x4a2dfc(0x1a4)],..._0x19948c};}function a204_0x5bdb(_0x56413d,_0x1a5a47){_0x56413d=_0x56413d-0x199;const _0x204c0d=a204_0x204c();let _0x5bdbd2=_0x204c0d[_0x56413d];return _0x5bdbd2;}export async function initTestLogger(){const _0x110357=a204_0x5bdb;Logger[_0x110357(0x1a5)]();const _0xa35781=join(getGlobalCacheDir(),'logs',_0x110357(0x1ae));await Logger[_0x110357(0x1a0)]({'defaultLevel':LogLevel['DEBUG'],'handlers':[new FileHandler({'filePath':_0xa35781,'rotate':![]})]});}export function resetTestLogger(){const _0x1b59a7=a204_0x5bdb;Logger[_0x1b59a7(0x1a5)]();}export function createMockTDX(_0x251f64){const _0x22d5c1=a204_0x5bdb;return{'context':{'site':_0x22d5c1(0x19e),'apiKey':_0x22d5c1(0x1b7),'logLevel':LogLevel[_0x22d5c1(0x1a4)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x251f64?.[_0x22d5c1(0x1b2)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x251f64?.[_0x22d5c1(0x1b8)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x251f64?.[_0x22d5c1(0x1b3)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x251f64?.['workflow']},'user':{'show':vi['fn'](),..._0x251f64?.[_0x22d5c1(0x1a2)]},'api':{'request':vi['fn'](),..._0x251f64?.[_0x22d5c1(0x1b4)]},..._0x251f64};}function a204_0x204c(){const _0x3cecaf=['table','171hRQfYP','us01','1380507OQSwCY','init','633928FhDHEM','user','13olVabU','ERROR','reset','map','3100yncbFL','1964YUlXRu','30000','log','2219eCfNim','2eVoSWu','230gEADIR','tdx-test.log','31425492cwRmuz','warn','tdx','query','journey','api','push','7500clVDVS','test-api-key','segment','error','join','3630585jueQyh','370612QTckcL'];a204_0x204c=function(){return _0x3cecaf;};return a204_0x204c();}export function createTestCommandContext(_0x3aba65){const _0x12424a=a204_0x5bdb,_0x504ee4=createTestGlobalOptions(_0x3aba65?.['options']),_0x3a239f=_0x3aba65?.[_0x12424a(0x1b1)]??createMockTDX();return{'options':_0x504ee4,'args':_0x3aba65?.['args']??[],'tdx':_0x3a239f};}export function captureConsole(){const _0x3eae1c=a204_0x5bdb,_0x17a114=[],_0x4183d9=[],_0x48c361=console[_0x3eae1c(0x1aa)],_0x4b06f2=console[_0x3eae1c(0x1b9)],_0x344451=console['warn'];return console[_0x3eae1c(0x1aa)]=(..._0x3ecb78)=>{const _0x12504f=_0x3eae1c;_0x17a114['push'](_0x3ecb78[_0x12504f(0x1a6)](String)[_0x12504f(0x199)]('\x20'));},console[_0x3eae1c(0x1b9)]=(..._0x337496)=>{const _0x506cee=_0x3eae1c;_0x4183d9[_0x506cee(0x1b5)](_0x337496[_0x506cee(0x1a6)](String)[_0x506cee(0x199)]('\x20'));},console['warn']=(..._0x3122d8)=>{const _0x3430b5=_0x3eae1c;_0x4183d9[_0x3430b5(0x1b5)](_0x3122d8[_0x3430b5(0x1a6)](String)['join']('\x20'));},{'stdout':_0x17a114,'stderr':_0x4183d9,'restore':()=>{const _0xf10d28=_0x3eae1c;console['log']=_0x48c361,console['error']=_0x4b06f2,console[_0xf10d28(0x1b0)]=_0x344451;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a205_0x4ef7e3=a205_0x3ce9;(function(_0x1cc056,_0x328b24){const _0x3abf48=a205_0x3ce9,_0x119af7=_0x1cc056();while(!![]){try{const _0x32eb59=-parseInt(_0x3abf48(0xe1))/0x1+-parseInt(_0x3abf48(0x132))/0x2+parseInt(_0x3abf48(0xdb))/0x3*(parseInt(_0x3abf48(0x107))/0x4)+-parseInt(_0x3abf48(0xfd))/0x5+parseInt(_0x3abf48(0x11f))/0x6*(parseInt(_0x3abf48(0xe0))/0x7)+-parseInt(_0x3abf48(0x10d))/0x8+parseInt(_0x3abf48(0x138))/0x9*(parseInt(_0x3abf48(0x13b))/0xa);if(_0x32eb59===_0x328b24)break;else _0x119af7['push'](_0x119af7['shift']());}catch(_0x596f87){_0x119af7['push'](_0x119af7['shift']());}}}(a205_0x5697,0xd31d7));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x143),'permission':a205_0x4ef7e3(0x11c)},'withTables':{'name':a205_0x4ef7e3(0xf8),'count':0x64,'created_at':a205_0x4ef7e3(0x111),'updated_at':a205_0x4ef7e3(0x10a),'permission':a205_0x4ef7e3(0xfb)}},'table':{'basic':{'id':0x3039,'name':a205_0x4ef7e3(0xeb),'type':a205_0x4ef7e3(0x10f),'schema':JSON[a205_0x4ef7e3(0x116)]([['id',a205_0x4ef7e3(0x13f)],[a205_0x4ef7e3(0x10c),a205_0x4ef7e3(0x12c)],[a205_0x4ef7e3(0x119),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a205_0x4ef7e3(0x143),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':a205_0x4ef7e3(0x12e),'type':a205_0x4ef7e3(0x10f),'schema':JSON['stringify']([[a205_0x4ef7e3(0x102),a205_0x4ef7e3(0x13f)],[a205_0x4ef7e3(0x10c),a205_0x4ef7e3(0x12c)],[a205_0x4ef7e3(0x110),'string'],[a205_0x4ef7e3(0xed),a205_0x4ef7e3(0x13f)],[a205_0x4ef7e3(0x118),a205_0x4ef7e3(0x148)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a205_0x4ef7e3(0xe9),'name':a205_0x4ef7e3(0x117),'description':a205_0x4ef7e3(0x10b),'status':a205_0x4ef7e3(0x106),'master_table':{'database':'cdp_db','table':a205_0x4ef7e3(0x146)},'attributes':[{'name':'customer_id','type':a205_0x4ef7e3(0x13f),'key':!![]},{'name':a205_0x4ef7e3(0xe3),'type':'string'},{'name':'created_at','type':a205_0x4ef7e3(0xe2)}],'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a)},'withBehaviors':{'id':a205_0x4ef7e3(0x122),'name':a205_0x4ef7e3(0xe5),'description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a205_0x4ef7e3(0x106),'master_table':{'database':a205_0x4ef7e3(0x121),'table':a205_0x4ef7e3(0xe4)},'behaviors':[{'name':a205_0x4ef7e3(0x10e),'table':{'database':'events_db','table':'purchases'},'join_key':a205_0x4ef7e3(0x134)},{'name':'page_views','table':{'database':a205_0x4ef7e3(0x115),'table':a205_0x4ef7e3(0xdc)},'join_key':'customer_id'}],'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a)}},'segment':{'basic':{'id':a205_0x4ef7e3(0x103),'name':a205_0x4ef7e3(0xf9),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a205_0x4ef7e3(0xe9),'status':a205_0x4ef7e3(0x106),'rules':[{'type':a205_0x4ef7e3(0xf4),'field':a205_0x4ef7e3(0xf1),'operator':'TimeWithinPast','value':a205_0x4ef7e3(0xf0)}],'count':0x1388,'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a)},'withMultipleRules':{'id':a205_0x4ef7e3(0xe6),'name':a205_0x4ef7e3(0x123),'description':a205_0x4ef7e3(0x114),'parent_segment_id':a205_0x4ef7e3(0xe9),'status':'active','rules':[{'type':a205_0x4ef7e3(0xf4),'field':a205_0x4ef7e3(0xf1),'operator':a205_0x4ef7e3(0xf7),'value':a205_0x4ef7e3(0xf0)},{'type':a205_0x4ef7e3(0xf4),'field':a205_0x4ef7e3(0x13e),'operator':a205_0x4ef7e3(0x100),'value':0x3e8}],'count':0x5dc,'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a)}},'journey':{'basic':{'id':a205_0x4ef7e3(0xdf),'name':'Welcome\x20Journey','description':a205_0x4ef7e3(0x136),'status':a205_0x4ef7e3(0x147),'version':0x1,'steps':[{'id':a205_0x4ef7e3(0x13c),'type':'wait','duration':'1d'},{'id':a205_0x4ef7e3(0x109),'type':a205_0x4ef7e3(0x105),'activation_id':a205_0x4ef7e3(0x145)}],'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a)},'withDecision':{'id':'j-def456','name':a205_0x4ef7e3(0x108),'description':'Journey\x20with\x20decision\x20point','status':'active','version':0x2,'steps':[{'id':a205_0x4ef7e3(0x13c),'type':a205_0x4ef7e3(0x141),'segment_id':a205_0x4ef7e3(0x103),'yes_path':a205_0x4ef7e3(0x109),'no_path':a205_0x4ef7e3(0x137)},{'id':'step-2','type':'activation','activation_id':'act-email'},{'id':a205_0x4ef7e3(0x137),'type':'end'}],'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a205_0x4ef7e3(0x101)},{'name':a205_0x4ef7e3(0x119),'type':a205_0x4ef7e3(0x101)},{'name':'count','type':a205_0x4ef7e3(0x131)}],'data':[[a205_0x4ef7e3(0x12f),a205_0x4ef7e3(0xfa),0x64],['user-2',a205_0x4ef7e3(0x113),0xc8],[a205_0x4ef7e3(0xee),a205_0x4ef7e3(0x124),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a205_0x4ef7e3(0x119),'type':a205_0x4ef7e3(0x101)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a205_0x4ef7e3(0x12d),'created_at':a205_0x4ef7e3(0x143),'updated_at':a205_0x4ef7e3(0x11a),'administrator':![]},'admin':{'id':0x1,'name':a205_0x4ef7e3(0x128),'email':'admin@example.com','created_at':a205_0x4ef7e3(0x12b),'updated_at':a205_0x4ef7e3(0x11a),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a205_0x4ef7e3(0xf3),'database':a205_0x4ef7e3(0x130),'status':a205_0x4ef7e3(0x144),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a205_0x4ef7e3(0xdd),'end_at':a205_0x4ef7e3(0x104),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a205_0x4ef7e3(0xf3),'database':a205_0x4ef7e3(0x130),'status':a205_0x4ef7e3(0xe7),'query':a205_0x4ef7e3(0xea),'start_at':a205_0x4ef7e3(0x140),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a205_0x4ef7e3(0xf3),'database':a205_0x4ef7e3(0x130),'status':a205_0x4ef7e3(0x127),'query':a205_0x4ef7e3(0xff),'start_at':a205_0x4ef7e3(0xf5),'end_at':a205_0x4ef7e3(0x120),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a205_0x4ef7e3(0x13a),'name':a205_0x4ef7e3(0x133),'project':a205_0x4ef7e3(0x11d),'revision':a205_0x4ef7e3(0xda),'timezone':a205_0x4ef7e3(0xf2),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a205_0x4ef7e3(0xde),'name':a205_0x4ef7e3(0x13d),'project':a205_0x4ef7e3(0xec),'revision':a205_0x4ef7e3(0xfe),'timezone':a205_0x4ef7e3(0x135),'schedule':{'cron':a205_0x4ef7e3(0x112)},'last_session':{'id':a205_0x4ef7e3(0x126),'status':'success','started_at':a205_0x4ef7e3(0x125),'finished_at':'2024-01-15T09:05:00Z'}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':'Invalid\x20API\x20key','severity':a205_0x4ef7e3(0x127),'status_code':0x191}},'notFound':{'errors':{'error':a205_0x4ef7e3(0x129),'message':a205_0x4ef7e3(0xf6),'severity':a205_0x4ef7e3(0x127),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a205_0x4ef7e3(0x11e),'title':'Forbidden','status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a205_0x4ef7e3(0x149)}}};export function createDatabase(_0x2f5f5f){const _0x52dbc0=a205_0x4ef7e3;return{...fixtures[_0x52dbc0(0xef)][_0x52dbc0(0x142)],..._0x2f5f5f};}export function createTable(_0x46c40c){const _0x1643d3=a205_0x4ef7e3;return{...fixtures['table'][_0x1643d3(0x142)],..._0x46c40c};}function a205_0x3ce9(_0x9d8470,_0x15bae7){_0x9d8470=_0x9d8470-0xda;const _0x5697ed=a205_0x5697();let _0x3ce9b5=_0x5697ed[_0x9d8470];return _0x3ce9b5;}export function createParentSegment(_0x599f80){const _0xeb8636=a205_0x4ef7e3;return{...fixtures[_0xeb8636(0xfc)][_0xeb8636(0x142)],..._0x599f80};}export function createSegment(_0x573dd8){const _0x57a2bd=a205_0x4ef7e3;return{...fixtures[_0x57a2bd(0x12a)][_0x57a2bd(0x142)],..._0x573dd8};}export function createJourney(_0x312427){return{...fixtures['journey']['basic'],..._0x312427};}export function createQueryResult(_0x234e83){const _0xc25274=a205_0x4ef7e3;return{...fixtures['queryResult'][_0xc25274(0x142)],..._0x234e83};}export function createUser(_0x2bbb68){const _0x15f9c5=a205_0x4ef7e3;return{...fixtures[_0x15f9c5(0x139)]['basic'],..._0x2bbb68};}export function createJob(_0x11ef02){const _0x36f5b1=a205_0x4ef7e3;return{...fixtures[_0x36f5b1(0xe8)]['completed'],..._0x11ef02};}function a205_0x5697(){const _0x21655e=['Purchase\x20Reminder','step-2','2024-01-15T08:00:00Z','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','time','12876656DZjzCa','purchases','log','user_id','2023-06-15T10:30:00Z','0\x20*\x20*\x20*\x20*','Bob','Active\x20users\x20with\x20high\x20lifetime\x20value','events_db','stringify','Test\x20Parent\x20Segment','properties','name','2024-01-15T00:00:00Z','workflow','administrator','data_pipeline','https://api.treasuredata.com/errors/forbidden','711636daQqIu','2024-01-15T10:10:01Z','cdp_db','ps-789012','High\x20Value\x20Active\x20Users','Charlie','2024-01-15T09:00:00Z','sess-111','error','Admin\x20User','Resource\x20not\x20found','segment','2023-01-01T00:00:00Z','long','test@example.com','events','user-1','test_db','bigint','2503730ZZNwAD','daily_etl','customer_id','America/Los_Angeles','Onboarding\x20journey\x20for\x20new\x20users','step-3','43448121wTWsOA','user','wf-12345','10TrYJhL','step-1','hourly_sync','lifetime_value','string','2024-01-15T10:05:00Z','decision_point','basic','2024-01-01T00:00:00Z','success','act-123','unified_customers','draft','map<string,string>','/v3/database/list','abc123','1851909SnjHHu','pageviews','2024-01-15T10:00:00Z','wf-67890','j-abc123','7Apzpkz','354276QmaZAa','timestamp','email','customers','Customers\x20with\x20Behaviors','cs-111222','running','job','ps-123456','SELECT\x20COUNT(*)\x20FROM\x20events','users','data_sync','event_type','user-3','database','30d','last_login','UTC','presto','attribute','2024-01-15T10:10:00Z','The\x20requested\x20resource\x20does\x20not\x20exist','TimeWithinPast','production_db','Active\x20Users','Alice','full_access','parentSegment','7415140wFnTqc','def456','SELECT\x20*\x20FROM\x20nonexistent_table','Greater','varchar','event_id','cs-456789','2024-01-15T10:00:05Z','activation','active','4aTTBbq'];a205_0x5697=function(){return _0x21655e;};return a205_0x5697();}export function createWorkflow(_0x1608d5){const _0xbc9251=a205_0x4ef7e3;return{...fixtures[_0xbc9251(0x11b)][_0xbc9251(0x142)],..._0x1608d5};}
|
|
1
|
+
const a205_0x1a1b94=a205_0x23ed;(function(_0x328780,_0x376aad){const _0x5003a5=a205_0x23ed,_0x5d0477=_0x328780();while(!![]){try{const _0xd60d56=parseInt(_0x5003a5(0x110))/0x1*(-parseInt(_0x5003a5(0x13d))/0x2)+-parseInt(_0x5003a5(0xe0))/0x3*(-parseInt(_0x5003a5(0xe4))/0x4)+-parseInt(_0x5003a5(0x133))/0x5+parseInt(_0x5003a5(0xf3))/0x6*(parseInt(_0x5003a5(0x105))/0x7)+-parseInt(_0x5003a5(0x10e))/0x8*(-parseInt(_0x5003a5(0x10f))/0x9)+-parseInt(_0x5003a5(0x115))/0xa+parseInt(_0x5003a5(0xf1))/0xb*(-parseInt(_0x5003a5(0x10b))/0xc);if(_0xd60d56===_0x376aad)break;else _0x5d0477['push'](_0x5d0477['shift']());}catch(_0x461a37){_0x5d0477['push'](_0x5d0477['shift']());}}}(a205_0xdaec,0x7cf84));export const fixtures={'database':{'basic':{'name':a205_0x1a1b94(0x107),'count':0x5,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x1a1b94(0xee),'permission':a205_0x1a1b94(0xde)},'withTables':{'name':'production_db','count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':'2024-01-15T08:00:00Z','permission':'full_access'}},'table':{'basic':{'id':0x3039,'name':a205_0x1a1b94(0x118),'type':a205_0x1a1b94(0x11a),'schema':JSON[a205_0x1a1b94(0x128)]([['id','string'],['time',a205_0x1a1b94(0x134)],[a205_0x1a1b94(0x120),'string']]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a205_0x1a1b94(0xee),'updated_at':a205_0x1a1b94(0xee)},'events':{'id':0x303a,'name':a205_0x1a1b94(0x10d),'type':a205_0x1a1b94(0x11a),'schema':JSON[a205_0x1a1b94(0x128)]([[a205_0x1a1b94(0x12d),a205_0x1a1b94(0x12f)],[a205_0x1a1b94(0x146),'long'],[a205_0x1a1b94(0x11d),a205_0x1a1b94(0x12f)],[a205_0x1a1b94(0x140),a205_0x1a1b94(0x12f)],[a205_0x1a1b94(0x109),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x1a1b94(0x141)}},'parentSegment':{'basic':{'id':a205_0x1a1b94(0x136),'name':'Test\x20Parent\x20Segment','description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a205_0x1a1b94(0xeb),'master_table':{'database':a205_0x1a1b94(0x122),'table':a205_0x1a1b94(0x139)},'attributes':[{'name':'customer_id','type':a205_0x1a1b94(0x12f),'key':!![]},{'name':a205_0x1a1b94(0xe5),'type':a205_0x1a1b94(0x12f)},{'name':a205_0x1a1b94(0x10a),'type':'timestamp'}],'created_at':a205_0x1a1b94(0xee),'updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a205_0x1a1b94(0x149),'name':a205_0x1a1b94(0x111),'description':a205_0x1a1b94(0xf6),'status':a205_0x1a1b94(0xeb),'master_table':{'database':a205_0x1a1b94(0x122),'table':a205_0x1a1b94(0x145)},'behaviors':[{'name':a205_0x1a1b94(0xf8),'table':{'database':a205_0x1a1b94(0xed),'table':a205_0x1a1b94(0xf8)},'join_key':a205_0x1a1b94(0xe9)},{'name':a205_0x1a1b94(0x11b),'table':{'database':'events_db','table':a205_0x1a1b94(0x148)},'join_key':a205_0x1a1b94(0xe9)}],'created_at':a205_0x1a1b94(0xee),'updated_at':a205_0x1a1b94(0xf0)}},'segment':{'basic':{'id':'cs-456789','name':a205_0x1a1b94(0xff),'description':a205_0x1a1b94(0x11c),'parent_segment_id':a205_0x1a1b94(0x136),'status':a205_0x1a1b94(0xeb),'rules':[{'type':a205_0x1a1b94(0x13f),'field':a205_0x1a1b94(0x113),'operator':'TimeWithinPast','value':a205_0x1a1b94(0x112)}],'count':0x1388,'created_at':a205_0x1a1b94(0xee),'updated_at':a205_0x1a1b94(0xf0)},'withMultipleRules':{'id':'cs-111222','name':a205_0x1a1b94(0x14a),'description':a205_0x1a1b94(0xf2),'parent_segment_id':a205_0x1a1b94(0x136),'status':a205_0x1a1b94(0xeb),'rules':[{'type':'attribute','field':a205_0x1a1b94(0x113),'operator':a205_0x1a1b94(0xec),'value':'30d'},{'type':a205_0x1a1b94(0x13f),'field':a205_0x1a1b94(0xe3),'operator':a205_0x1a1b94(0x13e),'value':0x3e8}],'count':0x5dc,'created_at':a205_0x1a1b94(0xee),'updated_at':a205_0x1a1b94(0xf0)}},'journey':{'basic':{'id':'j-abc123','name':a205_0x1a1b94(0xe6),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':a205_0x1a1b94(0x144),'version':0x1,'steps':[{'id':a205_0x1a1b94(0xdd),'type':a205_0x1a1b94(0x119),'duration':'1d'},{'id':a205_0x1a1b94(0x12a),'type':'activation','activation_id':a205_0x1a1b94(0xe8)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x1a1b94(0xf0)},'withDecision':{'id':a205_0x1a1b94(0x126),'name':'Purchase\x20Reminder','description':a205_0x1a1b94(0x137),'status':'active','version':0x2,'steps':[{'id':a205_0x1a1b94(0xdd),'type':a205_0x1a1b94(0x117),'segment_id':'cs-456789','yes_path':a205_0x1a1b94(0x12a),'no_path':a205_0x1a1b94(0xfa)},{'id':a205_0x1a1b94(0x12a),'type':a205_0x1a1b94(0x13c),'activation_id':a205_0x1a1b94(0x135)},{'id':a205_0x1a1b94(0xfa),'type':a205_0x1a1b94(0xe2)}],'created_at':a205_0x1a1b94(0xee),'updated_at':a205_0x1a1b94(0xf0)}},'queryResult':{'basic':{'schema':[{'name':'id','type':'varchar'},{'name':a205_0x1a1b94(0x120),'type':a205_0x1a1b94(0xf7)},{'name':'count','type':a205_0x1a1b94(0xdf)}],'data':[[a205_0x1a1b94(0x143),'Alice',0x64],[a205_0x1a1b94(0x102),a205_0x1a1b94(0x13a),0xc8],[a205_0x1a1b94(0x124),a205_0x1a1b94(0x116),0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a205_0x1a1b94(0x120),'type':a205_0x1a1b94(0xf7)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':'bigint'}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a205_0x1a1b94(0x108),'email':a205_0x1a1b94(0x10c),'created_at':'2024-01-01T00:00:00Z','updated_at':a205_0x1a1b94(0xf0),'administrator':![]},'admin':{'id':0x1,'name':a205_0x1a1b94(0xfc),'email':a205_0x1a1b94(0xf5),'created_at':a205_0x1a1b94(0x101),'updated_at':a205_0x1a1b94(0xf0),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a205_0x1a1b94(0x129),'database':'test_db','status':a205_0x1a1b94(0xfb),'query':a205_0x1a1b94(0xfe),'start_at':'2024-01-15T10:00:00Z','end_at':a205_0x1a1b94(0xdc),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a205_0x1a1b94(0x129),'database':'test_db','status':a205_0x1a1b94(0x142),'query':a205_0x1a1b94(0xf9),'start_at':'2024-01-15T10:05:00Z','end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a205_0x1a1b94(0x129),'database':a205_0x1a1b94(0x107),'status':'error','query':a205_0x1a1b94(0x131),'start_at':a205_0x1a1b94(0xef),'end_at':'2024-01-15T10:10:01Z','duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a205_0x1a1b94(0xe7),'name':a205_0x1a1b94(0xf4),'project':a205_0x1a1b94(0x103),'revision':'abc123','timezone':a205_0x1a1b94(0x121),'schedule':{'cron':a205_0x1a1b94(0x147)}},'withSessions':{'id':a205_0x1a1b94(0x127),'name':a205_0x1a1b94(0x12e),'project':'data_sync','revision':'def456','timezone':a205_0x1a1b94(0x114),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a205_0x1a1b94(0x11e),'status':a205_0x1a1b94(0xfb),'started_at':a205_0x1a1b94(0x12c),'finished_at':a205_0x1a1b94(0xea)}}},'apiError':{'unauthorized':{'errors':{'error':a205_0x1a1b94(0x13b),'message':a205_0x1a1b94(0x13b),'severity':a205_0x1a1b94(0x123),'status_code':0x191}},'notFound':{'errors':{'error':a205_0x1a1b94(0xfd),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':a205_0x1a1b94(0x123),'status_code':0x194}},'rateLimited':{'detail':a205_0x1a1b94(0xdb)},'rfc9457':{'type':'https://api.treasuredata.com/errors/forbidden','title':a205_0x1a1b94(0xe1),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a205_0x1a1b94(0x11f)}}};function a205_0x23ed(_0x4280cf,_0x5c5b4f){_0x4280cf=_0x4280cf-0xdb;const _0xdaec21=a205_0xdaec();let _0x23ed05=_0xdaec21[_0x4280cf];return _0x23ed05;}export function createDatabase(_0x548c46){const _0x5e9d84=a205_0x1a1b94;return{...fixtures[_0x5e9d84(0x125)][_0x5e9d84(0x132)],..._0x548c46};}export function createTable(_0x5d26b7){return{...fixtures['table']['basic'],..._0x5d26b7};}export function createParentSegment(_0x361ab9){const _0x34ffa8=a205_0x1a1b94;return{...fixtures[_0x34ffa8(0x130)][_0x34ffa8(0x132)],..._0x361ab9};}export function createSegment(_0x15fbae){const _0x4123ba=a205_0x1a1b94;return{...fixtures[_0x4123ba(0x138)][_0x4123ba(0x132)],..._0x15fbae};}export function createJourney(_0x384941){const _0x3fbf35=a205_0x1a1b94;return{...fixtures[_0x3fbf35(0x100)][_0x3fbf35(0x132)],..._0x384941};}export function createQueryResult(_0xcfa022){return{...fixtures['queryResult']['basic'],..._0xcfa022};}function a205_0xdaec(){const _0x12a7b1=['ps-123456','Journey\x20with\x20decision\x20point','segment','unified_customers','Bob','Invalid\x20API\x20key','activation','428926hAIgzY','Greater','attribute','event_type','2024-01-15T12:00:00Z','running','user-1','draft','customers','time','0\x200\x20*\x20*\x20*','pageviews','ps-789012','High\x20Value\x20Active\x20Users','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','2024-01-15T10:00:05Z','step-1','administrator','bigint','3xQKxEo','Forbidden','end','lifetime_value','1282108BEEUZh','email','Welcome\x20Journey','wf-12345','act-123','customer_id','2024-01-15T09:05:00Z','active','TimeWithinPast','events_db','2024-01-01T00:00:00Z','2024-01-15T10:10:00Z','2024-01-15T00:00:00Z','341yWGiMA','Active\x20users\x20with\x20high\x20lifetime\x20value','778656PhxIIS','daily_etl','admin@example.com','Parent\x20segment\x20with\x20behavioral\x20data','varchar','purchases','SELECT\x20COUNT(*)\x20FROM\x20events','step-3','success','Admin\x20User','Resource\x20not\x20found','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','Active\x20Users','journey','2023-01-01T00:00:00Z','user-2','data_pipeline','job','35RMkvfT','workflow','test_db','Test\x20User','properties','created_at','1248beroxU','test@example.com','events','2843472uCxkAc','9hVPcyp','1LgHKUt','Customers\x20with\x20Behaviors','30d','last_login','America/Los_Angeles','5270710fRZBNw','Charlie','decision_point','users','wait','log','page_views','Users\x20active\x20in\x20the\x20last\x2030\x20days','user_id','sess-111','/v3/database/list','name','UTC','cdp_db','error','user-3','database','j-def456','wf-67890','stringify','presto','step-2','user','2024-01-15T09:00:00Z','event_id','hourly_sync','string','parentSegment','SELECT\x20*\x20FROM\x20nonexistent_table','basic','341035rSomcE','long','act-email'];a205_0xdaec=function(){return _0x12a7b1;};return a205_0xdaec();}export function createUser(_0x5dbee8){const _0x3ae18a=a205_0x1a1b94;return{...fixtures[_0x3ae18a(0x12b)][_0x3ae18a(0x132)],..._0x5dbee8};}export function createJob(_0x9bc32a){const _0x495e6e=a205_0x1a1b94;return{...fixtures[_0x495e6e(0x104)]['completed'],..._0x9bc32a};}export function createWorkflow(_0x2c6ae0){const _0x2c7a65=a205_0x1a1b94;return{...fixtures[_0x2c7a65(0x106)][_0x2c7a65(0x132)],..._0x2c6ae0};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a206_0x173d05=a206_0x3f5b;function a206_0x3f5b(_0x529449,_0x5e4124){_0x529449=_0x529449-0x148;const _0xcf6a2b=a206_0xcf6a();let _0x3f5bdb=_0xcf6a2b[_0x529449];return _0x3f5bdb;}(function(_0x31cea0,_0x5ffc0b){const _0x451792=a206_0x3f5b,_0x48ac27=_0x31cea0();while(!![]){try{const _0x5dc7d4=parseInt(_0x451792(0x15d))/0x1*(parseInt(_0x451792(0x14e))/0x2)+parseInt(_0x451792(0x14d))/0x3*(parseInt(_0x451792(0x163))/0x4)+-parseInt(_0x451792(0x157))/0x5*(parseInt(_0x451792(0x17a))/0x6)+parseInt(_0x451792(0x17d))/0x7*(parseInt(_0x451792(0x177))/0x8)+parseInt(_0x451792(0x197))/0x9*(parseInt(_0x451792(0x14c))/0xa)+-parseInt(_0x451792(0x18d))/0xb*(-parseInt(_0x451792(0x15e))/0xc)+-parseInt(_0x451792(0x14a))/0xd;if(_0x5dc7d4===_0x5ffc0b)break;else _0x48ac27['push'](_0x48ac27['shift']());}catch(_0x21fef9){_0x48ac27['push'](_0x48ac27['shift']());}}}(a206_0xcf6a,0x249e2));function a206_0xcf6a(){const _0x105902=['jsonResponseWithHeaders','171EIOqwv','test','withBody','withHost','text/plain','Bad\x20Request','Conflict','https://api.treasuredata.com/errors/','register','toLowerCase','matchCount','includes','jsonResponse','No\x20Content','stubs','string','5012397Lrnsal','simple','51980ivTroc','417tiKOgd','414486drTdiH','url','fetchMock','method','mockImplementation','slice','join','requests','isArray','33430fTntKj','headers','textResponse','split','every','Unauthorized','1YDdjiR','180opBjQM','parseRequest','\x20\x20(none)','Internal\x20Server\x20Error','matcher','2372CvrwPE','Created','Bad\x20Gateway','REST','some','Registered\x20stubs:\x0a','host','entries','getRequests','getStatusText','description','withQuery','pathname','Unprocessable\x20Entity','\x20registered\x20at:\x0a','Service\x20Unavailable','toUpperCase','map','networkError','verify','8LtAQvI','error','Unknown','150fJyiGv','stack','getLastRequest','1606346wykYWA','Request\x20body:\x20','td-api','searchParams','Unmatched\x20stub','unnamed\x20stub','body','wasCalled','getMatchCount','filter','parse','responder','forEach','Forbidden','reset','Not\x20Found','62183WEOOKh','stringify','errorResponse','length','matched','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','application/json','push','get'];a206_0xcf6a=function(){return _0x105902;};return a206_0xcf6a();}import{vi}from'vitest';export class HTTPMockRegistry{['stubs']=[];['requests']=[];[a206_0x173d05(0x150)]=null;[a206_0x173d05(0x166)](_0x2fecf2,_0x43fe26){return _0xc65e8a=>{const _0x37113b=a206_0x3f5b;if(_0xc65e8a[_0x37113b(0x151)][_0x37113b(0x173)]()!==_0x2fecf2[_0x37113b(0x173)]())return![];const _0x40b48d=new URL(_0xc65e8a[_0x37113b(0x14f)]);if(typeof _0x43fe26==='string')return _0x40b48d[_0x37113b(0x16f)]===_0x43fe26||_0x40b48d['pathname'][_0x37113b(0x1a2)](_0x43fe26);return _0x43fe26['test'](_0x40b48d[_0x37113b(0x16f)]);};}[a206_0x173d05(0x16e)](_0x35c9ec,_0x4dbc78){return _0x46b1b7=>{const _0x2c1a8e=a206_0x3f5b;if(!_0x35c9ec(_0x46b1b7))return![];const _0x30b6f9=new URL(_0x46b1b7[_0x2c1a8e(0x14f)]);return Object[_0x2c1a8e(0x16a)](_0x4dbc78)[_0x2c1a8e(0x15b)](([_0x2611b5,_0x11aa0f])=>_0x30b6f9[_0x2c1a8e(0x180)][_0x2c1a8e(0x195)](_0x2611b5)===_0x11aa0f);};}[a206_0x173d05(0x199)](_0x4800bc,_0x3f4b49){return _0x12c734=>{const _0x20d243=a206_0x3f5b;if(!_0x4800bc(_0x12c734))return![];if(typeof _0x3f4b49==='function')return _0x3f4b49(_0x12c734[_0x20d243(0x183)]);return JSON[_0x20d243(0x18e)](_0x12c734['body'])===JSON[_0x20d243(0x18e)](_0x3f4b49);};}[a206_0x173d05(0x19a)](_0x1e9978,_0x5698a4){return _0xd138b5=>{const _0x36fbc1=a206_0x3f5b;if(!_0x1e9978(_0xd138b5))return![];const _0x44f763=new URL(_0xd138b5[_0x36fbc1(0x14f)]);return _0x44f763[_0x36fbc1(0x169)]===_0x5698a4;};}[a206_0x173d05(0x19f)](_0x5b7b23,_0x917efc,_0x501224){const _0x5271d0=a206_0x173d05;this[_0x5271d0(0x148)][_0x5271d0(0x194)]({'matcher':_0x5b7b23,'responder':_0x917efc,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5271d0(0x17b)]??'','description':_0x501224?.[_0x5271d0(0x16d)]});}['registerWithInspector'](_0x50d0af,_0x2b67da,_0x48b1ad){const _0x1d7678=_0x38afbd=>{const _0x158a52=a206_0x3f5b;return _0x48b1ad(_0x38afbd[_0x158a52(0x183)],_0x38afbd),_0x2b67da(_0x38afbd);};this['register'](_0x50d0af,_0x1d7678);}static[a206_0x173d05(0x1a3)](_0x3224e4,_0x304b2a=0xc8){const _0x187a52=a206_0x173d05;return()=>new Response(JSON[_0x187a52(0x18e)](_0x3224e4),{'status':_0x304b2a,'headers':{'Content-Type':'application/json'}});}static[a206_0x173d05(0x18f)](_0x5e0a96,_0x493601,_0x1ae557=a206_0x173d05(0x14b)){return()=>{const _0x558bc7=a206_0x3f5b;let _0x366515;switch(_0x1ae557){case _0x558bc7(0x17f):_0x366515={'errors':{'error':_0x493601,'message':_0x493601,'severity':_0x558bc7(0x178),'status_code':_0x5e0a96}};break;case'rfc9457':_0x366515={'type':_0x558bc7(0x19e)+_0x5e0a96,'title':HTTPMockRegistry['getStatusText'](_0x5e0a96),'status':_0x5e0a96,'detail':_0x493601};break;default:_0x366515={'error':_0x493601};}return new Response(JSON[_0x558bc7(0x18e)](_0x366515),{'status':_0x5e0a96,'headers':{'Content-Type':_0x558bc7(0x193)}});};}static[a206_0x173d05(0x196)](_0x38fcd2,_0x3b40ce,_0x38abff=0xc8){const _0x4c4eff=a206_0x173d05;return()=>new Response(JSON[_0x4c4eff(0x18e)](_0x38fcd2),{'status':_0x38abff,'headers':{'Content-Type':_0x4c4eff(0x193),..._0x3b40ce}});}static[a206_0x173d05(0x159)](_0x4d9766,_0x3baff2=0xc8){const _0x961fe1=a206_0x173d05;return()=>new Response(_0x4d9766,{'status':_0x3baff2,'headers':{'Content-Type':_0x961fe1(0x19b)}});}static[a206_0x173d05(0x175)](_0x3c2a0b){return()=>{throw new Error(_0x3c2a0b);};}['createFetch'](){const _0x41c97d=a206_0x173d05;return this[_0x41c97d(0x150)]=vi['fn']()[_0x41c97d(0x152)](async(_0x2d7411,_0x48d45c)=>{const _0x120df9=_0x41c97d,_0x15327c=this[_0x120df9(0x15f)](_0x2d7411,_0x48d45c);this[_0x120df9(0x155)][_0x120df9(0x194)](_0x15327c);for(const _0x23a16d of this[_0x120df9(0x148)]){if(_0x23a16d[_0x120df9(0x162)](_0x15327c))return _0x23a16d[_0x120df9(0x191)]=!![],_0x23a16d['matchCount']++,_0x23a16d[_0x120df9(0x188)](_0x15327c);}const _0x2164a8=this['stubs'][_0x120df9(0x174)]((_0x157040,_0x4cc1c7)=>'\x20\x20'+(_0x4cc1c7+0x1)+'.\x20'+(_0x157040[_0x120df9(0x16d)]??_0x120df9(0x182)))[_0x120df9(0x154)]('\x0a');throw new Error('No\x20stub\x20matched\x20request:\x20'+_0x15327c['method']+'\x20'+_0x15327c['url']+'\x0a'+(_0x120df9(0x17e)+JSON[_0x120df9(0x18e)](_0x15327c['body'])+'\x0a')+(_0x120df9(0x168)+(_0x2164a8||_0x120df9(0x160))));}),this['fetchMock'];}[a206_0x173d05(0x15f)](_0x2d7438,_0x2c891d){const _0x3145b7=a206_0x173d05,_0x1f1f82={};if(_0x2c891d?.[_0x3145b7(0x158)]){if(_0x2c891d[_0x3145b7(0x158)]instanceof Headers)_0x2c891d[_0x3145b7(0x158)][_0x3145b7(0x189)]((_0x28a7fb,_0x5afda0)=>{const _0x3d10dd=_0x3145b7;_0x1f1f82[_0x5afda0[_0x3d10dd(0x1a0)]()]=_0x28a7fb;});else{if(Array[_0x3145b7(0x156)](_0x2c891d['headers']))for(const [_0x50f559,_0x240f7d]of _0x2c891d[_0x3145b7(0x158)]){_0x1f1f82[_0x50f559[_0x3145b7(0x1a0)]()]=_0x240f7d;}else for(const [_0x1625a9,_0x3988cc]of Object[_0x3145b7(0x16a)](_0x2c891d[_0x3145b7(0x158)])){_0x3988cc!==undefined&&(_0x1f1f82[_0x1625a9[_0x3145b7(0x1a0)]()]=_0x3988cc);}}}let _0x121c67;if(_0x2c891d?.[_0x3145b7(0x183)])try{_0x121c67=JSON[_0x3145b7(0x187)](_0x2c891d[_0x3145b7(0x183)]);}catch{_0x121c67=_0x2c891d[_0x3145b7(0x183)];}return{'method':_0x2c891d?.[_0x3145b7(0x151)]??'GET','url':_0x2d7438,'headers':_0x1f1f82,'body':_0x121c67};}[a206_0x173d05(0x176)](_0x2bc3db){const _0x38924e=a206_0x173d05,_0x1c39a9=this[_0x38924e(0x148)][_0x38924e(0x186)](_0x38e5b2=>!_0x38e5b2[_0x38924e(0x191)]);if(_0x1c39a9['length']>0x0){const _0x3da3e1=_0x1c39a9[_0x38924e(0x174)](_0x5db075=>{const _0x104c84=_0x38924e,_0x84a616=_0x5db075[_0x104c84(0x16d)]?'\x20('+_0x5db075[_0x104c84(0x16d)]+')':'',_0x5b3449=_0x5db075['stack'][_0x104c84(0x15a)]('\x0a')[_0x104c84(0x153)](0x2,0x5)['join']('\x0a');return _0x104c84(0x181)+_0x84a616+_0x104c84(0x171)+_0x5b3449;});_0x2bc3db['fail'](_0x1c39a9[_0x38924e(0x190)]+_0x38924e(0x192)+_0x3da3e1[_0x38924e(0x154)]('\x0a\x0a'));}}[a206_0x173d05(0x16b)](){const _0x272f54=a206_0x173d05;return[...this[_0x272f54(0x155)]];}[a206_0x173d05(0x17c)](){const _0x55a0e0=a206_0x173d05;return this[_0x55a0e0(0x155)][this[_0x55a0e0(0x155)][_0x55a0e0(0x190)]-0x1];}[a206_0x173d05(0x184)](_0x2f5050,_0xc7380f){const _0x52b2e3=a206_0x173d05;return this[_0x52b2e3(0x155)][_0x52b2e3(0x167)](_0x33552f=>{const _0x3d5c32=_0x52b2e3;if(_0x33552f[_0x3d5c32(0x151)][_0x3d5c32(0x173)]()!==_0x2f5050[_0x3d5c32(0x173)]())return![];if(typeof _0xc7380f===_0x3d5c32(0x149))return _0x33552f[_0x3d5c32(0x14f)][_0x3d5c32(0x1a2)](_0xc7380f);return _0xc7380f[_0x3d5c32(0x198)](_0x33552f[_0x3d5c32(0x14f)]);});}[a206_0x173d05(0x185)](_0x406562){const _0x1c58f9=a206_0x173d05;return this[_0x1c58f9(0x148)][_0x406562]?.[_0x1c58f9(0x1a1)]??0x0;}[a206_0x173d05(0x18b)](){const _0x47f1ae=a206_0x173d05;this['stubs']=[],this[_0x47f1ae(0x155)]=[],this[_0x47f1ae(0x150)]=null;}static[a206_0x173d05(0x16c)](_0x5daace){const _0x59b145=a206_0x173d05,_0x4b4a69={0xc8:'OK',0xc9:_0x59b145(0x164),0xcc:_0x59b145(0x1a4),0x190:_0x59b145(0x19c),0x191:_0x59b145(0x15c),0x193:_0x59b145(0x18a),0x194:_0x59b145(0x18c),0x199:_0x59b145(0x19d),0x1a6:_0x59b145(0x170),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x59b145(0x161),0x1f6:_0x59b145(0x165),0x1f7:_0x59b145(0x172)};return _0x4b4a69[_0x5daace]??_0x59b145(0x179);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4a2493,_0x3d9241){var _0x3573b0=a207_0x11ef,_0x57b557=_0x4a2493();while(!![]){try{var _0x16c59a=-parseInt(_0x3573b0(0x156))/0x1*(parseInt(_0x3573b0(0x150))/0x2)+parseInt(_0x3573b0(0x154))/0x3*(parseInt(_0x3573b0(0x155))/0x4)+-parseInt(_0x3573b0(0x15b))/0x5*(-parseInt(_0x3573b0(0x151))/0x6)+-parseInt(_0x3573b0(0x152))/0x7*(parseInt(_0x3573b0(0x159))/0x8)+-parseInt(_0x3573b0(0x158))/0x9*(-parseInt(_0x3573b0(0x153))/0xa)+parseInt(_0x3573b0(0x157))/0xb+-parseInt(_0x3573b0(0x15a))/0xc;if(_0x16c59a===_0x3d9241)break;else _0x57b557['push'](_0x57b557['shift']());}catch(_0x44ea9d){_0x57b557['push'](_0x57b557['shift']());}}}(a207_0x4b3a,0xd3f2b));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';function a207_0x11ef(_0x13366c,_0x2c9d69){_0x13366c=_0x13366c-0x150;var _0x4b3a6f=a207_0x4b3a();var _0x11efd7=_0x4b3a6f[_0x13366c];return _0x11efd7;}function a207_0x4b3a(){var _0x57b2c6=['12785484swimux','5GAchkN','1082DzYxws','8569014rrPWnd','14aEEIXT','11954730ryaTac','309PfGrsP','22016sazuat','1264htmGVj','587224qNrSwf','9JIiyIF','2506072ErasMr'];a207_0x4b3a=function(){return _0x57b2c6;};return a207_0x4b3a();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a208_0x59bd(_0x27281e,_0x2ba11d){_0x27281e=_0x27281e-0xb3;const _0x364c8d=a208_0x364c();let _0x59bd0a=_0x364c8d[_0x27281e];return _0x59bd0a;}(function(_0x4093d9,_0x30fd6c){const _0x5a70d4=a208_0x59bd,_0x7b4f2f=_0x4093d9();while(!![]){try{const _0x13b885=parseInt(_0x5a70d4(0xbf))/0x1*(parseInt(_0x5a70d4(0xb6))/0x2)+-parseInt(_0x5a70d4(0xbb))/0x3+parseInt(_0x5a70d4(0xc0))/0x4+parseInt(_0x5a70d4(0xb7))/0x5*(parseInt(_0x5a70d4(0xbe))/0x6)+-parseInt(_0x5a70d4(0xb9))/0x7*(parseInt(_0x5a70d4(0xbd))/0x8)+-parseInt(_0x5a70d4(0xba))/0x9*(parseInt(_0x5a70d4(0xb8))/0xa)+-parseInt(_0x5a70d4(0xb4))/0xb*(parseInt(_0x5a70d4(0xbc))/0xc);if(_0x13b885===_0x30fd6c)break;else _0x7b4f2f['push'](_0x7b4f2f['shift']());}catch(_0x524ef3){_0x7b4f2f['push'](_0x7b4f2f['shift']());}}}(a208_0x364c,0x5d06e));export async function batchAsync(_0x358ae6,_0x4f657,_0x52845e=0xa){const _0x20e28c=a208_0x59bd,_0x471711=[];for(let _0x45ffd4=0x0;_0x45ffd4<_0x358ae6[_0x20e28c(0xb3)];_0x45ffd4+=_0x52845e){const _0x2d2f3e=_0x358ae6[_0x20e28c(0xb5)](_0x45ffd4,_0x45ffd4+_0x52845e),_0x260063=await Promise[_0x20e28c(0xc1)](_0x2d2f3e['map'](_0x4f657));_0x471711['push'](..._0x260063);}return _0x471711;}function a208_0x364c(){const _0x1f4212=['22gLpSAd','slice','1186ghHOyc','2174590pckoug','545400ujOvkc','954933WNEEXT','9wZDTlt','1800390PHLOCA','1315608VPSqGU','8UZoIig','6GhnmDz','661DYxDuh','2258016EWigdN','all','length'];a208_0x364c=function(){return _0x1f4212;};return a208_0x364c();}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a209_0x304521=a209_0x351b;(function(_0xa15fbd,_0x3ca35c){const _0x5955fb=a209_0x351b,_0x26d3f6=_0xa15fbd();while(!![]){try{const _0x137a51=parseInt(_0x5955fb(0x1e6))/0x1+-parseInt(_0x5955fb(0x1dc))/0x2*(parseInt(_0x5955fb(0x1e0))/0x3)+parseInt(_0x5955fb(0x1e8))/0x4*(-parseInt(_0x5955fb(0x1db))/0x5)+parseInt(_0x5955fb(0x1dd))/0x6+parseInt(_0x5955fb(0x1e5))/0x7+-parseInt(_0x5955fb(0x1e2))/0x8*(-parseInt(_0x5955fb(0x1e3))/0x9)+parseInt(_0x5955fb(0x1d3))/0xa;if(_0x137a51===_0x3ca35c)break;else _0x26d3f6['push'](_0x26d3f6['shift']());}catch(_0x56841f){_0x26d3f6['push'](_0x26d3f6['shift']());}}}(a209_0x224d,0xd0242));import*as a209_0x589190 from'chalk';const Chalk=a209_0x589190[a209_0x304521(0x1df)];export function shouldUseColor(_0x129724={}){const _0x5a855d=a209_0x304521;if(_0x129724['noColor']===!![])return![];if(_0x129724[_0x5a855d(0x1d9)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x5a855d(0x1d2)][_0x5a855d(0x1e7)]??![];}export function getChalk(_0x5258ba={}){if(shouldUseColor(_0x5258ba))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}function a209_0x224d(){const _0x31911a=['4207609zBbMjE','219944cauUMY','isTTY','92VBIDLp','boolean','stringify','null','dim','cyan','isArray','yellow','map','stdout','3503690XyigXD','string','blue','repeat','object','number','color','length','362655nCpagx','6BkSLsO','4083444csVugL','green','Chalk','59307kjwHCJ','entries','16TiiXNu','3276414UTObhR','join'];a209_0x224d=function(){return _0x31911a;};return a209_0x224d();}export function colorBorder(_0x5f2097,_0x4e1137={}){const _0x4f980f=a209_0x304521;return getChalk(_0x4e1137)[_0x4f980f(0x1ec)](_0x5f2097);}function a209_0x351b(_0x721fca,_0x6d82f9){_0x721fca=_0x721fca-0x1cf;const _0x224d59=a209_0x224d();let _0x351b2a=_0x224d59[_0x721fca];return _0x351b2a;}export function colorHeader(_0x2b81a5,_0x5a5628={}){return getChalk(_0x5a5628)['cyan'](_0x2b81a5);}export function colorType(_0x2ed4c3,_0x130856={}){const _0x524fea=a209_0x304521;return getChalk(_0x130856)[_0x524fea(0x1ec)](_0x2ed4c3);}export function colorJSONKey(_0x1369a3,_0x101ed1={}){const _0x113d4c=a209_0x304521;return getChalk(_0x101ed1)[_0x113d4c(0x1d5)](_0x1369a3);}export function colorJSONString(_0x208c74,_0x6d85c2={}){const _0x4dd281=a209_0x304521;return getChalk(_0x6d85c2)[_0x4dd281(0x1de)](_0x208c74);}export function colorJSONNumber(_0x1494a2,_0x1e7132={}){const _0x2b4294=a209_0x304521;return getChalk(_0x1e7132)[_0x2b4294(0x1ed)](_0x1494a2);}export function colorJSONBoolean(_0x2cc3b6,_0x12fe13={}){const _0x5841b9=a209_0x304521;return getChalk(_0x12fe13)[_0x5841b9(0x1d0)](_0x2cc3b6);}export function colorJSONNull(_0x2709c1,_0x3c1ddb={}){const _0x49b966=a209_0x304521;return getChalk(_0x3c1ddb)[_0x49b966(0x1ec)](_0x2709c1);}export function colorizeJSONCompact(_0x3f96a5,_0x3dbc7d={}){const _0x4127a5=a209_0x304521;if(!shouldUseColor(_0x3dbc7d))return JSON[_0x4127a5(0x1ea)](_0x3f96a5);if(_0x3f96a5===null)return colorJSONNull(_0x4127a5(0x1eb),_0x3dbc7d);if(typeof _0x3f96a5===_0x4127a5(0x1e9))return colorJSONBoolean(String(_0x3f96a5),_0x3dbc7d);if(typeof _0x3f96a5===_0x4127a5(0x1d8))return colorJSONNumber(String(_0x3f96a5),_0x3dbc7d);if(typeof _0x3f96a5===_0x4127a5(0x1d4))return colorJSONString(JSON[_0x4127a5(0x1ea)](_0x3f96a5),_0x3dbc7d);if(Array[_0x4127a5(0x1cf)](_0x3f96a5)){if(_0x3f96a5[_0x4127a5(0x1da)]===0x0)return'[]';const _0x50f8b4=_0x3f96a5[_0x4127a5(0x1d1)](_0x46541f=>colorizeJSONCompact(_0x46541f,_0x3dbc7d));return'['+_0x50f8b4[_0x4127a5(0x1e4)](',')+']';}if(typeof _0x3f96a5==='object'){const _0x190c22=Object[_0x4127a5(0x1e1)](_0x3f96a5);if(_0x190c22[_0x4127a5(0x1da)]===0x0)return'{}';const _0x44ed95=_0x190c22[_0x4127a5(0x1d1)](([_0x2e1827,_0x1fb8dd])=>{const _0x38e38f=_0x4127a5,_0x264236=colorJSONKey(JSON[_0x38e38f(0x1ea)](_0x2e1827),_0x3dbc7d),_0x25375e=colorizeJSONCompact(_0x1fb8dd,_0x3dbc7d);return _0x264236+':'+_0x25375e;});return'{'+_0x44ed95[_0x4127a5(0x1e4)](',')+'}';}return String(_0x3f96a5);}export function colorizeJSON(_0x54b0b8,_0x36eb8c={},_0x37457c=0x0){const _0x522845=a209_0x304521;if(!shouldUseColor(_0x36eb8c))return JSON[_0x522845(0x1ea)](_0x54b0b8,null,0x2);const _0x444123='\x20'[_0x522845(0x1d6)](_0x37457c),_0x15f4b9=_0x37457c+0x2;if(_0x54b0b8===null)return colorJSONNull(_0x522845(0x1eb),_0x36eb8c);if(typeof _0x54b0b8==='boolean')return colorJSONBoolean(String(_0x54b0b8),_0x36eb8c);if(typeof _0x54b0b8===_0x522845(0x1d8))return colorJSONNumber(String(_0x54b0b8),_0x36eb8c);if(typeof _0x54b0b8===_0x522845(0x1d4))return colorJSONString(JSON[_0x522845(0x1ea)](_0x54b0b8),_0x36eb8c);if(Array[_0x522845(0x1cf)](_0x54b0b8)){if(_0x54b0b8[_0x522845(0x1da)]===0x0)return'[]';const _0x298455=_0x54b0b8['map'](_0x1bfc94=>{const _0x5c7953=colorizeJSON(_0x1bfc94,_0x36eb8c,_0x15f4b9);return''+'\x20'['repeat'](_0x15f4b9)+_0x5c7953;});return'[\x0a'+_0x298455[_0x522845(0x1e4)](',\x0a')+('\x0a'+_0x444123+']');}if(typeof _0x54b0b8===_0x522845(0x1d7)){const _0x242fee=Object[_0x522845(0x1e1)](_0x54b0b8);if(_0x242fee[_0x522845(0x1da)]===0x0)return'{}';const _0x364a7b=_0x242fee[_0x522845(0x1d1)](([_0x463760,_0x52947b])=>{const _0x316b5f=_0x522845,_0x42149c=colorJSONKey(JSON[_0x316b5f(0x1ea)](_0x463760),_0x36eb8c),_0x17c566=colorizeJSON(_0x52947b,_0x36eb8c,_0x15f4b9);return''+'\x20'['repeat'](_0x15f4b9)+_0x42149c+':\x20'+_0x17c566;});return'{\x0a'+_0x364a7b[_0x522845(0x1e4)](',\x0a')+('\x0a'+_0x444123+'}');}return String(_0x54b0b8);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x164bcd,_0x147275){const _0x8357ef=a210_0x567b,_0x370fd7=_0x164bcd();while(!![]){try{const _0x2a4cd9=-parseInt(_0x8357ef(0x18b))/0x1+parseInt(_0x8357ef(0x19e))/0x2+parseInt(_0x8357ef(0x19f))/0x3*(parseInt(_0x8357ef(0x18e))/0x4)+parseInt(_0x8357ef(0x1a4))/0x5*(parseInt(_0x8357ef(0x18a))/0x6)+parseInt(_0x8357ef(0x1a0))/0x7+-parseInt(_0x8357ef(0x197))/0x8*(parseInt(_0x8357ef(0x18f))/0x9)+-parseInt(_0x8357ef(0x18d))/0xa;if(_0x2a4cd9===_0x147275)break;else _0x370fd7['push'](_0x370fd7['shift']());}catch(_0x4aac01){_0x370fd7['push'](_0x370fd7['shift']());}}}(a210_0x15bd,0x276ee));import a210_0x3845ae from'chalk';export function generateDiff(_0x416b7d,_0x21be7a){const _0x897c5a=a210_0x567b,_0x219aaf=_0x416b7d[_0x897c5a(0x1a2)]('\x0a'),_0x35a67c=_0x21be7a[_0x897c5a(0x1a2)]('\x0a'),_0x56af75=[],_0x45a5a3=computeLCS(_0x219aaf,_0x35a67c);let _0x4b07cb=0x0,_0x45262c=0x0,_0x1e8261=0x0;while(_0x4b07cb<_0x219aaf[_0x897c5a(0x193)]||_0x45262c<_0x35a67c[_0x897c5a(0x193)]){if(_0x1e8261<_0x45a5a3[_0x897c5a(0x193)]&&_0x4b07cb<_0x219aaf[_0x897c5a(0x193)]&&_0x219aaf[_0x4b07cb]===_0x45a5a3[_0x1e8261])_0x45262c<_0x35a67c[_0x897c5a(0x193)]&&_0x35a67c[_0x45262c]===_0x45a5a3[_0x1e8261]?(_0x56af75['push']({'type':_0x897c5a(0x19b),'content':_0x219aaf[_0x4b07cb]}),_0x4b07cb++,_0x45262c++,_0x1e8261++):(_0x56af75[_0x897c5a(0x192)]({'type':_0x897c5a(0x194),'content':_0x35a67c[_0x45262c]}),_0x45262c++);else{if(_0x1e8261<_0x45a5a3[_0x897c5a(0x193)]&&_0x45262c<_0x35a67c['length']&&_0x35a67c[_0x45262c]===_0x45a5a3[_0x1e8261])_0x56af75['push']({'type':_0x897c5a(0x199),'content':_0x219aaf[_0x4b07cb]}),_0x4b07cb++;else{if(_0x4b07cb<_0x219aaf[_0x897c5a(0x193)]&&(_0x1e8261>=_0x45a5a3['length']||_0x219aaf[_0x4b07cb]!==_0x45a5a3[_0x1e8261]))_0x56af75[_0x897c5a(0x192)]({'type':'removed','content':_0x219aaf[_0x4b07cb]}),_0x4b07cb++;else _0x45262c<_0x35a67c['length']&&(_0x56af75['push']({'type':_0x897c5a(0x194),'content':_0x35a67c[_0x45262c]}),_0x45262c++);}}}return _0x56af75;}function computeLCS(_0x2f94c3,_0x4c2340){const _0x3442f3=a210_0x567b,_0x4ace6c=_0x2f94c3[_0x3442f3(0x193)],_0x50505f=_0x4c2340[_0x3442f3(0x193)],_0x426207=Array(_0x4ace6c+0x1)[_0x3442f3(0x1aa)](null)['map'](()=>Array(_0x50505f+0x1)['fill'](0x0));for(let _0x36ee57=0x1;_0x36ee57<=_0x4ace6c;_0x36ee57++){for(let _0x31dd78=0x1;_0x31dd78<=_0x50505f;_0x31dd78++){_0x2f94c3[_0x36ee57-0x1]===_0x4c2340[_0x31dd78-0x1]?_0x426207[_0x36ee57][_0x31dd78]=_0x426207[_0x36ee57-0x1][_0x31dd78-0x1]+0x1:_0x426207[_0x36ee57][_0x31dd78]=Math['max'](_0x426207[_0x36ee57-0x1][_0x31dd78],_0x426207[_0x36ee57][_0x31dd78-0x1]);}}const _0x13e2ba=[];let _0x1d7054=_0x4ace6c,_0x546c4d=_0x50505f;while(_0x1d7054>0x0&&_0x546c4d>0x0){if(_0x2f94c3[_0x1d7054-0x1]===_0x4c2340[_0x546c4d-0x1])_0x13e2ba[_0x3442f3(0x190)](_0x2f94c3[_0x1d7054-0x1]),_0x1d7054--,_0x546c4d--;else _0x426207[_0x1d7054-0x1][_0x546c4d]>_0x426207[_0x1d7054][_0x546c4d-0x1]?_0x1d7054--:_0x546c4d--;}return _0x13e2ba;}function a210_0x567b(_0x399336,_0x180e06){_0x399336=_0x399336-0x186;const _0x15bdf0=a210_0x15bd();let _0x567b2a=_0x15bdf0[_0x399336];return _0x567b2a;}export function formatDiffWithColors(_0x49f911,_0x2a7c67=0x3){const _0x571e28=a210_0x567b,_0x1b0612=new Set();_0x49f911[_0x571e28(0x19a)]((_0x20581d,_0x27f290)=>{const _0xf25076=_0x571e28;_0x20581d[_0xf25076(0x195)]!==_0xf25076(0x19b)&&_0x1b0612['add'](_0x27f290);});if(_0x1b0612[_0x571e28(0x1a3)]===0x0)return'';const _0x98ccbf=new Set();for(const _0xbceec0 of _0x1b0612){for(let _0x41bd39=Math[_0x571e28(0x1a1)](0x0,_0xbceec0-_0x2a7c67);_0x41bd39<=Math[_0x571e28(0x19c)](_0x49f911[_0x571e28(0x193)]-0x1,_0xbceec0+_0x2a7c67);_0x41bd39++){_0x98ccbf[_0x571e28(0x196)](_0x41bd39);}}const _0x550624=[];let _0x20727e=-0x1;const _0x380f38=_0x49f911['length'],_0x152ffc=Math['max'](0x3,String(_0x380f38)[_0x571e28(0x193)]),_0x495a13=[];let _0x18f952=0x0,_0x59e6c1=0x0;for(const _0x57ed87 of _0x49f911){if(_0x57ed87[_0x571e28(0x195)]===_0x571e28(0x199))_0x18f952++,_0x495a13['push']({'old':_0x18f952,'new':0x0});else _0x57ed87[_0x571e28(0x195)]==='added'?(_0x59e6c1++,_0x495a13['push']({'old':0x0,'new':_0x59e6c1})):(_0x18f952++,_0x59e6c1++,_0x495a13[_0x571e28(0x192)]({'old':_0x18f952,'new':_0x59e6c1}));}for(let _0x12e307=0x0;_0x12e307<_0x49f911[_0x571e28(0x193)];_0x12e307++){if(!_0x98ccbf[_0x571e28(0x1a7)](_0x12e307))continue;_0x20727e!==-0x1&&_0x12e307>_0x20727e+0x1&&_0x550624[_0x571e28(0x192)](a210_0x3845ae[_0x571e28(0x18c)](_0x571e28(0x186)));_0x20727e=_0x12e307;const _0x45a328=_0x49f911[_0x12e307],_0x347efc=_0x495a13[_0x12e307],_0x3da8da=_0x347efc['old']>0x0?String(_0x347efc[_0x571e28(0x187)])[_0x571e28(0x1a8)](_0x152ffc):'\x20'[_0x571e28(0x19d)](_0x152ffc),_0x10919e=_0x347efc['new']>0x0?String(_0x347efc[_0x571e28(0x188)])[_0x571e28(0x1a8)](_0x152ffc):'\x20'[_0x571e28(0x19d)](_0x152ffc);switch(_0x45a328['type']){case'removed':_0x550624['push'](a210_0x3845ae[_0x571e28(0x1a6)](_0x3da8da+'\x20'+_0x10919e+_0x571e28(0x189)+_0x45a328[_0x571e28(0x1a5)]));break;case'added':_0x550624[_0x571e28(0x192)](a210_0x3845ae['green'](_0x3da8da+'\x20'+_0x10919e+_0x571e28(0x1a9)+_0x45a328[_0x571e28(0x1a5)]));break;default:_0x550624[_0x571e28(0x192)](a210_0x3845ae[_0x571e28(0x198)](_0x3da8da+'\x20'+_0x10919e+'\x20\x20\x20'+_0x45a328[_0x571e28(0x1a5)]));break;}}return _0x550624['join']('\x0a');}export function hasChanges(_0x28b2a4){const _0x57bcb7=a210_0x567b;return _0x28b2a4[_0x57bcb7(0x191)](_0x4ffa10=>_0x4ffa10[_0x57bcb7(0x195)]!==_0x57bcb7(0x19b));}function a210_0x15bd(){const _0x47dbfe=['red','has','padStart','\x20+\x20','fill','\x20\x20...','old','new','\x20-\x20','732588IaSpXK','12000dkpvWu','cyan','7778840nCtYpD','1173028VwezcN','814086HwNQgz','unshift','some','push','length','added','type','add','8FhWYKm','dim','removed','forEach','unchanged','min','repeat','382888wGHjEX','3JRFnAi','2190713SxgUIf','max','split','size','10UoJhHc','content'];a210_0x15bd=function(){return _0x47dbfe;};return a210_0x15bd();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x263f6f,_0x5f56f6){const _0x33ed35=a211_0x28bc,_0x4ac6b5=_0x263f6f();while(!![]){try{const _0x2d0b73=-parseInt(_0x33ed35(0xea))/0x1+-parseInt(_0x33ed35(0xe1))/0x2+parseInt(_0x33ed35(0xe5))/0x3+-parseInt(_0x33ed35(0xf4))/0x4+parseInt(_0x33ed35(0xf2))/0x5+parseInt(_0x33ed35(0xf3))/0x6*(-parseInt(_0x33ed35(0xef))/0x7)+parseInt(_0x33ed35(0xed))/0x8;if(_0x2d0b73===_0x5f56f6)break;else _0x4ac6b5['push'](_0x4ac6b5['shift']());}catch(_0x4e0167){_0x4ac6b5['push'](_0x4ac6b5['shift']());}}}(a211_0x3af2,0x7ad65));function a211_0x28bc(_0x4eaa88,_0x5964f7){_0x4eaa88=_0x4eaa88-0xe1;const _0x3af2d1=a211_0x3af2();let _0x28bc70=_0x3af2d1[_0x4eaa88];return _0x28bc70;}import*as a211_0x3f604a from'node:fs';import*as a211_0x4c7860 from'node:path';export function setSecureFilePermissions(_0xaa46e6){const _0x15fb43=a211_0x28bc;try{a211_0x3f604a['chmodSync'](_0xaa46e6,0x180);}catch{console['warn'](_0x15fb43(0xe6)+_0xaa46e6);}}export function setSecureDirectoryPermissions(_0x1b74ce){try{a211_0x3f604a['chmodSync'](_0x1b74ce,0x1c0);}catch{console['warn']('Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20'+_0x1b74ce);}}function a211_0x3af2(){const _0x5c71f4=['mode','existsSync','21528488hgMiie','mkdirSync','176281UzmEdO','toString','\x20has\x20insecure\x20permissions\x20(','1025060FPkmYB','138CNONmV','1760548JefAVV','1580744CxyYJm','dirname','Warning:\x20',').\x20','245184HnZLot','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','statSync','Should\x20be\x200600\x20or\x20more\x20restrictive.','warn','664942oJnAtJ'];a211_0x3af2=function(){return _0x5c71f4;};return a211_0x3af2();}export function createSecureDirectory(_0x3988aa){const _0x31263b=a211_0x28bc;!a211_0x3f604a[_0x31263b(0xec)](_0x3988aa)&&(a211_0x3f604a[_0x31263b(0xee)](_0x3988aa,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x3988aa));}export function validateSecureFilePermissions(_0x76519e){const _0x66a19c=a211_0x28bc;try{const _0x32cca5=a211_0x3f604a[_0x66a19c(0xe7)](_0x76519e),_0x3a0757=_0x32cca5[_0x66a19c(0xeb)]&0x1ff,_0x25c4e8=(_0x3a0757&0x3f)!==0x0;if(_0x25c4e8)return console[_0x66a19c(0xe9)](_0x66a19c(0xe3)+_0x76519e+_0x66a19c(0xf1)+_0x3a0757[_0x66a19c(0xf0)](0x8)+_0x66a19c(0xe4)+_0x66a19c(0xe8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0xbe500d,_0x3f26a2){const _0x3e6ce=a211_0x28bc,_0x395d71=a211_0x4c7860[_0x3e6ce(0xe2)](_0xbe500d);createSecureDirectory(_0x395d71),a211_0x3f604a['writeFileSync'](_0xbe500d,_0x3f26a2,{'mode':0x180}),setSecureFilePermissions(_0xbe500d);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a212_0x1c5c(){const _0x2a0183=['62544misBiB','49615bEXFrl','470013dceKVv','ENOENT','383782iAbdVx','24996PQUfsG','Error\x20reading\x20file\x20\x27','132CDhWFE','1224mnGmTH','INTERNAL','message','Permission\x20denied\x20reading\x20file\x20\x27','\x27:\x20','\x27\x20not\x20found','3043728gtAiwD','File\x20\x27','NOT_FOUND','PERMISSION_DENIED','code','4634sRYZiA','EACCES'];a212_0x1c5c=function(){return _0x2a0183;};return a212_0x1c5c();}(function(_0x577b51,_0x5ef81f){const _0x31c157=a212_0x52b7,_0x425953=_0x577b51();while(!![]){try{const _0x15284a=-parseInt(_0x31c157(0x1bb))/0x1+-parseInt(_0x31c157(0x1ba))/0x2+parseInt(_0x31c157(0x1cd))/0x3+parseInt(_0x31c157(0x1cb))/0x4+parseInt(_0x31c157(0x1cc))/0x5*(-parseInt(_0x31c157(0x1bd))/0x6)+-parseInt(_0x31c157(0x1c9))/0x7*(-parseInt(_0x31c157(0x1be))/0x8)+parseInt(_0x31c157(0x1c4))/0x9;if(_0x15284a===_0x5ef81f)break;else _0x425953['push'](_0x425953['shift']());}catch(_0x302c5b){_0x425953['push'](_0x425953['shift']());}}}(a212_0x1c5c,0x2b1d0));function a212_0x52b7(_0x42b2df,_0x57ee2e){_0x42b2df=_0x42b2df-0x1b9;const _0x1c5c00=a212_0x1c5c();let _0x52b7ee=_0x1c5c00[_0x42b2df];return _0x52b7ee;}import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x40e440){const _0x42a7b2=a212_0x52b7;try{return readFileSync(_0x40e440,'utf-8');}catch(_0x20ead9){const _0x4d3723=_0x20ead9[_0x42a7b2(0x1c8)];if(_0x4d3723===_0x42a7b2(0x1b9))throw new SDKError(ErrorCode[_0x42a7b2(0x1c6)],_0x42a7b2(0x1c5)+_0x40e440+_0x42a7b2(0x1c3),_0x20ead9);else{if(_0x4d3723===_0x42a7b2(0x1ca))throw new SDKError(ErrorCode[_0x42a7b2(0x1c7)],_0x42a7b2(0x1c1)+_0x40e440+'\x27',_0x20ead9);else throw new SDKError(ErrorCode[_0x42a7b2(0x1bf)],_0x42a7b2(0x1bc)+_0x40e440+_0x42a7b2(0x1c2)+_0x20ead9[_0x42a7b2(0x1c0)],_0x20ead9);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x3c9b53,_0x48e6f8){const _0x416cbe=a213_0x1923,_0x409d32=_0x3c9b53();while(!![]){try{const _0x46c18c=-parseInt(_0x416cbe(0xba))/0x1+-parseInt(_0x416cbe(0xa3))/0x2*(-parseInt(_0x416cbe(0xa4))/0x3)+parseInt(_0x416cbe(0xb0))/0x4+parseInt(_0x416cbe(0xb5))/0x5*(-parseInt(_0x416cbe(0xaa))/0x6)+-parseInt(_0x416cbe(0xb7))/0x7*(parseInt(_0x416cbe(0x9e))/0x8)+parseInt(_0x416cbe(0xb1))/0x9*(parseInt(_0x416cbe(0xaf))/0xa)+parseInt(_0x416cbe(0xb6))/0xb*(-parseInt(_0x416cbe(0xa1))/0xc);if(_0x46c18c===_0x48e6f8)break;else _0x409d32['push'](_0x409d32['shift']());}catch(_0x20e535){_0x409d32['push'](_0x409d32['shift']());}}}(a213_0x4a80,0xe8287));import*as a213_0x1772c4 from'node:https';function a213_0x1923(_0x5351f4,_0x371f70){_0x5351f4=_0x5351f4-0x9d;const _0x4a80d1=a213_0x4a80();let _0x1923b2=_0x4a80d1[_0x5351f4];return _0x1923b2;}const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x4d6c91,_0x24874f,_0x1ae991){const _0x1ac02e=a213_0x1923,_0x5013da=_0x4d6c91+'/'+_0x24874f,_0x5dcc93=cache[_0x1ac02e(0xae)](_0x5013da);if(_0x5dcc93&&Date[_0x1ac02e(0xab)]()-_0x5dcc93[_0x1ac02e(0xa8)]<CACHE_TTL_MS)return Promise[_0x1ac02e(0xa9)](_0x5dcc93['releases']);return new Promise((_0x4c7b95,_0x577abb)=>{const _0x4c7062=_0x1ac02e,_0x2071a4={'hostname':'api.github.com','path':'/repos/'+_0x4d6c91+'/'+_0x24874f+_0x4c7062(0xa5),'headers':{'User-Agent':_0x1ae991,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x5508cb=a213_0x1772c4[_0x4c7062(0xae)](_0x2071a4,_0x408b5b=>{const _0x4c79e2=_0x4c7062;let _0x4b063e='';_0x408b5b['on'](_0x4c79e2(0xb8),_0x477059=>{_0x4b063e+=_0x477059['toString']();}),_0x408b5b['on'](_0x4c79e2(0xa0),()=>{const _0x2c67aa=_0x4c79e2;if(_0x408b5b['statusCode']!==0xc8){_0x577abb(new Error(_0x2c67aa(0xa2)+_0x408b5b[_0x2c67aa(0xac)]+':\x20'+_0x4b063e[_0x2c67aa(0xb4)](0x0,0xc8)));return;}try{const _0x3ded7c=JSON[_0x2c67aa(0xb2)](_0x4b063e);cache[_0x2c67aa(0xa7)](_0x5013da,{'releases':_0x3ded7c,'fetchedAt':Date['now']()}),_0x4c7b95(_0x3ded7c);}catch(_0x546991){_0x577abb(_0x546991);}});});_0x5508cb['on'](_0x4c7062(0xb9),()=>{const _0x24bc0c=_0x4c7062;_0x5508cb['destroy'](),_0x577abb(new Error(_0x24bc0c(0x9d)+REQUEST_TIMEOUT_MS+'ms'));}),_0x5508cb['on'](_0x4c7062(0x9f),_0x577abb);});}export async function resolveReleaseTag(_0x455e0d,_0x6b6076,_0x3e5d13,_0xb61234){const _0x59b1f0=a213_0x1923;if(_0x455e0d===_0x59b1f0(0xad))return null;const _0x52d8a1=await fetchGitHubReleases(_0x6b6076,_0x3e5d13,_0xb61234);if(_0x52d8a1[_0x59b1f0(0xb3)]===0x0)return null;const _0x52b05b=_0x52d8a1[_0x59b1f0(0xa6)](_0x82c36e=>!_0x82c36e['prerelease']);return _0x52b05b?_0x52b05b['tag_name']:null;}function a213_0x4a80(){const _0x4bf844=['resolve','831666RHecTm','now','statusCode','next','get','410wHukAo','5448324PNDdEX','393039osRkDq','parse','length','slice','50knqJwK','11rqcyxM','7oJsRQr','data','timeout','1147710RXwJQi','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','9086152cnSjvP','error','end','2911188pkVPdK','GitHub\x20API\x20returned\x20','1570xpUINE','6537NkVbZr','/releases?per_page=20','find','set','fetchedAt'];a213_0x4a80=function(){return _0x4bf844;};return a213_0x4a80();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x6c2d93,_0x31d0a6){const _0x28c56f=a214_0x1007,_0x347966=_0x6c2d93();while(!![]){try{const _0x5fb046=-parseInt(_0x28c56f(0xad))/0x1+parseInt(_0x28c56f(0xac))/0x2*(-parseInt(_0x28c56f(0xba))/0x3)+parseInt(_0x28c56f(0xbd))/0x4+parseInt(_0x28c56f(0xbe))/0x5*(-parseInt(_0x28c56f(0xaf))/0x6)+parseInt(_0x28c56f(0xbf))/0x7*(parseInt(_0x28c56f(0xb2))/0x8)+parseInt(_0x28c56f(0xae))/0x9+parseInt(_0x28c56f(0xb8))/0xa*(parseInt(_0x28c56f(0xbc))/0xb);if(_0x5fb046===_0x31d0a6)break;else _0x347966['push'](_0x347966['shift']());}catch(_0x6fd74e){_0x347966['push'](_0x347966['shift']());}}}(a214_0xa25c,0xa3936));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';function a214_0x1007(_0x3bdc04,_0x24b914){_0x3bdc04=_0x3bdc04-0xab;const _0xa25c33=a214_0xa25c();let _0x100752=_0xa25c33[_0x3bdc04];return _0x100752;}import{homedir}from'os';export function getGlobalCacheDir(){const _0xaa45c8=a214_0x1007;return process.env.TDX_CACHE_DIR||join(homedir(),_0xaa45c8(0xc0),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x2d890d,_0xb4490e){const _0x181636=a214_0x1007,_0x5ba6b5=registry[_0x181636(0xc1)](_0x2d890d);if(_0x5ba6b5&&_0x5ba6b5!==_0xb4490e)throw new Error('Global\x20cache\x20key\x20\x22'+_0x2d890d+'\x22\x20already\x20registered\x20by\x20\x22'+_0x5ba6b5+_0x181636(0xb4)+_0xb4490e+'\x22');registry[_0x181636(0xbb)](_0x2d890d,_0xb4490e);}export function getGlobalCachePath(_0x278d31){return join(getGlobalCacheDir(),_0x278d31);}function ensureGlobalCacheDir(){const _0x142273=getGlobalCacheDir();!existsSync(_0x142273)&&mkdirSync(_0x142273,{'recursive':!![]});}function readCacheJson(_0x56be5d){const _0x411f2f=a214_0x1007,_0x34401f=getGlobalCachePath(_0x56be5d);if(!existsSync(_0x34401f))return undefined;try{const _0xe28797=readFileSync(_0x34401f,'utf-8');return JSON[_0x411f2f(0xb6)](_0xe28797);}catch{return undefined;}}function a214_0xa25c(){const _0x49a95d=['trim','1938896xMQbOS','{profile}','\x22,\x20cannot\x20register\x20for\x20\x22','replace','parse','clear','160fpAQNU','utf-8','3SveTCF','set','989791GJeWBf','2825180twHigF','369785qAVyKt','7KRenwN','.cache','get','default','1388402NJtVtb','33332qILCPV','1066869YWylkY','90GKMNoO','stringify'];a214_0xa25c=function(){return _0x49a95d;};return a214_0xa25c();}function writeCacheJson(_0x1eb71a,_0x37c504){const _0x52e5a3=a214_0x1007;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x1eb71a),JSON[_0x52e5a3(0xb0)](_0x37c504,null,0x2),_0x52e5a3(0xb9));}function readCacheText(_0x58b9bc){const _0x29b900=a214_0x1007,_0xc5ef07=getGlobalCachePath(_0x58b9bc);if(!existsSync(_0xc5ef07))return undefined;try{return readFileSync(_0xc5ef07,_0x29b900(0xb9));}catch{return undefined;}}function writeCacheText(_0x3fbf12,_0x5e4b09){const _0x4011bf=a214_0x1007;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x3fbf12),_0x5e4b09,_0x4011bf(0xb9));}function clearCache(_0x67a709){const _0x3652d8=getGlobalCachePath(_0x67a709);if(existsSync(_0x3652d8))try{unlinkSync(_0x3652d8);}catch{}}function cacheExists(_0x3a4b78){return existsSync(getGlobalCachePath(_0x3a4b78));}export function createGlobalCache(_0x248b94,_0x33e4d7){return registerGlobalCacheKey(_0x248b94,_0x33e4d7),{'read':()=>readCacheJson(_0x248b94),'write':_0xa14413=>writeCacheJson(_0x248b94,_0xa14413),'clear':()=>clearCache(_0x248b94),'exists':()=>cacheExists(_0x248b94),'path':()=>getGlobalCachePath(_0x248b94)};}export function createGlobalTextCache(_0x24f952,_0x1a7190){const _0x3c13d1=a214_0x1007;return registerGlobalCacheKey(_0x24f952,_0x1a7190),{'read':()=>readCacheText(_0x24f952)?.[_0x3c13d1(0xb1)]()||undefined,'write':_0x9167bc=>writeCacheText(_0x24f952,_0x9167bc),'clear':()=>clearCache(_0x24f952),'exists':()=>cacheExists(_0x24f952),'path':()=>getGlobalCachePath(_0x24f952)};}export function createProfileCache(_0x4c75bc,_0x151983){const _0x17bc6e=_0x4927bb=>{const _0x4dfc3b=a214_0x1007,_0x5b0b4c=_0x4927bb||_0x4dfc3b(0xab);return _0x4c75bc[_0x4dfc3b(0xb5)](_0x4dfc3b(0xb3),_0x5b0b4c);};return{'read':_0x488260=>{const _0x4ed6d8=_0x17bc6e(_0x488260);return registerGlobalCacheKey(_0x4ed6d8,_0x151983),readCacheJson(_0x4ed6d8);},'write':(_0x3c3dab,_0xe47153)=>{const _0x16da34=_0x17bc6e(_0x3c3dab);registerGlobalCacheKey(_0x16da34,_0x151983),writeCacheJson(_0x16da34,_0xe47153);},'clear':_0x2d7c18=>{const _0x23e9f6=_0x17bc6e(_0x2d7c18);clearCache(_0x23e9f6);},'exists':_0x438bcc=>{const _0x44e349=_0x17bc6e(_0x438bcc);return cacheExists(_0x44e349);},'path':_0x33ac52=>{const _0x34ca56=_0x17bc6e(_0x33ac52);return getGlobalCachePath(_0x34ca56);}};}export function createOptionalProfileCache(_0x4a7558,_0x1a4d55,_0x481d62={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x481d62,_0x547bda=_0x4b8256=>{return _0x4b8256?''+_0x4a7558+profileSeparator+_0x4b8256+suffix:''+_0x4a7558+suffix;};return{'read':_0x143386=>{const _0x561c67=_0x547bda(_0x143386);return registerGlobalCacheKey(_0x561c67,_0x1a4d55),readCacheJson(_0x561c67);},'write':(_0x288cc6,_0x4271c2)=>{const _0x510814=_0x547bda(_0x4271c2);registerGlobalCacheKey(_0x510814,_0x1a4d55),writeCacheJson(_0x510814,_0x288cc6);},'clear':_0x361ee0=>{const _0x2e25d0=_0x547bda(_0x361ee0);clearCache(_0x2e25d0);},'exists':_0x3eb600=>{const _0x47d31b=_0x547bda(_0x3eb600);return cacheExists(_0x47d31b);},'path':_0x514301=>{const _0x15348a=_0x547bda(_0x514301);return getGlobalCachePath(_0x15348a);}};}export function clearGlobalRegistry(){const _0x2d6577=a214_0x1007;registry[_0x2d6577(0xb7)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x2324f6,_0x220599){const _0x392b5c=a215_0x5d32,_0x34566f=_0x2324f6();while(!![]){try{const _0x485a07=-parseInt(_0x392b5c(0x90))/0x1+parseInt(_0x392b5c(0x9c))/0x2*(parseInt(_0x392b5c(0x8a))/0x3)+-parseInt(_0x392b5c(0x8e))/0x4+-parseInt(_0x392b5c(0xa0))/0x5*(parseInt(_0x392b5c(0x9f))/0x6)+-parseInt(_0x392b5c(0xa1))/0x7*(parseInt(_0x392b5c(0x98))/0x8)+parseInt(_0x392b5c(0x97))/0x9+-parseInt(_0x392b5c(0x8f))/0xa*(-parseInt(_0x392b5c(0x9e))/0xb);if(_0x485a07===_0x220599)break;else _0x34566f['push'](_0x34566f['shift']());}catch(_0x1ef823){_0x34566f['push'](_0x34566f['shift']());}}}(a215_0x2061,0xd6895));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a215_0x5d32(_0x4d97c9,_0x465985){_0x4d97c9=_0x4d97c9-0x8a;const _0x206149=a215_0x2061();let _0x5d320c=_0x206149[_0x4d97c9];return _0x5d320c;}function a215_0x2061(){const _0x572656=['\x27:\x20','1339884RKeIQn','2960EnugOr','NOT_FOUND','parse','Failed\x20to\x20load\x20JSON:\x20','830eyTuFk','Permission\x20denied\x20reading\x20file:\x20','36032711guhqNx','40854ZCSBsU','1230STQchy','26054tGywsv','10749KLvNXx','File\x20not\x20found:\x20','Invalid\x20JSON\x20in\x20file\x20\x27','INTERNAL','1641576mKQPar','10ZPzVPy','570233Byahmu','INVALID_ARGUMENT','code','ENOENT','message','EACCES'];a215_0x2061=function(){return _0x572656;};return a215_0x2061();}export async function loadJSON(_0x1545c2,_0x576f54){const _0x1d902d=a215_0x5d32;try{if(_0x576f54){const _0x5a0184=await readFile(_0x1545c2,'utf-8');try{return JSON[_0x1d902d(0x9a)](_0x5a0184);}catch(_0x219349){throw new SDKError(ErrorCode[_0x1d902d(0x91)],_0x1d902d(0x8c)+_0x1545c2+_0x1d902d(0x96)+(_0x219349 instanceof Error?_0x219349[_0x1d902d(0x94)]:String(_0x219349)));}}else try{return JSON[_0x1d902d(0x9a)](_0x1545c2);}catch(_0x53b85c){throw new SDKError(ErrorCode[_0x1d902d(0x91)],'Invalid\x20JSON\x20string:\x20'+(_0x53b85c instanceof Error?_0x53b85c['message']:String(_0x53b85c)));}}catch(_0x2eb75d){if(_0x2eb75d instanceof SDKError)throw _0x2eb75d;if(_0x2eb75d instanceof Error&&_0x1d902d(0x92)in _0x2eb75d){const _0x348a07=_0x2eb75d;if(_0x348a07[_0x1d902d(0x92)]===_0x1d902d(0x93))throw new SDKError(ErrorCode[_0x1d902d(0x99)],_0x1d902d(0x8b)+_0x1545c2);else{if(_0x348a07['code']===_0x1d902d(0x95))throw new SDKError(ErrorCode['PERMISSION_DENIED'],_0x1d902d(0x9d)+_0x1545c2);}}throw new SDKError(ErrorCode[_0x1d902d(0x8d)],_0x1d902d(0x9b)+(_0x2eb75d instanceof Error?_0x2eb75d[_0x1d902d(0x94)]:String(_0x2eb75d)));}}export async function loadJSONFromOptions(_0x573ef8,_0x1c932c){if(_0x573ef8&&_0x1c932c)throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.');if(_0x573ef8)return await loadJSON(_0x573ef8,![]);if(_0x1c932c)return await loadJSON(_0x1c932c,!![]);return undefined;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a216_0xb5c0d6=a216_0x365d;(function(_0x5312eb,_0x5bd4ee){const _0x5a881f=a216_0x365d,_0x406bc6=_0x5312eb();while(!![]){try{const _0x41946e=parseInt(_0x5a881f(0x168))/0x1+-parseInt(_0x5a881f(0x16c))/0x2*(parseInt(_0x5a881f(0x16a))/0x3)+parseInt(_0x5a881f(0x165))/0x4+parseInt(_0x5a881f(0x16b))/0x5+-parseInt(_0x5a881f(0x16e))/0x6+parseInt(_0x5a881f(0x173))/0x7+parseInt(_0x5a881f(0x161))/0x8*(-parseInt(_0x5a881f(0x169))/0x9);if(_0x41946e===_0x5bd4ee)break;else _0x406bc6['push'](_0x406bc6['shift']());}catch(_0x42269b){_0x406bc6['push'](_0x406bc6['shift']());}}}(a216_0x238a,0x5c9ee));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join,parse}from'path';import{homedir}from'os';const LOCAL_CACHE_DIR=a216_0xb5c0d6(0x162),registry=new Map();export function registerCacheKey(_0x2d2c02,_0x1df9c4){const _0x446cd7=a216_0xb5c0d6,_0xd16ac0=registry[_0x446cd7(0x163)](_0x2d2c02);if(_0xd16ac0&&_0xd16ac0!==_0x1df9c4)throw new Error(_0x446cd7(0x171)+_0x2d2c02+_0x446cd7(0x166)+_0xd16ac0+_0x446cd7(0x164)+_0x1df9c4+'\x22');registry[_0x446cd7(0x172)](_0x2d2c02,_0x1df9c4);}export function getCacheDir(){const _0x2a6b74=process['cwd'](),_0x5d76a8=_0x2a6b74===parse(_0x2a6b74)['root']?homedir():_0x2a6b74;return join(_0x5d76a8,LOCAL_CACHE_DIR);}export function getCachePath(_0x2dac54){return join(getCacheDir(),_0x2dac54);}function ensureCacheDir(){const _0x2c4b84=getCacheDir();!existsSync(_0x2c4b84)&&mkdirSync(_0x2c4b84,{'recursive':!![]});}function readCacheJson(_0x4e7461){const _0x24a99a=a216_0xb5c0d6,_0x218afd=getCachePath(_0x4e7461);if(!existsSync(_0x218afd))return undefined;try{const _0x112d2b=readFileSync(_0x218afd,_0x24a99a(0x16f));return JSON[_0x24a99a(0x174)](_0x112d2b);}catch{return undefined;}}function a216_0x365d(_0x485cbd,_0x3fb3d6){_0x485cbd=_0x485cbd-0x161;const _0x238aea=a216_0x238a();let _0x365d40=_0x238aea[_0x485cbd];return _0x365d40;}function writeCacheJson(_0x343e4c,_0x2ca1f7){const _0x1944ba=a216_0xb5c0d6;ensureCacheDir(),writeFileSync(getCachePath(_0x343e4c),JSON[_0x1944ba(0x167)](_0x2ca1f7,null,0x2),_0x1944ba(0x16f));}function readCacheText(_0x3535ee){const _0x5c4e20=a216_0xb5c0d6,_0x8b1648=getCachePath(_0x3535ee);if(!existsSync(_0x8b1648))return undefined;try{return readFileSync(_0x8b1648,_0x5c4e20(0x16f));}catch{return undefined;}}function writeCacheText(_0x3b42d6,_0x32a809){const _0x35c0d3=a216_0xb5c0d6;ensureCacheDir(),writeFileSync(getCachePath(_0x3b42d6),_0x32a809,_0x35c0d3(0x16f));}function a216_0x238a(){const _0x2cf497=['75JGDTDi','778010jGbMvy','39806Mlkzso','trim','1202442KbZiFR','utf-8','clear','Cache\x20key\x20\x22','set','1643229kNGvhg','parse','16qjZzgL','.cache/tdx','get','\x22,\x20cannot\x20register\x20for\x20\x22','1736476jUtECg','\x22\x20already\x20registered\x20by\x20\x22','stringify','702536uUTxFl','2023416ZUbhtn'];a216_0x238a=function(){return _0x2cf497;};return a216_0x238a();}function clearCache(_0x4ed085){const _0x38179d=getCachePath(_0x4ed085);if(existsSync(_0x38179d))try{unlinkSync(_0x38179d);}catch{}}function cacheExists(_0x810ac7){return existsSync(getCachePath(_0x810ac7));}export function createCache(_0xfe7e80,_0x5d6938){return registerCacheKey(_0xfe7e80,_0x5d6938),{'read':()=>readCacheJson(_0xfe7e80),'write':_0x1967be=>writeCacheJson(_0xfe7e80,_0x1967be),'clear':()=>clearCache(_0xfe7e80),'exists':()=>cacheExists(_0xfe7e80),'path':()=>getCachePath(_0xfe7e80)};}export function createTextCache(_0x118b17,_0x1cacc8){const _0x2658c4=a216_0xb5c0d6;return registerCacheKey(_0x118b17,_0x1cacc8),{'read':()=>readCacheText(_0x118b17)?.[_0x2658c4(0x16d)]()||undefined,'write':_0x35db5f=>writeCacheText(_0x118b17,_0x35db5f),'clear':()=>clearCache(_0x118b17),'exists':()=>cacheExists(_0x118b17),'path':()=>getCachePath(_0x118b17)};}export function clearRegistry(){const _0x31e302=a216_0xb5c0d6;registry[_0x31e302(0x170)]();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a217_0x42fdbf=a217_0xecf8;function a217_0x2b6c(){const _0x234e2d=['TRACE','6755aYvahH','chalk','2262240ibFhkZ','red','format','DEBUG','colorLevel','colors','7086392DsQdES','INFO','dim','15NDKvLB','843564HybPNy','ERROR','WARN','881930abLrKI','3FWAimq','4801851zWXeIx','Chalk','6702rtafea','362492QOhbSq','yellow','message','component','green','77jEURyV','level'];a217_0x2b6c=function(){return _0x234e2d;};return a217_0x2b6c();}(function(_0x3206ce,_0x39bec7){const _0x1d08d6=a217_0xecf8,_0x7fdb95=_0x3206ce();while(!![]){try{const _0x24c824=-parseInt(_0x1d08d6(0x81))/0x1*(-parseInt(_0x1d08d6(0x85))/0x2)+parseInt(_0x1d08d6(0x8f))/0x3+-parseInt(_0x1d08d6(0x7d))/0x4*(parseInt(_0x1d08d6(0x7c))/0x5)+-parseInt(_0x1d08d6(0x84))/0x6*(parseInt(_0x1d08d6(0x8d))/0x7)+parseInt(_0x1d08d6(0x79))/0x8+-parseInt(_0x1d08d6(0x82))/0x9+parseInt(_0x1d08d6(0x80))/0xa*(parseInt(_0x1d08d6(0x8a))/0xb);if(_0x24c824===_0x39bec7)break;else _0x7fdb95['push'](_0x7fdb95['shift']());}catch(_0x2906db){_0x7fdb95['push'](_0x7fdb95['shift']());}}}(a217_0x2b6c,0x87f33));import a217_0x56bfbb from'chalk';function a217_0xecf8(_0xb8b35,_0x472547){_0xb8b35=_0xb8b35-0x78;const _0x2b6cac=a217_0x2b6c();let _0xecf83b=_0x2b6cac[_0xb8b35];return _0xecf83b;}import{LogLevel,logLevelToString,formatTimestamp}from'../types.js';const chalkModule=a217_0x56bfbb,ChalkClass=chalkModule[a217_0x42fdbf(0x83)]||chalkModule['default']?.['Chalk'];export class DefaultLogFormatter{[a217_0x42fdbf(0x78)];['chalk'];constructor(_0x306098={}){const _0x3e71a0=a217_0x42fdbf;this[_0x3e71a0(0x78)]=_0x306098[_0x3e71a0(0x78)]??![],this['chalk']=_0x306098[_0x3e71a0(0x78)]&&ChalkClass?new ChalkClass({'level':0x3}):a217_0x56bfbb;}[a217_0x42fdbf(0x91)](_0x1fe93f){const _0x3df624=a217_0x42fdbf,_0x21bb1b=formatTimestamp(_0x1fe93f['timestamp']),_0x353feb=logLevelToString(_0x1fe93f[_0x3df624(0x8b)]);if(!this['colors'])return _0x21bb1b+'\x20['+_0x353feb+']\x20['+_0x1fe93f[_0x3df624(0x88)]+']\x20'+_0x1fe93f[_0x3df624(0x87)];const _0xec731=this[_0x3df624(0x8e)][_0x3df624(0x7b)](_0x21bb1b),_0x2dfdfe=this[_0x3df624(0x93)](_0x353feb,_0x1fe93f[_0x3df624(0x8b)]),_0x29ffd3=this[_0x3df624(0x8e)]['blue']('['+_0x1fe93f[_0x3df624(0x88)]+']');return _0xec731+'\x20'+_0x2dfdfe+'\x20'+_0x29ffd3+'\x20'+_0x1fe93f[_0x3df624(0x87)];}['colorLevel'](_0x210e5e,_0x38cfb3){const _0x218e08=a217_0x42fdbf;switch(_0x38cfb3){case LogLevel[_0x218e08(0x8c)]:return this['chalk']['gray']('['+_0x210e5e+']');case LogLevel[_0x218e08(0x92)]:return this[_0x218e08(0x8e)][_0x218e08(0x89)]('['+_0x210e5e+']');case LogLevel[_0x218e08(0x7a)]:return this['chalk']['cyan']('['+_0x210e5e+']');case LogLevel[_0x218e08(0x7f)]:return this[_0x218e08(0x8e)][_0x218e08(0x86)]('['+_0x210e5e+']');case LogLevel[_0x218e08(0x7e)]:return this[_0x218e08(0x8e)][_0x218e08(0x90)]('['+_0x210e5e+']');default:return'['+_0x210e5e+']';}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1c367f,_0x2d6a97){var _0xaf0bcc=a218_0x180b,_0x434e37=_0x1c367f();while(!![]){try{var _0x1b958f=-parseInt(_0xaf0bcc(0x18b))/0x1+parseInt(_0xaf0bcc(0x18c))/0x2*(-parseInt(_0xaf0bcc(0x192))/0x3)+parseInt(_0xaf0bcc(0x18e))/0x4+parseInt(_0xaf0bcc(0x189))/0x5*(parseInt(_0xaf0bcc(0x18f))/0x6)+-parseInt(_0xaf0bcc(0x18a))/0x7+-parseInt(_0xaf0bcc(0x190))/0x8+parseInt(_0xaf0bcc(0x18d))/0x9*(parseInt(_0xaf0bcc(0x191))/0xa);if(_0x1b958f===_0x2d6a97)break;else _0x434e37['push'](_0x434e37['shift']());}catch(_0xda1bb8){_0x434e37['push'](_0x434e37['shift']());}}}(a218_0x202d,0x2351d));function a218_0x180b(_0x511bdd,_0x14bde4){_0x511bdd=_0x511bdd-0x189;var _0x202d40=a218_0x202d();var _0x180b08=_0x202d40[_0x511bdd];return _0x180b08;}function a218_0x202d(){var _0x12a57f=['2123864QJnaqO','20TytbZe','3qkBRza','309235uRfRVI','1829345XIkcwj','146327GeJUtq','464948MSlGJh','2839239jkyaCC','687832xeSUtz','24cVJHuT'];a218_0x202d=function(){return _0x12a57f;};return a218_0x202d();}export{DefaultLogFormatter}from'./default-formatter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a219_0x235d(_0x3c9981,_0x2473f3){_0x3c9981=_0x3c9981-0xc1;const _0x142e3e=a219_0x142e();let _0x235d16=_0x142e3e[_0x3c9981];return _0x235d16;}const a219_0x5c4ffb=a219_0x235d;(function(_0x1f77d8,_0x287bca){const _0x4cb06f=a219_0x235d,_0x1809e6=_0x1f77d8();while(!![]){try{const _0xc9c3a4=-parseInt(_0x4cb06f(0xc5))/0x1+parseInt(_0x4cb06f(0xcf))/0x2+-parseInt(_0x4cb06f(0xc2))/0x3+-parseInt(_0x4cb06f(0xc7))/0x4*(-parseInt(_0x4cb06f(0xc1))/0x5)+parseInt(_0x4cb06f(0xd0))/0x6+parseInt(_0x4cb06f(0xc3))/0x7*(-parseInt(_0x4cb06f(0xcd))/0x8)+-parseInt(_0x4cb06f(0xc8))/0x9*(parseInt(_0x4cb06f(0xc9))/0xa);if(_0xc9c3a4===_0x287bca)break;else _0x1809e6['push'](_0x1809e6['shift']());}catch(_0x1ca99f){_0x1809e6['push'](_0x1809e6['shift']());}}}(a219_0x142e,0x8b1f3));import{LogLevel as a219_0x3e7ce1}from'../types.js';import{DefaultLogFormatter}from'../formatters/index.js';export class ConsoleHandler{['minLevel'];[a219_0x5c4ffb(0xcc)];[a219_0x5c4ffb(0xce)];constructor(_0x5a3738={}){const _0x14f2dc=a219_0x5c4ffb;this[_0x14f2dc(0xd1)]=_0x5a3738[_0x14f2dc(0xd1)]??a219_0x3e7ce1[_0x14f2dc(0xca)],this[_0x14f2dc(0xcc)]=_0x5a3738[_0x14f2dc(0xcc)]??!![],this[_0x14f2dc(0xce)]=new DefaultLogFormatter({'colors':_0x5a3738[_0x14f2dc(0xc4)]??!![]});}['handle'](_0x473502){const _0x1a7ffe=a219_0x5c4ffb;if(_0x473502[_0x1a7ffe(0xcb)]<this[_0x1a7ffe(0xd1)])return;const _0x4ffad0=this['formatter'][_0x1a7ffe(0xc6)](_0x473502);this[_0x1a7ffe(0xcc)]&&_0x473502['level']>=a219_0x3e7ce1[_0x1a7ffe(0xca)]?console['error'](_0x4ffad0):console['log'](_0x4ffad0);}}function a219_0x142e(){const _0x3006a2=['colors','313413tdwuIO','format','3644936jhmwqg','9tPLDif','3367260gsTBSt','WARN','level','useStderr','8UCOXik','formatter','865198jACzmg','3865764FrGYBM','minLevel','5dIksYl','2229666gXTOxk','174461AsWoow'];a219_0x142e=function(){return _0x3006a2;};return a219_0x142e();}
|