@treasuredata/tdx 2026.4.9 → 2026.4.11
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.d.ts.map +1 -1
- package/dist/commands/claude-command.js +1 -1
- package/dist/commands/claude-command.js.map +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.js +1 -1
- package/dist/sdk/segment/journey-utils.js +1 -1
- package/dist/sdk/segment/journey-validator.js +1 -1
- package/dist/sdk/segment/journey-yaml.js +1 -1
- package/dist/sdk/segment/parent-segment-preview.js +1 -1
- package/dist/sdk/segment/parent-segment-yaml.js +1 -1
- package/dist/sdk/segment/pull-workflow.js +1 -1
- package/dist/sdk/segment/push-recovery.js +1 -1
- package/dist/sdk/segment/push-workflow.js +1 -1
- package/dist/sdk/segment/resolution-context.js +1 -1
- package/dist/sdk/segment/segment-path-parser.js +1 -1
- package/dist/sdk/segment/segment-ref-parser.js +1 -1
- package/dist/sdk/segment/segment-validator.js +1 -1
- package/dist/sdk/segment/target-resolution.js +1 -1
- package/dist/sdk/segment/tdx-config.js +1 -1
- package/dist/sdk/segment/types/activation-schema.js +1 -1
- package/dist/sdk/segment/types/journey-def.js +1 -1
- package/dist/sdk/segment/types/journey-schema.js +1 -1
- package/dist/sdk/segment/types/segment-def.js +1 -1
- package/dist/sdk/segment/types/segment-schema.js +1 -1
- package/dist/sdk/segment/validate-files.js +1 -1
- package/dist/sdk/segment/yaml-validator.js +1 -1
- package/dist/sdk/segment.js +1 -1
- package/dist/sdk/types/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/access-tracker.js +1 -1
- package/dist/sdk/workspace/frontmatter.js +1 -1
- package/dist/sdk/workspace/git.d.ts +52 -0
- package/dist/sdk/workspace/git.d.ts.map +1 -1
- package/dist/sdk/workspace/git.js +1 -1
- package/dist/sdk/workspace/git.js.map +1 -1
- package/dist/sdk/workspace/index.d.ts +14 -0
- 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/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 +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x33fd8b,_0x185832){const _0x15ee5b=a203_0x477a,_0x283529=_0x33fd8b();while(!![]){try{const _0x49c78b=-parseInt(_0x15ee5b(0xb7))/0x1*(parseInt(_0x15ee5b(0x97))/0x2)+-parseInt(_0x15ee5b(0x91))/0x3*(parseInt(_0x15ee5b(0xa3))/0x4)+parseInt(_0x15ee5b(0xa7))/0x5+-parseInt(_0x15ee5b(0x99))/0x6+parseInt(_0x15ee5b(0x9f))/0x7*(parseInt(_0x15ee5b(0xbb))/0x8)+-parseInt(_0x15ee5b(0x92))/0x9+parseInt(_0x15ee5b(0xac))/0xa;if(_0x49c78b===_0x185832)break;else _0x283529['push'](_0x283529['shift']());}catch(_0x110029){_0x283529['push'](_0x283529['shift']());}}}(a203_0x16e5,0x61e13));import*as a203_0xc61c2 from'node:fs';import*as a203_0x9cc662 from'node:path';import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x158b77){const _0x5e6b3d=a203_0x477a,_0x4d6587=[];let _0x55357a;WIKI_LINK_REGEX[_0x5e6b3d(0x95)]=0x0;while((_0x55357a=WIKI_LINK_REGEX[_0x5e6b3d(0x9e)](_0x158b77))!==null){const _0x39bfe2=_0x55357a[0x1],_0x120eef=_0x39bfe2['indexOf']('|');let _0xa5af36,_0xa42827;_0x120eef!==-0x1?(_0xa5af36=_0x39bfe2[_0x5e6b3d(0xad)](0x0,_0x120eef)[_0x5e6b3d(0xbd)](),_0xa42827=_0x39bfe2[_0x5e6b3d(0xad)](_0x120eef+0x1)[_0x5e6b3d(0xbd)]()):_0xa5af36=_0x39bfe2[_0x5e6b3d(0xbd)](),_0x4d6587['push']({'raw':_0x55357a[0x0],'slug':_0xa5af36,'displayText':_0xa42827});}return _0x4d6587;}export function collectMarkdownFiles(_0x2b4fa4,_0x169b16=0x0){const _0x38bc33=a203_0x477a;if(_0x169b16>0x5)return[];if(!a203_0xc61c2[_0x38bc33(0x9d)](_0x2b4fa4))return[];const _0x50c893=[];try{for(const _0x253eea of a203_0xc61c2[_0x38bc33(0xb3)](_0x2b4fa4,{'withFileTypes':!![]})){if(_0x253eea[_0x38bc33(0xab)]['startsWith']('.'))continue;if(_0x253eea[_0x38bc33(0xa9)]())continue;const _0x4d4d2a=a203_0x9cc662[_0x38bc33(0xb6)](_0x2b4fa4,_0x253eea[_0x38bc33(0xab)]);if(_0x253eea[_0x38bc33(0xa4)]())_0x50c893[_0x38bc33(0xa2)](...collectMarkdownFiles(_0x4d4d2a,_0x169b16+0x1));else _0x253eea[_0x38bc33(0xab)][_0x38bc33(0xbc)](_0x38bc33(0xa8))&&_0x50c893['push'](_0x4d4d2a);}}catch{}return _0x50c893;}export function buildFileIndex(_0x51232a){const _0x5ccf37=a203_0x477a,_0x2da782=new Map();for(const [_0x3323b5,_0x273fdd]of Object[_0x5ccf37(0xaf)](DOCUMENT_KIND_FOLDERS)){const _0x1480d8=a203_0x9cc662[_0x5ccf37(0xb6)](_0x51232a,_0x273fdd),_0xe12051=collectMarkdownFiles(_0x1480d8);for(const _0x1c724a of _0xe12051){const _0x525a45=a203_0x9cc662[_0x5ccf37(0xa5)](_0x1c724a,'.md'),_0x57ee3f={'stem':_0x525a45,'kind':_0x3323b5,'filePath':_0x1c724a,'folder':_0x273fdd},_0x28554d=_0x2da782[_0x5ccf37(0xa0)](_0x525a45)||[];_0x28554d['push'](_0x57ee3f),_0x2da782[_0x5ccf37(0x96)](_0x525a45,_0x28554d);}}return _0x2da782;}function a203_0x477a(_0x1db1b8,_0x23c99c){_0x1db1b8=_0x1db1b8-0x91;const _0x16e5bc=a203_0x16e5();let _0x477a44=_0x16e5bc[_0x1db1b8];return _0x477a44;}export function resolveWikiLinks(_0xb7b389,_0x56cf98){const _0xecf007=a203_0x477a,_0x303124=parseWikiLinks(_0xb7b389);for(const _0x9140e9 of _0x303124){const {slug:_0x436eae}=_0x9140e9,_0x54a8d2=_0x436eae[_0xecf007(0x9c)]('/');if(_0x54a8d2!==-0x1){const _0x51239f=_0x436eae['slice'](0x0,_0x54a8d2),_0x5e920d=_0x436eae[_0xecf007(0xad)](_0x54a8d2+0x1),_0x49ed2b=_0x56cf98[_0xecf007(0xa0)](_0x5e920d);if(_0x49ed2b){const _0x1606d6=_0x49ed2b[_0xecf007(0x93)](_0x52766c=>_0x52766c['folder']===_0x51239f);_0x1606d6&&(_0x9140e9['resolvedPath']=_0x1606d6['filePath'],_0x9140e9['resolvedKind']=_0x1606d6['kind']);}continue;}const _0x236540=_0x56cf98['get'](_0x436eae);if(_0x236540&&_0x236540['length']>0x0){const _0xa30c2b=_0x236540[_0xecf007(0xae)]((_0x4f8968,_0x43fe5b)=>(KIND_PRIORITY[_0x43fe5b['kind']]||0x0)-(KIND_PRIORITY[_0x4f8968[_0xecf007(0xba)]]||0x0));_0x9140e9[_0xecf007(0x98)]=_0xa30c2b[0x0]['filePath'],_0x9140e9[_0xecf007(0xb4)]=_0xa30c2b[0x0][_0xecf007(0xba)];}}return _0x303124;}function a203_0x16e5(){const _0x393e74=['slice','sort','entries','add','referencedBy','has','readdirSync','resolvedKind','lastIndexOf','join','453415uzRPjU','readFileSync','some','kind','73736ERRoFD','endsWith','trim','workflows','6MxgOIi','2296080oQHLQG','find','slug','lastIndex','set','2hfNlKl','resolvedPath','1233852BTRbmB','includes','match','indexOf','existsSync','exec','77JZDdxT','get','replace','push','1528612oLpLtU','isDirectory','basename','length','3968060TQiQJu','.md','isSymbolicLink','templates','name','11843990sEIILy'];a203_0x16e5=function(){return _0x393e74;};return a203_0x16e5();}export function linkStem(_0x396fe1){const _0x2f6a54=a203_0x477a,_0x424cc2=_0x396fe1[_0x2f6a54(0xb5)]('/');return _0x424cc2!==-0x1?_0x396fe1[_0x2f6a54(0xad)](_0x424cc2+0x1):_0x396fe1;}function hasDocEntry(_0x567f12){return _0x567f12?.['some'](_0x462ce5=>isTrackableKind(_0x462ce5['kind']))??![];}export function findTransitiveDependencies(_0xf72734,_0x194b60,_0x576fb6){const _0x24966e=a203_0x477a,_0x50a076=new Map(),_0x5e3e11=new Set(_0xf72734),_0x438c9f=[..._0xf72734];function _0x443f2c(_0x36aa3d,_0x4b2a31){const _0xb041c7=a203_0x477a;for(const _0xf871bc of parseWikiLinks(_0x4b2a31)){const _0x2577f8=_0xf871bc[_0xb041c7(0x94)][_0xb041c7(0x9c)]('/');if(_0x2577f8!==-0x1){const _0x282b26=_0xf871bc[_0xb041c7(0x94)][_0xb041c7(0xad)](0x0,_0x2577f8);if(_0x282b26===_0xb041c7(0xaa)||_0x282b26===_0xb041c7(0xbe))continue;}const _0x5553bc=linkStem(_0xf871bc[_0xb041c7(0x94)]);if(!hasDocEntry(_0x194b60['get'](_0x5553bc)))continue;if(!_0x5e3e11[_0xb041c7(0xb2)](_0x5553bc))_0x5e3e11[_0xb041c7(0xb0)](_0x5553bc),_0x438c9f[_0xb041c7(0xa2)](_0x5553bc),_0x50a076[_0xb041c7(0x96)](_0x5553bc,{'referencedBy':[_0x36aa3d]});else{if(_0x50a076[_0xb041c7(0xb2)](_0x5553bc)){const _0x4fb151=_0x50a076['get'](_0x5553bc);!_0x4fb151[_0xb041c7(0xb1)][_0xb041c7(0x9a)](_0x36aa3d)&&_0x4fb151[_0xb041c7(0xb1)][_0xb041c7(0xa2)](_0x36aa3d);}}}}while(_0x438c9f[_0x24966e(0xa6)]>0x0){const _0x16a0e3=_0x438c9f['shift'](),_0x2fcbaa=_0x576fb6(_0x16a0e3);if(_0x2fcbaa)_0x443f2c(_0x16a0e3,_0x2fcbaa);}return _0x50a076;}export function getBacklinks(_0x58b612,_0x69f8cc){const _0x3f1bd1=a203_0x477a,_0xe8b42c=[];for(const [_0x6117b4,_0x31fdf4]of Object[_0x3f1bd1(0xaf)](DOCUMENT_KIND_FOLDERS)){const _0x54ff0b=a203_0x9cc662['join'](_0x69f8cc,_0x31fdf4),_0x4c1058=collectMarkdownFiles(_0x54ff0b);for(const _0x27fd25 of _0x4c1058){const _0x5ef7c3=a203_0xc61c2[_0x3f1bd1(0xb8)](_0x27fd25,'utf-8'),_0x1d9a3e=parseWikiLinks(_0x5ef7c3),_0x4e12e1=_0x1d9a3e[_0x3f1bd1(0xb9)](_0x59b841=>{const _0x433632=_0x3f1bd1,_0x1bec9a=_0x59b841[_0x433632(0x94)][_0x433632(0x9c)]('/'),_0x1b87a1=_0x1bec9a!==-0x1?_0x59b841[_0x433632(0x94)][_0x433632(0xad)](_0x1bec9a+0x1):_0x59b841[_0x433632(0x94)];return _0x1b87a1===_0x58b612;});if(_0x4e12e1){const _0x31d2f5=_0x5ef7c3[_0x3f1bd1(0x9b)](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x30abfb=a203_0x9cc662[_0x3f1bd1(0xa5)](_0x27fd25),_0x42f6dc=_0x31d2f5?_0x31d2f5[0x1][_0x3f1bd1(0xa1)](/^['"]|['"]$/g,''):_0x30abfb;_0xe8b42c[_0x3f1bd1(0xa2)]({'filePath':_0x27fd25,'kind':_0x6117b4,'title':_0x42f6dc});}}}return _0xe8b42c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a204_0x175f57=a204_0x5d1d;(function(_0x65ed2f,_0x34d218){const _0x4ee0b2=a204_0x5d1d,_0x5197ea=_0x65ed2f();while(!![]){try{const _0x157616=-parseInt(_0x4ee0b2(0x157))/0x1*(-parseInt(_0x4ee0b2(0x163))/0x2)+parseInt(_0x4ee0b2(0x161))/0x3+parseInt(_0x4ee0b2(0x159))/0x4+-parseInt(_0x4ee0b2(0x158))/0x5+-parseInt(_0x4ee0b2(0x152))/0x6*(-parseInt(_0x4ee0b2(0x16a))/0x7)+-parseInt(_0x4ee0b2(0x166))/0x8*(parseInt(_0x4ee0b2(0x155))/0x9)+parseInt(_0x4ee0b2(0x14f))/0xa*(parseInt(_0x4ee0b2(0x15c))/0xb);if(_0x157616===_0x34d218)break;else _0x5197ea['push'](_0x5197ea['shift']());}catch(_0x88935c){_0x5197ea['push'](_0x5197ea['shift']());}}}(a204_0x3038,0x200a6));import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';function a204_0x5d1d(_0x5eafa6,_0x500c0c){_0x5eafa6=_0x5eafa6-0x14c;const _0x3038f9=a204_0x3038();let _0x5d1de2=_0x3038f9[_0x5eafa6];return _0x5d1de2;}export class CommandRunner{[a204_0x175f57(0x169)];[a204_0x175f57(0x162)];constructor(){const _0x4c58a0=a204_0x175f57;this[_0x4c58a0(0x169)]=createHTTPMock(),this[_0x4c58a0(0x162)]=global[_0x4c58a0(0x168)];}[a204_0x175f57(0x15e)](){const _0x178590=a204_0x175f57;this[_0x178590(0x162)]=global[_0x178590(0x168)],global[_0x178590(0x168)]=this[_0x178590(0x169)]['createFetch']();}[a204_0x175f57(0x165)](_0x17d72f){const _0x47b0b5=a204_0x175f57;try{_0x17d72f?.[_0x47b0b5(0x167)]&&this[_0x47b0b5(0x169)][_0x47b0b5(0x150)](_0x17d72f);}finally{global[_0x47b0b5(0x168)]=this[_0x47b0b5(0x162)],this[_0x47b0b5(0x169)][_0x47b0b5(0x15a)]();}}async['run'](_0xf624f1,_0x56244f={}){const _0x1680f0=a204_0x175f57,_0x1fcda5=[],_0x2e62ca=[],_0x4ebf7e=console[_0x1680f0(0x15f)],_0x5a8a62=console[_0x1680f0(0x151)],_0x108d62=console['warn'];console[_0x1680f0(0x15f)]=(..._0x17e300)=>{const _0x298cd6=_0x1680f0;_0x1fcda5[_0x298cd6(0x14d)](_0x17e300[_0x298cd6(0x156)](String)[_0x298cd6(0x164)]('\x20'));},console[_0x1680f0(0x151)]=(..._0x336e4d)=>{const _0x457f0f=_0x1680f0;_0x2e62ca['push'](_0x336e4d['map'](String)[_0x457f0f(0x164)]('\x20'));},console[_0x1680f0(0x154)]=(..._0x577ac6)=>{const _0x1452a7=_0x1680f0;_0x2e62ca[_0x1452a7(0x14d)](_0x577ac6['map'](String)[_0x1452a7(0x164)]('\x20'));};try{const _0x48c886=new TDX({'site':_0x56244f[_0x1680f0(0x153)]?.['site']??_0x1680f0(0x14e),'apiKey':'test-api-key-id/test-api-key-secret','logLevel':LogLevel[_0x1680f0(0x15d)]}),_0x496376={'options':createTestGlobalOptions(_0x56244f['options']),'args':_0x56244f[_0x1680f0(0x14c)]??[],'tdx':_0x48c886},_0x39879b=new _0xf624f1(),_0x1155c1=await _0x39879b[_0x1680f0(0x15b)](_0x496376);return{'exitCode':_0x1155c1,'stdout':_0x1fcda5,'stderr':_0x2e62ca};}finally{console[_0x1680f0(0x15f)]=_0x4ebf7e,console[_0x1680f0(0x151)]=_0x5a8a62,console['warn']=_0x108d62;}}async[a204_0x175f57(0x160)](_0x42b6e3){const _0x35b94a=a204_0x175f57,_0x206c14=[];for(const {command:_0x328926,options:_0x53629a}of _0x42b6e3){const _0x49bf81=await this[_0x35b94a(0x15b)](_0x328926,_0x53629a);_0x206c14['push'](_0x49bf81);if(_0x49bf81['exitCode']!==0x0)break;}return _0x206c14;}}export function createCommandRunner(){return new CommandRunner();}function a204_0x3038(){const _0x354c7d=['originalFetch','2cDaRqp','join','teardown','8HMoVek','fail','fetch','http','511YSpvqW','args','push','us01','1060WzwApx','verify','error','10716qDbojG','options','warn','109485kkkEtM','map','64587bWeWef','1174885gRwBCk','456444ISOLfh','reset','run','6952Dnvulx','ERROR','setup','log','runSequence','6936ZuEPnQ'];a204_0x3038=function(){return _0x354c7d;};return a204_0x3038();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a205_0x518f(_0x1f3394,_0xde64b9){_0x1f3394=_0x1f3394-0x121;const _0x4ea369=a205_0x4ea3();let _0x518f62=_0x4ea369[_0x1f3394];return _0x518f62;}function a205_0x4ea3(){const _0x584dff=['245397WcGguW','tdx','args','query','27132YFDsEA','665jDGzZC','api','reset','warn','test-api-key','9StEcKf','ERROR','866570hfChEn','599034DgFRwh','error','join','8WnCUqC','table','user','1105170AAdFue','DEBUG','test-api-key-id/test-api-key-secret','journey','push','3526784rLdxIK','30000','us01','workflow','tdx-test.log','map','log','options','381339FmGxiL'];a205_0x4ea3=function(){return _0x584dff;};return a205_0x4ea3();}(function(_0x1a1e99,_0x4a47ae){const _0x24ada3=a205_0x518f,_0x1f06ff=_0x1a1e99();while(!![]){try{const _0x5dd8ec=parseInt(_0x24ada3(0x131))/0x1+parseInt(_0x24ada3(0x13f))/0x2+parseInt(_0x24ada3(0x132))/0x3+parseInt(_0x24ada3(0x121))/0x4*(-parseInt(_0x24ada3(0x13e))/0x5)+-parseInt(_0x24ada3(0x136))/0x6*(-parseInt(_0x24ada3(0x137))/0x7)+parseInt(_0x24ada3(0x129))/0x8*(-parseInt(_0x24ada3(0x13c))/0x9)+-parseInt(_0x24ada3(0x124))/0xa;if(_0x5dd8ec===_0x4a47ae)break;else _0x1f06ff['push'](_0x1f06ff['shift']());}catch(_0x20363c){_0x1f06ff['push'](_0x1f06ff['shift']());}}}(a205_0x4ea3,0x47d6c));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(_0xe9024b){const _0x20f021=a205_0x518f;return{'site':'us01','apiKey':_0x20f021(0x126),'logLevel':LogLevel[_0x20f021(0x13d)],..._0xe9024b};}export function createTestGlobalOptions(_0x1574d5){const _0x124bc7=a205_0x518f;return{'site':_0x124bc7(0x12b),'format':_0x124bc7(0x122),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x124bc7(0x12a),'dryRun':![],'yes':![],'logLevel':LogLevel[_0x124bc7(0x13d)],..._0x1574d5};}export async function initTestLogger(){const _0x3589d5=a205_0x518f;Logger[_0x3589d5(0x139)]();const _0x3c5152=join(getGlobalCacheDir(),'logs',_0x3589d5(0x12d));await Logger['init']({'defaultLevel':LogLevel[_0x3589d5(0x125)],'handlers':[new FileHandler({'filePath':_0x3c5152,'rotate':![]})]});}export function resetTestLogger(){const _0x4c0241=a205_0x518f;Logger[_0x4c0241(0x139)]();}export function createMockTDX(_0x301995){const _0xa30b01=a205_0x518f;return{'context':{'site':_0xa30b01(0x12b),'apiKey':_0xa30b01(0x13b),'logLevel':LogLevel['ERROR']},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x301995?.[_0xa30b01(0x135)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x301995?.['segment']},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x301995?.[_0xa30b01(0x127)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x301995?.[_0xa30b01(0x12c)]},'user':{'show':vi['fn'](),..._0x301995?.[_0xa30b01(0x123)]},'api':{'request':vi['fn'](),..._0x301995?.[_0xa30b01(0x138)]},..._0x301995};}export function createTestCommandContext(_0x4926a6){const _0x1ebaf8=a205_0x518f,_0x41c0eb=createTestGlobalOptions(_0x4926a6?.[_0x1ebaf8(0x130)]),_0x351038=_0x4926a6?.[_0x1ebaf8(0x133)]??createMockTDX();return{'options':_0x41c0eb,'args':_0x4926a6?.[_0x1ebaf8(0x134)]??[],'tdx':_0x351038};}export function captureConsole(){const _0x4ab662=a205_0x518f,_0x2bef8c=[],_0x516928=[],_0x4d9a57=console[_0x4ab662(0x12f)],_0x1ffb99=console[_0x4ab662(0x140)],_0x506a88=console['warn'];return console[_0x4ab662(0x12f)]=(..._0x162710)=>{const _0x2d3b30=_0x4ab662;_0x2bef8c[_0x2d3b30(0x128)](_0x162710[_0x2d3b30(0x12e)](String)['join']('\x20'));},console[_0x4ab662(0x140)]=(..._0xb23c8c)=>{const _0x5caf2f=_0x4ab662;_0x516928[_0x5caf2f(0x128)](_0xb23c8c[_0x5caf2f(0x12e)](String)[_0x5caf2f(0x141)]('\x20'));},console[_0x4ab662(0x13a)]=(..._0x5ce35f)=>{const _0x53beae=_0x4ab662;_0x516928[_0x53beae(0x128)](_0x5ce35f['map'](String)['join']('\x20'));},{'stdout':_0x2bef8c,'stderr':_0x516928,'restore':()=>{const _0x44443c=_0x4ab662;console[_0x44443c(0x12f)]=_0x4d9a57,console['error']=_0x1ffb99,console[_0x44443c(0x13a)]=_0x506a88;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a206_0x1db324=a206_0x56d2;(function(_0x4fb3ba,_0x32e472){const _0x572abc=a206_0x56d2,_0x41b184=_0x4fb3ba();while(!![]){try{const _0x516b41=-parseInt(_0x572abc(0xb4))/0x1*(parseInt(_0x572abc(0xdb))/0x2)+parseInt(_0x572abc(0xc8))/0x3*(-parseInt(_0x572abc(0x98))/0x4)+-parseInt(_0x572abc(0x86))/0x5+-parseInt(_0x572abc(0xa1))/0x6+-parseInt(_0x572abc(0xa4))/0x7*(-parseInt(_0x572abc(0xbd))/0x8)+-parseInt(_0x572abc(0xdc))/0x9*(parseInt(_0x572abc(0xba))/0xa)+parseInt(_0x572abc(0xaa))/0xb;if(_0x516b41===_0x32e472)break;else _0x41b184['push'](_0x41b184['shift']());}catch(_0x5a44e4){_0x41b184['push'](_0x41b184['shift']());}}}(a206_0x3363,0x52b95));export const fixtures={'database':{'basic':{'name':a206_0x1db324(0xb1),'count':0x5,'created_at':a206_0x1db324(0x88),'updated_at':'2024-01-01T00:00:00Z','permission':'administrator'},'withTables':{'name':'production_db','count':0x64,'created_at':a206_0x1db324(0xb6),'updated_at':a206_0x1db324(0xb8),'permission':a206_0x1db324(0xbe)}},'table':{'basic':{'id':0x3039,'name':a206_0x1db324(0x8a),'type':a206_0x1db324(0xb3),'schema':JSON[a206_0x1db324(0xca)]([['id',a206_0x1db324(0x85)],[a206_0x1db324(0xc7),a206_0x1db324(0x99)],[a206_0x1db324(0xe8),a206_0x1db324(0x85)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0x88)},'events':{'id':0x303a,'name':a206_0x1db324(0x9d),'type':'log','schema':JSON['stringify']([[a206_0x1db324(0x8c),a206_0x1db324(0x85)],[a206_0x1db324(0xc7),a206_0x1db324(0x99)],[a206_0x1db324(0xa8),a206_0x1db324(0x85)],['event_type',a206_0x1db324(0x85)],[a206_0x1db324(0xd8),a206_0x1db324(0xa5)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xa7)}},'parentSegment':{'basic':{'id':'ps-123456','name':'Test\x20Parent\x20Segment','description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':'active','master_table':{'database':a206_0x1db324(0xc0),'table':a206_0x1db324(0x9c)},'attributes':[{'name':'customer_id','type':a206_0x1db324(0x85),'key':!![]},{'name':'email','type':a206_0x1db324(0x85)},{'name':'created_at','type':'timestamp'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)},'withBehaviors':{'id':a206_0x1db324(0xe2),'name':a206_0x1db324(0x84),'description':a206_0x1db324(0x91),'status':a206_0x1db324(0xac),'master_table':{'database':a206_0x1db324(0xc0),'table':'customers'},'behaviors':[{'name':a206_0x1db324(0x8d),'table':{'database':a206_0x1db324(0xc4),'table':a206_0x1db324(0x8d)},'join_key':'customer_id'},{'name':a206_0x1db324(0x87),'table':{'database':a206_0x1db324(0xc4),'table':'pageviews'},'join_key':'customer_id'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)}},'segment':{'basic':{'id':a206_0x1db324(0xe5),'name':a206_0x1db324(0x89),'description':'Users\x20active\x20in\x20the\x20last\x2030\x20days','parent_segment_id':a206_0x1db324(0xc9),'status':a206_0x1db324(0xac),'rules':[{'type':a206_0x1db324(0x95),'field':a206_0x1db324(0xb2),'operator':a206_0x1db324(0xb9),'value':'30d'}],'count':0x1388,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':a206_0x1db324(0x7e),'name':'High\x20Value\x20Active\x20Users','description':a206_0x1db324(0x90),'parent_segment_id':a206_0x1db324(0xc9),'status':a206_0x1db324(0xac),'rules':[{'type':a206_0x1db324(0x95),'field':'last_login','operator':a206_0x1db324(0xb9),'value':a206_0x1db324(0xa2)},{'type':a206_0x1db324(0x95),'field':a206_0x1db324(0xab),'operator':a206_0x1db324(0xcc),'value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x1db324(0xbb)}},'journey':{'basic':{'id':a206_0x1db324(0x7d),'name':a206_0x1db324(0xcd),'description':a206_0x1db324(0xa6),'status':a206_0x1db324(0xd0),'version':0x1,'steps':[{'id':a206_0x1db324(0xc1),'type':a206_0x1db324(0x96),'duration':'1d'},{'id':a206_0x1db324(0xbf),'type':a206_0x1db324(0x9b),'activation_id':a206_0x1db324(0xb7)}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)},'withDecision':{'id':'j-def456','name':'Purchase\x20Reminder','description':a206_0x1db324(0xd9),'status':'active','version':0x2,'steps':[{'id':a206_0x1db324(0xc1),'type':a206_0x1db324(0xce),'segment_id':'cs-456789','yes_path':'step-2','no_path':a206_0x1db324(0xae)},{'id':a206_0x1db324(0xbf),'type':a206_0x1db324(0x9b),'activation_id':a206_0x1db324(0xc3)},{'id':a206_0x1db324(0xae),'type':'end'}],'created_at':a206_0x1db324(0x88),'updated_at':a206_0x1db324(0xbb)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xe8),'type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xcb),'type':'bigint'}],'data':[[a206_0x1db324(0xda),a206_0x1db324(0xdf),0x64],[a206_0x1db324(0x7f),a206_0x1db324(0xd4),0xc8],[a206_0x1db324(0xb5),a206_0x1db324(0xd2),0x96]]},'empty':{'schema':[{'name':'id','type':a206_0x1db324(0xd7)},{'name':a206_0x1db324(0xe8),'type':a206_0x1db324(0xd7)}],'data':[]},'singleRow':{'schema':[{'name':a206_0x1db324(0xaf),'type':a206_0x1db324(0x8f)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':'test@example.com','created_at':'2024-01-01T00:00:00Z','updated_at':a206_0x1db324(0xbb),'administrator':![]},'admin':{'id':0x1,'name':a206_0x1db324(0xdd),'email':a206_0x1db324(0xc6),'created_at':a206_0x1db324(0x80),'updated_at':a206_0x1db324(0xbb),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xa0),'query':'SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','start_at':a206_0x1db324(0xe0),'end_at':a206_0x1db324(0x82),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xd3),'query':a206_0x1db324(0x9e),'start_at':a206_0x1db324(0xd6),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a206_0x1db324(0x8b),'database':a206_0x1db324(0xb1),'status':a206_0x1db324(0xc2),'query':a206_0x1db324(0x9f),'start_at':a206_0x1db324(0x9a),'end_at':a206_0x1db324(0x94),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':'wf-12345','name':'daily_etl','project':a206_0x1db324(0xd5),'revision':a206_0x1db324(0xe3),'timezone':a206_0x1db324(0xcf),'schedule':{'cron':a206_0x1db324(0xad)}},'withSessions':{'id':'wf-67890','name':a206_0x1db324(0xe6),'project':a206_0x1db324(0xde),'revision':'def456','timezone':'America/Los_Angeles','schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':'sess-111','status':a206_0x1db324(0xa0),'started_at':'2024-01-15T09:00:00Z','finished_at':a206_0x1db324(0x81)}}},'apiError':{'unauthorized':{'errors':{'error':'Invalid\x20API\x20key','message':'Invalid\x20API\x20key','severity':a206_0x1db324(0xc2),'status_code':0x191}},'notFound':{'errors':{'error':a206_0x1db324(0x93),'message':'The\x20requested\x20resource\x20does\x20not\x20exist','severity':'error','status_code':0x194}},'rateLimited':{'detail':a206_0x1db324(0xa3)},'rfc9457':{'type':a206_0x1db324(0xe7),'title':a206_0x1db324(0xa9),'status':0x193,'detail':a206_0x1db324(0xe1),'instance':a206_0x1db324(0x97)}}};export function createDatabase(_0x1240a2){const _0x4d561a=a206_0x1db324;return{...fixtures[_0x4d561a(0x8e)]['basic'],..._0x1240a2};}export function createTable(_0x4991c4){const _0x495220=a206_0x1db324;return{...fixtures['table'][_0x495220(0x83)],..._0x4991c4};}export function createParentSegment(_0x51cc5c){const _0x497a6c=a206_0x1db324;return{...fixtures[_0x497a6c(0xc5)][_0x497a6c(0x83)],..._0x51cc5c};}export function createSegment(_0x3113f1){const _0x50e42c=a206_0x1db324;return{...fixtures[_0x50e42c(0xe4)][_0x50e42c(0x83)],..._0x3113f1};}export function createJourney(_0x114666){const _0x5c2375=a206_0x1db324;return{...fixtures[_0x5c2375(0x92)][_0x5c2375(0x83)],..._0x114666};}export function createQueryResult(_0x1f20d4){const _0x14c773=a206_0x1db324;return{...fixtures[_0x14c773(0xb0)]['basic'],..._0x1f20d4};}export function createUser(_0x2804ea){const _0x4ae02b=a206_0x1db324;return{...fixtures['user'][_0x4ae02b(0x83)],..._0x2804ea};}function a206_0x3363(){const _0x450a1b=['Active\x20Users','users','presto','event_id','purchases','database','bigint','Active\x20users\x20with\x20high\x20lifetime\x20value','Parent\x20segment\x20with\x20behavioral\x20data','journey','Resource\x20not\x20found','2024-01-15T10:10:01Z','attribute','wait','/v3/database/list','2988agsHBZ','long','2024-01-15T10:10:00Z','activation','unified_customers','events','SELECT\x20COUNT(*)\x20FROM\x20events','SELECT\x20*\x20FROM\x20nonexistent_table','success','2403282mQGZxw','30d','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','7nyUQnk','map<string,string>','Onboarding\x20journey\x20for\x20new\x20users','2024-01-15T12:00:00Z','user_id','Forbidden','12956460SGUxcu','lifetime_value','active','0\x200\x20*\x20*\x20*','step-3','total','queryResult','test_db','last_login','log','1Egkolz','user-3','2023-06-15T10:30:00Z','act-123','2024-01-15T08:00:00Z','TimeWithinPast','100LVwOjF','2024-01-15T00:00:00Z','workflow','2097224avmSgI','full_access','step-2','cdp_db','step-1','error','act-email','events_db','parentSegment','admin@example.com','time','330LZLehj','ps-123456','stringify','count','Greater','Welcome\x20Journey','decision_point','UTC','draft','completed','Charlie','running','Bob','data_pipeline','2024-01-15T10:05:00Z','varchar','properties','Journey\x20with\x20decision\x20point','user-1','64122FhFBfJ','179199qhNyYL','Admin\x20User','data_sync','Alice','2024-01-15T10:00:00Z','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','ps-789012','abc123','segment','cs-456789','hourly_sync','https://api.treasuredata.com/errors/forbidden','name','j-abc123','cs-111222','user-2','2023-01-01T00:00:00Z','2024-01-15T09:05:00Z','2024-01-15T10:00:05Z','basic','Customers\x20with\x20Behaviors','string','1936440pdkqaj','page_views','2024-01-01T00:00:00Z'];a206_0x3363=function(){return _0x450a1b;};return a206_0x3363();}function a206_0x56d2(_0x589e96,_0x542865){_0x589e96=_0x589e96-0x7d;const _0x336359=a206_0x3363();let _0x56d2c3=_0x336359[_0x589e96];return _0x56d2c3;}export function createJob(_0x45e60e){const _0x1f5bb6=a206_0x1db324;return{...fixtures['job'][_0x1f5bb6(0xd1)],..._0x45e60e};}export function createWorkflow(_0x33ee08){const _0x423faf=a206_0x1db324;return{...fixtures[_0x423faf(0xbc)][_0x423faf(0x83)],..._0x33ee08};}
|
|
1
|
+
function a206_0x1236(){const _0x444962=['events','Active\x20Users','long','j-abc123','step-1','daily_etl','data_sync','basic','table','admin@example.com','/v3/database/list','last_login','921732ebAffv','success','workflow','user-2','High\x20Value\x20Active\x20Users','job','Table\x20does\x20not\x20exist:\x20nonexistent_table','properties','Active\x20users\x20with\x20high\x20lifetime\x20value','attribute','string','abc123','Journey\x20with\x20decision\x20point','2024-01-15T08:00:00Z','Invalid\x20API\x20key','The\x20requested\x20resource\x20does\x20not\x20exist','Welcome\x20Journey','users','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','user','2oUfSAN','test@example.com','end','247563GULETn','1182gBxZAZ','Users\x20active\x20in\x20the\x20last\x2030\x20days','2024-01-15T10:00:05Z','Resource\x20not\x20found','step-3','act-123','2024-01-15T10:10:01Z','America/Los_Angeles','ps-789012','presto','data_pipeline','11MHPQvL','2023-01-01T00:00:00Z','TimeWithinPast','j-def456','hourly_sync','administrator','journey','cs-111222','user_id','2024-01-15T00:00:00Z','error','decision_point','UTC','test_db','map<string,string>','Alice','272972xcgNVK','Forbidden','cs-456789','events_db','customers','completed','Greater','log','4xmkXwU','2024-01-15T10:10:00Z','sess-111','activation','customer_id','varchar','full_access','stringify','1923410zFdNet','2024-01-15T10:00:00Z','SELECT\x20*\x20FROM\x20nonexistent_table','active','114043GGfTHm','415qpzHTb','ps-123456','queryResult','time','name','Bob','Purchase\x20Reminder','Charlie','draft','Test\x20User','2024-01-01T00:00:00Z','Parent\x20segment\x20with\x20behavioral\x20data','database','act-email','Customers\x20with\x20Behaviors','segment','step-2','parentSegment','running','2024-01-15T10:05:00Z','2024-01-15T09:05:00Z','30d','957808LpfOzo','wf-67890','SELECT\x20COUNT(*)\x20FROM\x20events','Test\x20Parent\x20Segment','2024-01-15T09:00:00Z','event_id','lifetime_value','wait','bigint','created_at','page_views','https://api.treasuredata.com/errors/forbidden'];a206_0x1236=function(){return _0x444962;};return a206_0x1236();}const a206_0x2925a1=a206_0x1df1;(function(_0xfdc6b5,_0x5aa307){const _0x1a5fcf=a206_0x1df1,_0x151f91=_0xfdc6b5();while(!![]){try{const _0x28466b=parseInt(_0x1a5fcf(0x1df))/0x1*(-parseInt(_0x1a5fcf(0x1ac))/0x2)+parseInt(_0x1a5fcf(0x198))/0x3*(parseInt(_0x1a5fcf(0x1d3))/0x4)+-parseInt(_0x1a5fcf(0x1e0))/0x5*(parseInt(_0x1a5fcf(0x1b0))/0x6)+-parseInt(_0x1a5fcf(0x1cb))/0x7+-parseInt(_0x1a5fcf(0x1f6))/0x8+-parseInt(_0x1a5fcf(0x1af))/0x9+-parseInt(_0x1a5fcf(0x1db))/0xa*(-parseInt(_0x1a5fcf(0x1bb))/0xb);if(_0x28466b===_0x5aa307)break;else _0x151f91['push'](_0x151f91['shift']());}catch(_0x1fcda8){_0x151f91['push'](_0x151f91['shift']());}}}(a206_0x1236,0x2cab2));export const fixtures={'database':{'basic':{'name':a206_0x2925a1(0x1c8),'count':0x5,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1ea),'permission':a206_0x2925a1(0x1c0)},'withTables':{'name':'production_db','count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a206_0x2925a1(0x1a5),'permission':a206_0x2925a1(0x1d9)}},'table':{'basic':{'id':0x3039,'name':a206_0x2925a1(0x1a9),'type':a206_0x2925a1(0x1d2),'schema':JSON[a206_0x2925a1(0x1da)]([['id','string'],[a206_0x2925a1(0x1e3),'long'],['name',a206_0x2925a1(0x1a2)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1ea)},'events':{'id':0x303a,'name':a206_0x2925a1(0x18c),'type':a206_0x2925a1(0x1d2),'schema':JSON[a206_0x2925a1(0x1da)]([[a206_0x2925a1(0x1fb),a206_0x2925a1(0x1a2)],[a206_0x2925a1(0x1e3),a206_0x2925a1(0x18e)],[a206_0x2925a1(0x1c3),a206_0x2925a1(0x1a2)],['event_type',a206_0x2925a1(0x1a2)],[a206_0x2925a1(0x19f),a206_0x2925a1(0x1c9)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a206_0x2925a1(0x1e1),'name':a206_0x2925a1(0x1f9),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':'active','master_table':{'database':'cdp_db','table':'unified_customers'},'attributes':[{'name':a206_0x2925a1(0x1d7),'type':'string','key':!![]},{'name':'email','type':a206_0x2925a1(0x1a2)},{'name':a206_0x2925a1(0x1ff),'type':'timestamp'}],'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'},'withBehaviors':{'id':a206_0x2925a1(0x1b8),'name':a206_0x2925a1(0x1ee),'description':a206_0x2925a1(0x1eb),'status':'active','master_table':{'database':'cdp_db','table':a206_0x2925a1(0x1cf)},'behaviors':[{'name':'purchases','table':{'database':a206_0x2925a1(0x1ce),'table':'purchases'},'join_key':a206_0x2925a1(0x1d7)},{'name':a206_0x2925a1(0x200),'table':{'database':'events_db','table':'pageviews'},'join_key':a206_0x2925a1(0x1d7)}],'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)}},'segment':{'basic':{'id':'cs-456789','name':a206_0x2925a1(0x18d),'description':a206_0x2925a1(0x1b1),'parent_segment_id':a206_0x2925a1(0x1e1),'status':a206_0x2925a1(0x1de),'rules':[{'type':'attribute','field':'last_login','operator':a206_0x2925a1(0x1bd),'value':a206_0x2925a1(0x1f5)}],'count':0x1388,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)},'withMultipleRules':{'id':a206_0x2925a1(0x1c2),'name':a206_0x2925a1(0x19c),'description':a206_0x2925a1(0x1a0),'parent_segment_id':a206_0x2925a1(0x1e1),'status':'active','rules':[{'type':a206_0x2925a1(0x1a1),'field':a206_0x2925a1(0x197),'operator':a206_0x2925a1(0x1bd),'value':a206_0x2925a1(0x1f5)},{'type':a206_0x2925a1(0x1a1),'field':a206_0x2925a1(0x1fc),'operator':a206_0x2925a1(0x1d1),'value':0x3e8}],'count':0x5dc,'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)}},'journey':{'basic':{'id':a206_0x2925a1(0x18f),'name':a206_0x2925a1(0x1a8),'description':'Onboarding\x20journey\x20for\x20new\x20users','status':a206_0x2925a1(0x1e8),'version':0x1,'steps':[{'id':a206_0x2925a1(0x190),'type':a206_0x2925a1(0x1fd),'duration':'1d'},{'id':a206_0x2925a1(0x1f0),'type':a206_0x2925a1(0x1d6),'activation_id':a206_0x2925a1(0x1b5)}],'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)},'withDecision':{'id':a206_0x2925a1(0x1be),'name':a206_0x2925a1(0x1e6),'description':a206_0x2925a1(0x1a4),'status':'active','version':0x2,'steps':[{'id':'step-1','type':a206_0x2925a1(0x1c6),'segment_id':a206_0x2925a1(0x1cd),'yes_path':a206_0x2925a1(0x1f0),'no_path':a206_0x2925a1(0x1b4)},{'id':a206_0x2925a1(0x1f0),'type':a206_0x2925a1(0x1d6),'activation_id':a206_0x2925a1(0x1ed)},{'id':a206_0x2925a1(0x1b4),'type':a206_0x2925a1(0x1ae)}],'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a206_0x2925a1(0x1d8)},{'name':a206_0x2925a1(0x1e4),'type':'varchar'},{'name':'count','type':a206_0x2925a1(0x1fe)}],'data':[['user-1',a206_0x2925a1(0x1ca),0x64],[a206_0x2925a1(0x19b),a206_0x2925a1(0x1e5),0xc8],['user-3',a206_0x2925a1(0x1e7),0x96]]},'empty':{'schema':[{'name':'id','type':a206_0x2925a1(0x1d8)},{'name':a206_0x2925a1(0x1e4),'type':a206_0x2925a1(0x1d8)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a206_0x2925a1(0x1fe)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a206_0x2925a1(0x1e9),'email':a206_0x2925a1(0x1ad),'created_at':a206_0x2925a1(0x1ea),'updated_at':a206_0x2925a1(0x1c4),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':a206_0x2925a1(0x195),'created_at':a206_0x2925a1(0x1bc),'updated_at':'2024-01-15T00:00:00Z','administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':a206_0x2925a1(0x1b9),'database':'test_db','status':a206_0x2925a1(0x199),'query':a206_0x2925a1(0x1aa),'start_at':a206_0x2925a1(0x1dc),'end_at':a206_0x2925a1(0x1b2),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a206_0x2925a1(0x1b9),'database':a206_0x2925a1(0x1c8),'status':a206_0x2925a1(0x1f2),'query':a206_0x2925a1(0x1f8),'start_at':a206_0x2925a1(0x1f3),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a206_0x2925a1(0x1b9),'database':a206_0x2925a1(0x1c8),'status':a206_0x2925a1(0x1c5),'query':a206_0x2925a1(0x1dd),'start_at':a206_0x2925a1(0x1d4),'end_at':a206_0x2925a1(0x1b6),'duration':0x1,'result_size':null,'error':a206_0x2925a1(0x19e)}},'workflow':{'basic':{'id':'wf-12345','name':a206_0x2925a1(0x191),'project':a206_0x2925a1(0x1ba),'revision':a206_0x2925a1(0x1a3),'timezone':a206_0x2925a1(0x1c7),'schedule':{'cron':'0\x200\x20*\x20*\x20*'}},'withSessions':{'id':a206_0x2925a1(0x1f7),'name':a206_0x2925a1(0x1bf),'project':a206_0x2925a1(0x192),'revision':'def456','timezone':a206_0x2925a1(0x1b7),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a206_0x2925a1(0x1d5),'status':a206_0x2925a1(0x199),'started_at':a206_0x2925a1(0x1fa),'finished_at':a206_0x2925a1(0x1f4)}}},'apiError':{'unauthorized':{'errors':{'error':a206_0x2925a1(0x1a6),'message':'Invalid\x20API\x20key','severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a206_0x2925a1(0x1b3),'message':a206_0x2925a1(0x1a7),'severity':a206_0x2925a1(0x1c5),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a206_0x2925a1(0x201),'title':a206_0x2925a1(0x1cc),'status':0x193,'detail':'You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','instance':a206_0x2925a1(0x196)}}};export function createDatabase(_0xd6559b){const _0x5a7739=a206_0x2925a1;return{...fixtures[_0x5a7739(0x1ec)][_0x5a7739(0x193)],..._0xd6559b};}export function createTable(_0x3e902e){const _0x4aaa42=a206_0x2925a1;return{...fixtures[_0x4aaa42(0x194)]['basic'],..._0x3e902e};}export function createParentSegment(_0x15471d){const _0x4168b0=a206_0x2925a1;return{...fixtures[_0x4168b0(0x1f1)][_0x4168b0(0x193)],..._0x15471d};}export function createSegment(_0x7ba39c){const _0x1a81fd=a206_0x2925a1;return{...fixtures[_0x1a81fd(0x1ef)][_0x1a81fd(0x193)],..._0x7ba39c};}export function createJourney(_0x3c02df){const _0x3e48de=a206_0x2925a1;return{...fixtures[_0x3e48de(0x1c1)][_0x3e48de(0x193)],..._0x3c02df};}export function createQueryResult(_0x15762e){const _0x2c471c=a206_0x2925a1;return{...fixtures[_0x2c471c(0x1e2)][_0x2c471c(0x193)],..._0x15762e};}export function createUser(_0x158004){const _0x5b597f=a206_0x2925a1;return{...fixtures[_0x5b597f(0x1ab)][_0x5b597f(0x193)],..._0x158004};}function a206_0x1df1(_0x657de0,_0x467e0d){_0x657de0=_0x657de0-0x18c;const _0x1236fa=a206_0x1236();let _0x1df1b8=_0x1236fa[_0x657de0];return _0x1df1b8;}export function createJob(_0x268077){const _0x4c1bfb=a206_0x2925a1;return{...fixtures[_0x4c1bfb(0x19d)][_0x4c1bfb(0x1d0)],..._0x268077};}export function createWorkflow(_0x16cd1a){const _0x58cec2=a206_0x2925a1;return{...fixtures[_0x58cec2(0x19a)]['basic'],..._0x16cd1a};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a207_0x46d778=a207_0x3ce8;(function(_0x3349a2,_0x527041){const _0x29e9bd=a207_0x3ce8,_0x70812f=_0x3349a2();while(!![]){try{const _0x2b298e=-parseInt(_0x29e9bd(0xa6))/0x1*(parseInt(_0x29e9bd(0x8a))/0x2)+parseInt(_0x29e9bd(0xa5))/0x3+parseInt(_0x29e9bd(0x85))/0x4*(parseInt(_0x29e9bd(0xbe))/0x5)+-parseInt(_0x29e9bd(0xd3))/0x6+parseInt(_0x29e9bd(0x87))/0x7*(-parseInt(_0x29e9bd(0xc6))/0x8)+parseInt(_0x29e9bd(0xb6))/0x9+-parseInt(_0x29e9bd(0xce))/0xa*(-parseInt(_0x29e9bd(0xac))/0xb);if(_0x2b298e===_0x527041)break;else _0x70812f['push'](_0x70812f['shift']());}catch(_0x396cd7){_0x70812f['push'](_0x70812f['shift']());}}}(a207_0xd22f,0x2af5d));import{vi}from'vitest';function a207_0x3ce8(_0x8c8c3b,_0x3ee575){_0x8c8c3b=_0x8c8c3b-0x84;const _0xd22fc5=a207_0xd22f();let _0x3ce826=_0xd22fc5[_0x8c8c3b];return _0x3ce826;}export class HTTPMockRegistry{[a207_0x46d778(0xb0)]=[];['requests']=[];['fetchMock']=null;[a207_0x46d778(0xa4)](_0x12c1ac,_0x4aa939){return _0x18a1c4=>{const _0x448785=a207_0x3ce8;if(_0x18a1c4[_0x448785(0xd4)][_0x448785(0x90)]()!==_0x12c1ac[_0x448785(0x90)]())return![];const _0x110959=new URL(_0x18a1c4[_0x448785(0x88)]);if(typeof _0x4aa939===_0x448785(0xab))return _0x110959[_0x448785(0x84)]===_0x4aa939||_0x110959[_0x448785(0x84)][_0x448785(0xa8)](_0x4aa939);return _0x4aa939[_0x448785(0x86)](_0x110959['pathname']);};}['withQuery'](_0x4da4ca,_0xa96422){return _0x50e19e=>{const _0x59fca4=a207_0x3ce8;if(!_0x4da4ca(_0x50e19e))return![];const _0x3b7e11=new URL(_0x50e19e[_0x59fca4(0x88)]);return Object[_0x59fca4(0xa3)](_0xa96422)[_0x59fca4(0xaa)](([_0x536808,_0x11c524])=>_0x3b7e11[_0x59fca4(0xb7)][_0x59fca4(0x89)](_0x536808)===_0x11c524);};}['withBody'](_0x1224c3,_0x475175){return _0x37e169=>{const _0x129ef4=a207_0x3ce8;if(!_0x1224c3(_0x37e169))return![];if(typeof _0x475175===_0x129ef4(0xb3))return _0x475175(_0x37e169[_0x129ef4(0xc5)]);return JSON['stringify'](_0x37e169[_0x129ef4(0xc5)])===JSON['stringify'](_0x475175);};}[a207_0x46d778(0xa7)](_0x5b49df,_0x56a448){return _0x3e8952=>{const _0x2a3a01=a207_0x3ce8;if(!_0x5b49df(_0x3e8952))return![];const _0x35fae3=new URL(_0x3e8952[_0x2a3a01(0x88)]);return _0x35fae3['host']===_0x56a448;};}['register'](_0x44078a,_0x284370,_0x32896e){const _0x5e54aa=a207_0x46d778;this[_0x5e54aa(0xb0)][_0x5e54aa(0x99)]({'matcher':_0x44078a,'responder':_0x284370,'matched':![],'matchCount':0x0,'stack':new Error()[_0x5e54aa(0xb1)]??'','description':_0x32896e?.[_0x5e54aa(0xbd)]});}['registerWithInspector'](_0x16c82d,_0x1d3302,_0x30bb79){const _0x2ca160=a207_0x46d778,_0x255ed1=_0x1d518a=>{return _0x30bb79(_0x1d518a['body'],_0x1d518a),_0x1d3302(_0x1d518a);};this[_0x2ca160(0xa2)](_0x16c82d,_0x255ed1);}static[a207_0x46d778(0xb9)](_0x4ed88e,_0x5c5b0f=0xc8){const _0x26195b=a207_0x46d778;return()=>new Response(JSON[_0x26195b(0xd0)](_0x4ed88e),{'status':_0x5c5b0f,'headers':{'Content-Type':_0x26195b(0xb8)}});}static[a207_0x46d778(0xc0)](_0xa4af02,_0x4b3367,_0x22382f='simple'){return()=>{const _0x5c56a5=a207_0x3ce8;let _0x8346cf;switch(_0x22382f){case _0x5c56a5(0xcf):_0x8346cf={'errors':{'error':_0x4b3367,'message':_0x4b3367,'severity':_0x5c56a5(0xc2),'status_code':_0xa4af02}};break;case _0x5c56a5(0xaf):_0x8346cf={'type':'https://api.treasuredata.com/errors/'+_0xa4af02,'title':HTTPMockRegistry[_0x5c56a5(0xae)](_0xa4af02),'status':_0xa4af02,'detail':_0x4b3367};break;default:_0x8346cf={'error':_0x4b3367};}return new Response(JSON[_0x5c56a5(0xd0)](_0x8346cf),{'status':_0xa4af02,'headers':{'Content-Type':_0x5c56a5(0xb8)}});};}static[a207_0x46d778(0xd1)](_0x5b4f6d,_0x20a58e,_0x598798=0xc8){const _0x5c503b=a207_0x46d778;return()=>new Response(JSON[_0x5c503b(0xd0)](_0x5b4f6d),{'status':_0x598798,'headers':{'Content-Type':_0x5c503b(0xb8),..._0x20a58e}});}static[a207_0x46d778(0x8d)](_0x2448dc,_0x4da91d=0xc8){const _0x3f65aa=a207_0x46d778;return()=>new Response(_0x2448dc,{'status':_0x4da91d,'headers':{'Content-Type':_0x3f65aa(0x94)}});}static[a207_0x46d778(0x96)](_0x4337d1){return()=>{throw new Error(_0x4337d1);};}[a207_0x46d778(0x91)](){const _0x265f9c=a207_0x46d778;return this[_0x265f9c(0x8c)]=vi['fn']()['mockImplementation'](async(_0x3aa583,_0xaababc)=>{const _0x17fcdd=_0x265f9c,_0xee2765=this[_0x17fcdd(0xc9)](_0x3aa583,_0xaababc);this[_0x17fcdd(0xc7)][_0x17fcdd(0x99)](_0xee2765);for(const _0x51eaa3 of this[_0x17fcdd(0xb0)]){if(_0x51eaa3['matcher'](_0xee2765))return _0x51eaa3[_0x17fcdd(0x9d)]=!![],_0x51eaa3[_0x17fcdd(0xba)]++,_0x51eaa3['responder'](_0xee2765);}const _0x1bdfbf=this[_0x17fcdd(0xb0)][_0x17fcdd(0x8f)]((_0x5a965b,_0x550ba5)=>'\x20\x20'+(_0x550ba5+0x1)+'.\x20'+(_0x5a965b[_0x17fcdd(0xbd)]??_0x17fcdd(0xc4)))[_0x17fcdd(0xb4)]('\x0a');throw new Error(_0x17fcdd(0xc3)+_0xee2765[_0x17fcdd(0xd4)]+'\x20'+_0xee2765[_0x17fcdd(0x88)]+'\x0a'+(_0x17fcdd(0x95)+JSON[_0x17fcdd(0xd0)](_0xee2765[_0x17fcdd(0xc5)])+'\x0a')+(_0x17fcdd(0xb2)+(_0x1bdfbf||_0x17fcdd(0xcb))));}),this[_0x265f9c(0x8c)];}[a207_0x46d778(0xc9)](_0xe445b1,_0xdc158e){const _0x27d19e=a207_0x46d778,_0x21fc68={};if(_0xdc158e?.[_0x27d19e(0xbb)]){if(_0xdc158e[_0x27d19e(0xbb)]instanceof Headers)_0xdc158e['headers']['forEach']((_0x6b321a,_0x2a7e9c)=>{const _0x421a75=_0x27d19e;_0x21fc68[_0x2a7e9c[_0x421a75(0x8e)]()]=_0x6b321a;});else{if(Array[_0x27d19e(0xa9)](_0xdc158e[_0x27d19e(0xbb)]))for(const [_0x33a80c,_0x285246]of _0xdc158e[_0x27d19e(0xbb)]){_0x21fc68[_0x33a80c[_0x27d19e(0x8e)]()]=_0x285246;}else for(const [_0x47858f,_0x1ea57d]of Object['entries'](_0xdc158e[_0x27d19e(0xbb)])){_0x1ea57d!==undefined&&(_0x21fc68[_0x47858f[_0x27d19e(0x8e)]()]=_0x1ea57d);}}}let _0x731284;if(_0xdc158e?.[_0x27d19e(0xc5)])try{_0x731284=JSON[_0x27d19e(0xb5)](_0xdc158e['body']);}catch{_0x731284=_0xdc158e['body'];}return{'method':_0xdc158e?.[_0x27d19e(0xd4)]??'GET','url':_0xe445b1,'headers':_0x21fc68,'body':_0x731284};}[a207_0x46d778(0xbc)](_0x241699){const _0x427695=a207_0x46d778,_0x16873d=this['stubs'][_0x427695(0x9e)](_0x55cc73=>!_0x55cc73['matched']);if(_0x16873d[_0x427695(0x9f)]>0x0){const _0x2ed6d3=_0x16873d[_0x427695(0x8f)](_0x3c9c67=>{const _0x12913d=_0x427695,_0x4d19f8=_0x3c9c67[_0x12913d(0xbd)]?'\x20('+_0x3c9c67['description']+')':'',_0x56a09c=_0x3c9c67[_0x12913d(0xb1)][_0x12913d(0x98)]('\x0a')['slice'](0x2,0x5)[_0x12913d(0xb4)]('\x0a');return _0x12913d(0xd2)+_0x4d19f8+_0x12913d(0x92)+_0x56a09c;});_0x241699[_0x427695(0xcd)](_0x16873d['length']+_0x427695(0xca)+_0x2ed6d3[_0x427695(0xb4)]('\x0a\x0a'));}}[a207_0x46d778(0xa1)](){const _0x23a28a=a207_0x46d778;return[...this[_0x23a28a(0xc7)]];}['getLastRequest'](){const _0x33da6b=a207_0x46d778;return this[_0x33da6b(0xc7)][this['requests'][_0x33da6b(0x9f)]-0x1];}[a207_0x46d778(0x93)](_0xc854a8,_0x2a47e8){const _0x536032=a207_0x46d778;return this[_0x536032(0xc7)]['some'](_0x5051e5=>{const _0x157fd7=_0x536032;if(_0x5051e5['method'][_0x157fd7(0x90)]()!==_0xc854a8['toUpperCase']())return![];if(typeof _0x2a47e8===_0x157fd7(0xab))return _0x5051e5[_0x157fd7(0x88)]['includes'](_0x2a47e8);return _0x2a47e8[_0x157fd7(0x86)](_0x5051e5[_0x157fd7(0x88)]);});}[a207_0x46d778(0xbf)](_0x5cf80){const _0x5a5625=a207_0x46d778;return this['stubs'][_0x5cf80]?.[_0x5a5625(0xba)]??0x0;}[a207_0x46d778(0x8b)](){const _0x13b443=a207_0x46d778;this['stubs']=[],this[_0x13b443(0xc7)]=[],this['fetchMock']=null;}static['getStatusText'](_0x34aa3b){const _0x39d341=a207_0x46d778,_0x226ecf={0xc8:'OK',0xc9:_0x39d341(0xcc),0xcc:_0x39d341(0xad),0x190:_0x39d341(0x9c),0x191:'Unauthorized',0x193:_0x39d341(0x9b),0x194:_0x39d341(0xc8),0x199:_0x39d341(0x9a),0x1a6:'Unprocessable\x20Entity',0x1ad:_0x39d341(0xa0),0x1f4:'Internal\x20Server\x20Error',0x1f6:_0x39d341(0x97),0x1f7:_0x39d341(0xc1)};return _0x226ecf[_0x34aa3b]??'Unknown';}}function a207_0xd22f(){const _0x275611=['join','parse','547119hsFvWP','searchParams','application/json','jsonResponse','matchCount','headers','verify','description','3035rZZMhB','getMatchCount','errorResponse','Service\x20Unavailable','error','No\x20stub\x20matched\x20request:\x20','unnamed\x20stub','body','656SkktYs','requests','Not\x20Found','parseRequest','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','\x20\x20(none)','Created','fail','60790tRXfSL','td-api','stringify','jsonResponseWithHeaders','Unmatched\x20stub','2099556wAtcdN','method','pathname','148cAyWFV','test','19663FWzwwt','url','get','4MAZFmH','reset','fetchMock','textResponse','toLowerCase','map','toUpperCase','createFetch','\x20registered\x20at:\x0a','wasCalled','text/plain','Request\x20body:\x20','networkError','Bad\x20Gateway','split','push','Conflict','Forbidden','Bad\x20Request','matched','filter','length','Too\x20Many\x20Requests','getRequests','register','entries','REST','687987qSasQd','155073uMSoSo','withHost','includes','isArray','every','string','1364pbPMQM','No\x20Content','getStatusText','rfc9457','stubs','stack','Registered\x20stubs:\x0a','function'];a207_0xd22f=function(){return _0x275611;};return a207_0xd22f();}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a208_0xad5a(_0xb4e420,_0x114ad7){_0xb4e420=_0xb4e420-0x190;var _0x4a8f4c=a208_0x4a8f();var _0xad5a1d=_0x4a8f4c[_0xb4e420];return _0xad5a1d;}(function(_0x32b192,_0x3270b0){var _0x31736a=a208_0xad5a,_0x103d84=_0x32b192();while(!![]){try{var _0x18ba0f=parseInt(_0x31736a(0x193))/0x1*(-parseInt(_0x31736a(0x197))/0x2)+-parseInt(_0x31736a(0x190))/0x3*(parseInt(_0x31736a(0x196))/0x4)+-parseInt(_0x31736a(0x199))/0x5+parseInt(_0x31736a(0x194))/0x6+-parseInt(_0x31736a(0x198))/0x7+-parseInt(_0x31736a(0x19a))/0x8*(parseInt(_0x31736a(0x191))/0x9)+parseInt(_0x31736a(0x192))/0xa*(parseInt(_0x31736a(0x195))/0xb);if(_0x18ba0f===_0x3270b0)break;else _0x103d84['push'](_0x103d84['shift']());}catch(_0x162333){_0x103d84['push'](_0x103d84['shift']());}}}(a208_0x4a8f,0x29ce5));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 a208_0x4a8f(){var _0x5d1a98=['121599qOLDGk','10vDPNwQ','107IfLvse','128790EIZKNx','13488673RyDVGM','172fLrZwE','5244ttjGfe','2337734GaiHXR','274960SJBpMz','48OKidMy','22737LFVDlJ'];a208_0x4a8f=function(){return _0x5d1a98;};return a208_0x4a8f();}export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a209_0x5998(){const _0xda3a06=['925PAPoaK','all','8946clQmLh','3003750EbOrZU','12vDYZrl','36174wyQvHx','map','length','7954287RTGslx','86563hGbPYE','1686440QAYpDT','32YgUsaL','1184bXXuTq','4586444DTnntB','9tRkrWo'];a209_0x5998=function(){return _0xda3a06;};return a209_0x5998();}function a209_0x4e09(_0x533741,_0x59ad4a){_0x533741=_0x533741-0x118;const _0x5998d1=a209_0x5998();let _0x4e09e9=_0x5998d1[_0x533741];return _0x4e09e9;}(function(_0x30f4f4,_0x142728){const _0x53fe84=a209_0x4e09,_0x59159c=_0x30f4f4();while(!![]){try{const _0x317cf0=parseInt(_0x53fe84(0x123))/0x1*(-parseInt(_0x53fe84(0x125))/0x2)+parseInt(_0x53fe84(0x11d))/0x3+parseInt(_0x53fe84(0x118))/0x4+-parseInt(_0x53fe84(0x11a))/0x5*(-parseInt(_0x53fe84(0x11f))/0x6)+parseInt(_0x53fe84(0x11c))/0x7*(-parseInt(_0x53fe84(0x126))/0x8)+-parseInt(_0x53fe84(0x119))/0x9*(parseInt(_0x53fe84(0x124))/0xa)+-parseInt(_0x53fe84(0x122))/0xb*(parseInt(_0x53fe84(0x11e))/0xc);if(_0x317cf0===_0x142728)break;else _0x59159c['push'](_0x59159c['shift']());}catch(_0x3fb998){_0x59159c['push'](_0x59159c['shift']());}}}(a209_0x5998,0xc2a81));export async function batchAsync(_0x9df239,_0x2b14ec,_0x2e565d=0xa){const _0x4a0ce3=a209_0x4e09,_0x284ab6=[];for(let _0x4533f4=0x0;_0x4533f4<_0x9df239[_0x4a0ce3(0x121)];_0x4533f4+=_0x2e565d){const _0x5f2d32=_0x9df239['slice'](_0x4533f4,_0x4533f4+_0x2e565d),_0x3f92d1=await Promise[_0x4a0ce3(0x11b)](_0x5f2d32[_0x4a0ce3(0x120)](_0x2b14ec));_0x284ab6['push'](..._0x3f92d1);}return _0x284ab6;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
const a210_0x5e3692=a210_0x3140;function a210_0x76fc(){const _0x2d49fa=['number','101555kemaev','stringify','isTTY','object','88uwtpDk','406XdWrMJ','101656eVzfre','1749222KbRPDF','Chalk','2075116XCPQjK','join','null','length','4598790UiLySn','entries','dim','yellow','string','cyan','blue','map','stdout','3322194SlxLrt','isArray','20OSgMsd','repeat','1565649LFPXoJ','boolean'];a210_0x76fc=function(){return _0x2d49fa;};return a210_0x76fc();}(function(_0x4a9762,_0x30c070){const _0x5ea3ff=a210_0x3140,_0x4d641c=_0x4a9762();while(!![]){try{const _0x1fe774=parseInt(_0x5ea3ff(0x1ad))/0x1+parseInt(_0x5ea3ff(0x19c))/0x2+-parseInt(_0x5ea3ff(0x1a9))/0x3+-parseInt(_0x5ea3ff(0x197))/0x4*(-parseInt(_0x5ea3ff(0x193))/0x5)+-parseInt(_0x5ea3ff(0x1a0))/0x6+parseInt(_0x5ea3ff(0x198))/0x7*(-parseInt(_0x5ea3ff(0x199))/0x8)+parseInt(_0x5ea3ff(0x19a))/0x9*(parseInt(_0x5ea3ff(0x1ab))/0xa);if(_0x1fe774===_0x30c070)break;else _0x4d641c['push'](_0x4d641c['shift']());}catch(_0x7fdc29){_0x4d641c['push'](_0x4d641c['shift']());}}}(a210_0x76fc,0xca1f8));import*as a210_0x4f80ee from'chalk';const Chalk=a210_0x4f80ee[a210_0x5e3692(0x19b)];export function shouldUseColor(_0x24c995={}){const _0x3b86c3=a210_0x5e3692;if(_0x24c995['noColor']===!![])return![];if(_0x24c995['color']===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3b86c3(0x1a8)][_0x3b86c3(0x195)]??![];}export function getChalk(_0x5afe05={}){if(shouldUseColor(_0x5afe05))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x36b976,_0x567813={}){const _0x28d05a=a210_0x5e3692;return getChalk(_0x567813)[_0x28d05a(0x1a2)](_0x36b976);}export function colorHeader(_0x309159,_0x578023={}){const _0x51c342=a210_0x5e3692;return getChalk(_0x578023)[_0x51c342(0x1a5)](_0x309159);}export function colorType(_0x32568d,_0x2e1dd3={}){return getChalk(_0x2e1dd3)['dim'](_0x32568d);}export function colorJSONKey(_0x1d3145,_0x501a4c={}){const _0x332d3e=a210_0x5e3692;return getChalk(_0x501a4c)[_0x332d3e(0x1a6)](_0x1d3145);}export function colorJSONString(_0x1b5659,_0x45a87b={}){return getChalk(_0x45a87b)['green'](_0x1b5659);}export function colorJSONNumber(_0xf2efff,_0x5caab4={}){const _0x306fdb=a210_0x5e3692;return getChalk(_0x5caab4)[_0x306fdb(0x1a5)](_0xf2efff);}export function colorJSONBoolean(_0x2fcd80,_0x53282e={}){const _0x57a60b=a210_0x5e3692;return getChalk(_0x53282e)[_0x57a60b(0x1a3)](_0x2fcd80);}export function colorJSONNull(_0x2fb8ea,_0x143ebb={}){const _0x30eab8=a210_0x5e3692;return getChalk(_0x143ebb)[_0x30eab8(0x1a2)](_0x2fb8ea);}function a210_0x3140(_0x51d0e2,_0x2ce981){_0x51d0e2=_0x51d0e2-0x192;const _0x76fc97=a210_0x76fc();let _0x3140fe=_0x76fc97[_0x51d0e2];return _0x3140fe;}export function colorizeJSONCompact(_0x145674,_0xed479d={}){const _0x1beaf4=a210_0x5e3692;if(!shouldUseColor(_0xed479d))return JSON[_0x1beaf4(0x194)](_0x145674);if(_0x145674===null)return colorJSONNull(_0x1beaf4(0x19e),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x1ae))return colorJSONBoolean(String(_0x145674),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x192))return colorJSONNumber(String(_0x145674),_0xed479d);if(typeof _0x145674===_0x1beaf4(0x1a4))return colorJSONString(JSON['stringify'](_0x145674),_0xed479d);if(Array[_0x1beaf4(0x1aa)](_0x145674)){if(_0x145674[_0x1beaf4(0x19f)]===0x0)return'[]';const _0x437511=_0x145674[_0x1beaf4(0x1a7)](_0x3517f4=>colorizeJSONCompact(_0x3517f4,_0xed479d));return'['+_0x437511['join'](',')+']';}if(typeof _0x145674===_0x1beaf4(0x196)){const _0x4dc80d=Object['entries'](_0x145674);if(_0x4dc80d['length']===0x0)return'{}';const _0x17436f=_0x4dc80d[_0x1beaf4(0x1a7)](([_0x593193,_0x5f1c69])=>{const _0x458693=_0x1beaf4,_0x2e3fd2=colorJSONKey(JSON[_0x458693(0x194)](_0x593193),_0xed479d),_0x21bdf3=colorizeJSONCompact(_0x5f1c69,_0xed479d);return _0x2e3fd2+':'+_0x21bdf3;});return'{'+_0x17436f[_0x1beaf4(0x19d)](',')+'}';}return String(_0x145674);}export function colorizeJSON(_0x589468,_0xb4f296={},_0x563dc5=0x0){const _0x35f332=a210_0x5e3692;if(!shouldUseColor(_0xb4f296))return JSON[_0x35f332(0x194)](_0x589468,null,0x2);const _0x4f2328='\x20'[_0x35f332(0x1ac)](_0x563dc5),_0x4004b3=_0x563dc5+0x2;if(_0x589468===null)return colorJSONNull(_0x35f332(0x19e),_0xb4f296);if(typeof _0x589468===_0x35f332(0x1ae))return colorJSONBoolean(String(_0x589468),_0xb4f296);if(typeof _0x589468===_0x35f332(0x192))return colorJSONNumber(String(_0x589468),_0xb4f296);if(typeof _0x589468===_0x35f332(0x1a4))return colorJSONString(JSON[_0x35f332(0x194)](_0x589468),_0xb4f296);if(Array['isArray'](_0x589468)){if(_0x589468['length']===0x0)return'[]';const _0x6e6627=_0x589468[_0x35f332(0x1a7)](_0x523bf6=>{const _0x47b0e7=_0x35f332,_0x36f463=colorizeJSON(_0x523bf6,_0xb4f296,_0x4004b3);return''+'\x20'[_0x47b0e7(0x1ac)](_0x4004b3)+_0x36f463;});return'[\x0a'+_0x6e6627[_0x35f332(0x19d)](',\x0a')+('\x0a'+_0x4f2328+']');}if(typeof _0x589468===_0x35f332(0x196)){const _0x2c50d2=Object[_0x35f332(0x1a1)](_0x589468);if(_0x2c50d2[_0x35f332(0x19f)]===0x0)return'{}';const _0x3a66dc=_0x2c50d2['map'](([_0x329ae0,_0x4b7d53])=>{const _0x570ffc=_0x35f332,_0x1b41fb=colorJSONKey(JSON['stringify'](_0x329ae0),_0xb4f296),_0x3d8244=colorizeJSON(_0x4b7d53,_0xb4f296,_0x4004b3);return''+'\x20'[_0x570ffc(0x1ac)](_0x4004b3)+_0x1b41fb+':\x20'+_0x3d8244;});return'{\x0a'+_0x3a66dc[_0x35f332(0x19d)](',\x0a')+('\x0a'+_0x4f2328+'}');}return String(_0x589468);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x46276d,_0x949595){const _0xacfd46=a211_0x2136,_0x3cc6d1=_0x46276d();while(!![]){try{const _0x3247e3=parseInt(_0xacfd46(0x1a0))/0x1*(parseInt(_0xacfd46(0x1a1))/0x2)+parseInt(_0xacfd46(0x1b7))/0x3*(parseInt(_0xacfd46(0x1ab))/0x4)+parseInt(_0xacfd46(0x195))/0x5+parseInt(_0xacfd46(0x1a7))/0x6+parseInt(_0xacfd46(0x1b0))/0x7*(-parseInt(_0xacfd46(0x1b8))/0x8)+parseInt(_0xacfd46(0x1a3))/0x9+-parseInt(_0xacfd46(0x1ba))/0xa*(parseInt(_0xacfd46(0x19f))/0xb);if(_0x3247e3===_0x949595)break;else _0x3cc6d1['push'](_0x3cc6d1['shift']());}catch(_0x5e923f){_0x3cc6d1['push'](_0x3cc6d1['shift']());}}}(a211_0x17c9,0xa5508));import a211_0x43b408 from'chalk';export function generateDiff(_0x172833,_0x275b7b){const _0x46985a=a211_0x2136,_0x1cea66=_0x172833[_0x46985a(0x1aa)]('\x0a'),_0x4509b3=_0x275b7b[_0x46985a(0x1aa)]('\x0a'),_0x1896b6=[],_0x5f23ec=computeLCS(_0x1cea66,_0x4509b3);let _0xb7f515=0x0,_0xa86983=0x0,_0x394456=0x0;while(_0xb7f515<_0x1cea66[_0x46985a(0x19d)]||_0xa86983<_0x4509b3[_0x46985a(0x19d)]){if(_0x394456<_0x5f23ec['length']&&_0xb7f515<_0x1cea66[_0x46985a(0x19d)]&&_0x1cea66[_0xb7f515]===_0x5f23ec[_0x394456])_0xa86983<_0x4509b3[_0x46985a(0x19d)]&&_0x4509b3[_0xa86983]===_0x5f23ec[_0x394456]?(_0x1896b6[_0x46985a(0x1b2)]({'type':'unchanged','content':_0x1cea66[_0xb7f515]}),_0xb7f515++,_0xa86983++,_0x394456++):(_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x1b5),'content':_0x4509b3[_0xa86983]}),_0xa86983++);else{if(_0x394456<_0x5f23ec[_0x46985a(0x19d)]&&_0xa86983<_0x4509b3[_0x46985a(0x19d)]&&_0x4509b3[_0xa86983]===_0x5f23ec[_0x394456])_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x19a),'content':_0x1cea66[_0xb7f515]}),_0xb7f515++;else{if(_0xb7f515<_0x1cea66[_0x46985a(0x19d)]&&(_0x394456>=_0x5f23ec[_0x46985a(0x19d)]||_0x1cea66[_0xb7f515]!==_0x5f23ec[_0x394456]))_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x19a),'content':_0x1cea66[_0xb7f515]}),_0xb7f515++;else _0xa86983<_0x4509b3[_0x46985a(0x19d)]&&(_0x1896b6[_0x46985a(0x1b2)]({'type':_0x46985a(0x1b5),'content':_0x4509b3[_0xa86983]}),_0xa86983++);}}}return _0x1896b6;}function computeLCS(_0x265851,_0x17f9f1){const _0x1fd089=a211_0x2136,_0xa1b89c=_0x265851[_0x1fd089(0x19d)],_0x2c08f5=_0x17f9f1[_0x1fd089(0x19d)],_0x4c8c9c=Array(_0xa1b89c+0x1)['fill'](null)[_0x1fd089(0x198)](()=>Array(_0x2c08f5+0x1)['fill'](0x0));for(let _0x553e42=0x1;_0x553e42<=_0xa1b89c;_0x553e42++){for(let _0xd749e3=0x1;_0xd749e3<=_0x2c08f5;_0xd749e3++){_0x265851[_0x553e42-0x1]===_0x17f9f1[_0xd749e3-0x1]?_0x4c8c9c[_0x553e42][_0xd749e3]=_0x4c8c9c[_0x553e42-0x1][_0xd749e3-0x1]+0x1:_0x4c8c9c[_0x553e42][_0xd749e3]=Math[_0x1fd089(0x1b3)](_0x4c8c9c[_0x553e42-0x1][_0xd749e3],_0x4c8c9c[_0x553e42][_0xd749e3-0x1]);}}const _0x3fb695=[];let _0x28652a=_0xa1b89c,_0x1f7476=_0x2c08f5;while(_0x28652a>0x0&&_0x1f7476>0x0){if(_0x265851[_0x28652a-0x1]===_0x17f9f1[_0x1f7476-0x1])_0x3fb695[_0x1fd089(0x199)](_0x265851[_0x28652a-0x1]),_0x28652a--,_0x1f7476--;else _0x4c8c9c[_0x28652a-0x1][_0x1f7476]>_0x4c8c9c[_0x28652a][_0x1f7476-0x1]?_0x28652a--:_0x1f7476--;}return _0x3fb695;}export function formatDiffWithColors(_0x4a7368,_0x710d7c=0x3){const _0x1bf418=a211_0x2136,_0x3bc17e=new Set();_0x4a7368[_0x1bf418(0x1ac)]((_0x203405,_0xdc90a4)=>{const _0x189ed1=_0x1bf418;_0x203405[_0x189ed1(0x1b1)]!==_0x189ed1(0x1a2)&&_0x3bc17e[_0x189ed1(0x1b4)](_0xdc90a4);});if(_0x3bc17e[_0x1bf418(0x1bb)]===0x0)return'';const _0x349e72=new Set();for(const _0x4c51d5 of _0x3bc17e){for(let _0x3a580e=Math['max'](0x0,_0x4c51d5-_0x710d7c);_0x3a580e<=Math[_0x1bf418(0x1b6)](_0x4a7368['length']-0x1,_0x4c51d5+_0x710d7c);_0x3a580e++){_0x349e72[_0x1bf418(0x1b4)](_0x3a580e);}}const _0x21bef5=[];let _0x236c1b=-0x1;const _0x2e6776=_0x4a7368[_0x1bf418(0x19d)],_0x6ee767=Math['max'](0x3,String(_0x2e6776)[_0x1bf418(0x19d)]),_0x2aa6a7=[];let _0x59dff0=0x0,_0x56cf4b=0x0;for(const _0x7f7cb of _0x4a7368){if(_0x7f7cb['type']==='removed')_0x59dff0++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':_0x59dff0,'new':0x0});else _0x7f7cb['type']==='added'?(_0x56cf4b++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':0x0,'new':_0x56cf4b})):(_0x59dff0++,_0x56cf4b++,_0x2aa6a7[_0x1bf418(0x1b2)]({'old':_0x59dff0,'new':_0x56cf4b}));}for(let _0x5cafea=0x0;_0x5cafea<_0x4a7368[_0x1bf418(0x19d)];_0x5cafea++){if(!_0x349e72[_0x1bf418(0x1a6)](_0x5cafea))continue;_0x236c1b!==-0x1&&_0x5cafea>_0x236c1b+0x1&&_0x21bef5[_0x1bf418(0x1b2)](a211_0x43b408[_0x1bf418(0x1a9)](_0x1bf418(0x1a5)));_0x236c1b=_0x5cafea;const _0x59850a=_0x4a7368[_0x5cafea],_0x30efc5=_0x2aa6a7[_0x5cafea],_0x5e2c4b=_0x30efc5['old']>0x0?String(_0x30efc5[_0x1bf418(0x197)])['padStart'](_0x6ee767):'\x20'[_0x1bf418(0x1ad)](_0x6ee767),_0x358d65=_0x30efc5[_0x1bf418(0x19b)]>0x0?String(_0x30efc5[_0x1bf418(0x19b)])[_0x1bf418(0x1b9)](_0x6ee767):'\x20'[_0x1bf418(0x1ad)](_0x6ee767);switch(_0x59850a[_0x1bf418(0x1b1)]){case _0x1bf418(0x19a):_0x21bef5['push'](a211_0x43b408[_0x1bf418(0x1a4)](_0x5e2c4b+'\x20'+_0x358d65+_0x1bf418(0x19e)+_0x59850a[_0x1bf418(0x1a8)]));break;case _0x1bf418(0x1b5):_0x21bef5[_0x1bf418(0x1b2)](a211_0x43b408['green'](_0x5e2c4b+'\x20'+_0x358d65+_0x1bf418(0x19c)+_0x59850a[_0x1bf418(0x1a8)]));break;default:_0x21bef5['push'](a211_0x43b408[_0x1bf418(0x1af)](_0x5e2c4b+'\x20'+_0x358d65+'\x20\x20\x20'+_0x59850a[_0x1bf418(0x1a8)]));break;}}return _0x21bef5[_0x1bf418(0x196)]('\x0a');}function a211_0x2136(_0x1d396d,_0x148847){_0x1d396d=_0x1d396d-0x195;const _0x17c9e5=a211_0x17c9();let _0x21367b=_0x17c9e5[_0x1d396d];return _0x21367b;}function a211_0x17c9(){const _0x3ddc0c=['push','max','add','added','min','11967QtfdsV','4808CsqYUW','padStart','8739950EKnpCA','size','6032855eoRxkJ','join','old','map','unshift','removed','new','\x20+\x20','length','\x20-\x20','33BXXxmQ','7jLtXee','276812QlOEMb','unchanged','4704741IcpqaI','red','\x20\x20...','has','3118350fYqSMy','content','cyan','split','1068FZNvXB','forEach','repeat','some','dim','11459ysMmMf','type'];a211_0x17c9=function(){return _0x3ddc0c;};return a211_0x17c9();}export function hasChanges(_0x4f042d){const _0xeebbd9=a211_0x2136;return _0x4f042d[_0xeebbd9(0x1ae)](_0x587522=>_0x587522[_0xeebbd9(0x1b1)]!==_0xeebbd9(0x1a2));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x35e3b9,_0x5edbf2){const _0x48991a=a212_0x5b3d,_0x407834=_0x35e3b9();while(!![]){try{const _0x152b31=parseInt(_0x48991a(0xad))/0x1*(-parseInt(_0x48991a(0xb6))/0x2)+-parseInt(_0x48991a(0xbd))/0x3+parseInt(_0x48991a(0xb9))/0x4+parseInt(_0x48991a(0xb4))/0x5*(parseInt(_0x48991a(0xb1))/0x6)+parseInt(_0x48991a(0xb2))/0x7*(-parseInt(_0x48991a(0xaa))/0x8)+parseInt(_0x48991a(0xb5))/0x9+parseInt(_0x48991a(0xbc))/0xa*(parseInt(_0x48991a(0xbb))/0xb);if(_0x152b31===_0x5edbf2)break;else _0x407834['push'](_0x407834['shift']());}catch(_0x169169){_0x407834['push'](_0x407834['shift']());}}}(a212_0x1d16,0x90008));function a212_0x5b3d(_0x152c9c,_0x1cf231){_0x152c9c=_0x152c9c-0xaa;const _0x1d168b=a212_0x1d16();let _0x5b3d90=_0x1d168b[_0x152c9c];return _0x5b3d90;}function a212_0x1d16(){const _0x320c16=['mkdirSync','toString','1553106oAOdzQ','3696763dYeUGn','mode','5zYxRiZ','4528359lhCduN','362kZqDlJ','warn','Should\x20be\x200600\x20or\x20more\x20restrictive.','2042388MjYDMe',').\x20','16496689KVJcMM','10OjVhGr','2695107lOGdrz','Warning:\x20','chmodSync','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','16zPjPTz','writeFileSync','existsSync','1259xUcdIl','dirname'];a212_0x1d16=function(){return _0x320c16;};return a212_0x1d16();}import*as a212_0x4dfc0a from'node:fs';import*as a212_0x4259e1 from'node:path';export function setSecureFilePermissions(_0x1c4ada){const _0x4f0d7d=a212_0x5b3d;try{a212_0x4dfc0a[_0x4f0d7d(0xbf)](_0x1c4ada,0x180);}catch{console[_0x4f0d7d(0xb7)](_0x4f0d7d(0xc0)+_0x1c4ada);}}export function setSecureDirectoryPermissions(_0x197700){const _0x3a95a3=a212_0x5b3d;try{a212_0x4dfc0a['chmodSync'](_0x197700,0x1c0);}catch{console[_0x3a95a3(0xb7)](_0x3a95a3(0xc0)+_0x197700);}}export function createSecureDirectory(_0x26ca35){const _0x56b613=a212_0x5b3d;!a212_0x4dfc0a[_0x56b613(0xac)](_0x26ca35)&&(a212_0x4dfc0a[_0x56b613(0xaf)](_0x26ca35,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x26ca35));}export function validateSecureFilePermissions(_0x5113b4){const _0x3a43ec=a212_0x5b3d;try{const _0x500432=a212_0x4dfc0a['statSync'](_0x5113b4),_0x592dd2=_0x500432[_0x3a43ec(0xb3)]&0x1ff,_0xd886f2=(_0x592dd2&0x3f)!==0x0;if(_0xd886f2)return console[_0x3a43ec(0xb7)](_0x3a43ec(0xbe)+_0x5113b4+'\x20has\x20insecure\x20permissions\x20('+_0x592dd2[_0x3a43ec(0xb0)](0x8)+_0x3a43ec(0xba)+_0x3a43ec(0xb8)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x13c547,_0x253157){const _0x2f1217=a212_0x5b3d,_0x25c292=a212_0x4259e1[_0x2f1217(0xae)](_0x13c547);createSecureDirectory(_0x25c292),a212_0x4dfc0a[_0x2f1217(0xab)](_0x13c547,_0x253157,{'mode':0x180}),setSecureFilePermissions(_0x13c547);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a213_0x4a59(){const _0x36e2e6=['12NjQnBd','4768621nRWofA','4645936NQgfnG','\x27\x20not\x20found','14631TsCnMd','Error\x20reading\x20file\x20\x27','message','5929xHXrNz','4292289EItPWi','INTERNAL','EACCES','File\x20\x27','ENOENT','2088180WbiMPo','utf-8','NOT_FOUND','712SrWHGl','\x27:\x20','10YovRZE','66TeIjfd','2307536BRaxhD'];a213_0x4a59=function(){return _0x36e2e6;};return a213_0x4a59();}function a213_0x4e96(_0x28fcd0,_0x4dd8df){_0x28fcd0=_0x28fcd0-0x1da;const _0x4a5999=a213_0x4a59();let _0x4e96e4=_0x4a5999[_0x28fcd0];return _0x4e96e4;}(function(_0x2d936d,_0xdfa9db){const _0x1c540b=a213_0x4e96,_0x58ebd2=_0x2d936d();while(!![]){try{const _0xcda9e4=-parseInt(_0x1c540b(0x1e8))/0x1*(-parseInt(_0x1c540b(0x1df))/0x2)+parseInt(_0x1c540b(0x1e5))/0x3*(parseInt(_0x1c540b(0x1dc))/0x4)+parseInt(_0x1c540b(0x1ee))/0x5*(-parseInt(_0x1c540b(0x1e1))/0x6)+-parseInt(_0x1c540b(0x1e0))/0x7+parseInt(_0x1c540b(0x1e3))/0x8+-parseInt(_0x1c540b(0x1e9))/0x9*(-parseInt(_0x1c540b(0x1de))/0xa)+-parseInt(_0x1c540b(0x1e2))/0xb;if(_0xcda9e4===_0xdfa9db)break;else _0x58ebd2['push'](_0x58ebd2['shift']());}catch(_0x375247){_0x58ebd2['push'](_0x58ebd2['shift']());}}}(a213_0x4a59,0x7faf3));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';export function readFileContent(_0x42f668){const _0x26327d=a213_0x4e96;try{return readFileSync(_0x42f668,_0x26327d(0x1da));}catch(_0x1caa9a){const _0x4dd77a=_0x1caa9a['code'];if(_0x4dd77a===_0x26327d(0x1ed))throw new SDKError(ErrorCode[_0x26327d(0x1db)],_0x26327d(0x1ec)+_0x42f668+_0x26327d(0x1e4),_0x1caa9a);else{if(_0x4dd77a===_0x26327d(0x1eb))throw new SDKError(ErrorCode['PERMISSION_DENIED'],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x42f668+'\x27',_0x1caa9a);else throw new SDKError(ErrorCode[_0x26327d(0x1ea)],_0x26327d(0x1e6)+_0x42f668+_0x26327d(0x1dd)+_0x1caa9a[_0x26327d(0x1e7)],_0x1caa9a);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a214_0x57e9(_0x5161ed,_0x200aa0){_0x5161ed=_0x5161ed-0x1e1;const _0x4a46b1=a214_0x4a46();let _0x57e9fa=_0x4a46b1[_0x5161ed];return _0x57e9fa;}(function(_0x27d371,_0x2cb465){const _0xfb7c5f=a214_0x57e9,_0x58e5c1=_0x27d371();while(!![]){try{const _0x562fb9=-parseInt(_0xfb7c5f(0x1f8))/0x1*(parseInt(_0xfb7c5f(0x1e9))/0x2)+parseInt(_0xfb7c5f(0x1e6))/0x3*(parseInt(_0xfb7c5f(0x1f7))/0x4)+parseInt(_0xfb7c5f(0x1ef))/0x5+parseInt(_0xfb7c5f(0x1e3))/0x6+parseInt(_0xfb7c5f(0x1f4))/0x7+-parseInt(_0xfb7c5f(0x1e2))/0x8*(-parseInt(_0xfb7c5f(0x1f9))/0x9)+-parseInt(_0xfb7c5f(0x1e1))/0xa;if(_0x562fb9===_0x2cb465)break;else _0x58e5c1['push'](_0x58e5c1['shift']());}catch(_0x53dc7c){_0x58e5c1['push'](_0x58e5c1['shift']());}}}(a214_0x4a46,0xc7d1c));import*as a214_0x5bf953 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0x373d69,_0x2de0c8,_0x380790){const _0xd38af8=a214_0x57e9,_0x13f852=_0x373d69+'/'+_0x2de0c8,_0x199079=cache[_0xd38af8(0x1ea)](_0x13f852);if(_0x199079&&Date['now']()-_0x199079['fetchedAt']<CACHE_TTL_MS)return Promise[_0xd38af8(0x1e7)](_0x199079['releases']);return new Promise((_0x45408e,_0x2aeebb)=>{const _0x203272=_0xd38af8,_0x409383={'hostname':'api.github.com','path':_0x203272(0x1eb)+_0x373d69+'/'+_0x2de0c8+'/releases?per_page=20','headers':{'User-Agent':_0x380790,'Accept':_0x203272(0x1ed)},'timeout':REQUEST_TIMEOUT_MS},_0x2e61fe=a214_0x5bf953[_0x203272(0x1ea)](_0x409383,_0x5c5ce9=>{const _0x494d24=_0x203272;let _0x7b7cbe='';_0x5c5ce9['on'](_0x494d24(0x1f6),_0x12e1ed=>{const _0x2d7e91=_0x494d24;_0x7b7cbe+=_0x12e1ed[_0x2d7e91(0x1f2)]();}),_0x5c5ce9['on']('end',()=>{const _0xcb1d6f=_0x494d24;if(_0x5c5ce9[_0xcb1d6f(0x1f3)]!==0xc8){_0x2aeebb(new Error(_0xcb1d6f(0x1f5)+_0x5c5ce9[_0xcb1d6f(0x1f3)]+':\x20'+_0x7b7cbe[_0xcb1d6f(0x1ee)](0x0,0xc8)));return;}try{const _0x3b8b94=JSON[_0xcb1d6f(0x1ec)](_0x7b7cbe);cache[_0xcb1d6f(0x1e4)](_0x13f852,{'releases':_0x3b8b94,'fetchedAt':Date['now']()}),_0x45408e(_0x3b8b94);}catch(_0x56a509){_0x2aeebb(_0x56a509);}});});_0x2e61fe['on']('timeout',()=>{const _0x4f4351=_0x203272;_0x2e61fe['destroy'](),_0x2aeebb(new Error(_0x4f4351(0x1e8)+REQUEST_TIMEOUT_MS+'ms'));}),_0x2e61fe['on'](_0x203272(0x1f0),_0x2aeebb);});}export async function resolveReleaseTag(_0x1f77f1,_0xe65036,_0x4183ad,_0x16fa66){const _0x2c6360=a214_0x57e9;if(_0x1f77f1===_0x2c6360(0x1f1))return null;const _0x4848b8=await fetchGitHubReleases(_0xe65036,_0x4183ad,_0x16fa66);if(_0x4848b8['length']===0x0)return null;const _0x48a1e5=_0x4848b8[_0x2c6360(0x1e5)](_0xfe6b66=>!_0xfe6b66['prerelease']);return _0x48a1e5?_0x48a1e5['tag_name']:null;}function a214_0x4a46(){const _0x300f43=['error','next','toString','statusCode','10630417lNjbKM','GitHub\x20API\x20returned\x20','data','17444rQPkND','1OtBwYK','429237IlBrSh','21364920lOahkd','152FHheTu','475386gQwWqb','set','find','597smpjCR','resolve','GitHub\x20API\x20request\x20timed\x20out\x20after\x20','2127742RbWDVV','get','/repos/','parse','application/vnd.github+json','slice','3234775Pwhiac'];a214_0x4a46=function(){return _0x300f43;};return a214_0x4a46();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1290b6,_0x4dafa0){const _0x248b8d=a215_0x2752,_0x2462f4=_0x1290b6();while(!![]){try{const _0x4e8a20=-parseInt(_0x248b8d(0x1d2))/0x1*(parseInt(_0x248b8d(0x1c5))/0x2)+parseInt(_0x248b8d(0x1cc))/0x3+parseInt(_0x248b8d(0x1d1))/0x4+parseInt(_0x248b8d(0x1cf))/0x5+-parseInt(_0x248b8d(0x1c1))/0x6+parseInt(_0x248b8d(0x1c9))/0x7*(parseInt(_0x248b8d(0x1d5))/0x8)+parseInt(_0x248b8d(0x1cb))/0x9;if(_0x4e8a20===_0x4dafa0)break;else _0x2462f4['push'](_0x2462f4['shift']());}catch(_0x4c1fb9){_0x2462f4['push'](_0x2462f4['shift']());}}}(a215_0x546e,0xa29a2));import{existsSync,mkdirSync,readFileSync,writeFileSync,unlinkSync}from'fs';import{join}from'path';import{homedir}from'os';export function getGlobalCacheDir(){const _0x3160ec=a215_0x2752;return process.env.TDX_CACHE_DIR||join(homedir(),_0x3160ec(0x1c6),'tdx');}const registry=new Map();export function registerGlobalCacheKey(_0x42df98,_0x58ec66){const _0x1e1a4d=a215_0x2752,_0x467a4c=registry[_0x1e1a4d(0x1c2)](_0x42df98);if(_0x467a4c&&_0x467a4c!==_0x58ec66)throw new Error(_0x1e1a4d(0x1d0)+_0x42df98+_0x1e1a4d(0x1c0)+_0x467a4c+'\x22,\x20cannot\x20register\x20for\x20\x22'+_0x58ec66+'\x22');registry[_0x1e1a4d(0x1ca)](_0x42df98,_0x58ec66);}export function getGlobalCachePath(_0x189daf){return join(getGlobalCacheDir(),_0x189daf);}function ensureGlobalCacheDir(){const _0x29b4a3=getGlobalCacheDir();!existsSync(_0x29b4a3)&&mkdirSync(_0x29b4a3,{'recursive':!![]});}function readCacheJson(_0x3e2592){const _0x2a2c4a=a215_0x2752,_0x282895=getGlobalCachePath(_0x3e2592);if(!existsSync(_0x282895))return undefined;try{const _0x3cf582=readFileSync(_0x282895,_0x2a2c4a(0x1c8));return JSON[_0x2a2c4a(0x1c4)](_0x3cf582);}catch{return undefined;}}function writeCacheJson(_0x46d9de,_0x320708){const _0xb98f33=a215_0x2752;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x46d9de),JSON[_0xb98f33(0x1ce)](_0x320708,null,0x2),_0xb98f33(0x1c8));}function readCacheText(_0x43561b){const _0x3b4883=getGlobalCachePath(_0x43561b);if(!existsSync(_0x3b4883))return undefined;try{return readFileSync(_0x3b4883,'utf-8');}catch{return undefined;}}function writeCacheText(_0x4ed4fc,_0x421b19){const _0x45e78a=a215_0x2752;ensureGlobalCacheDir(),writeFileSync(getGlobalCachePath(_0x4ed4fc),_0x421b19,_0x45e78a(0x1c8));}function clearCache(_0x5871bf){const _0x180fee=getGlobalCachePath(_0x5871bf);if(existsSync(_0x180fee))try{unlinkSync(_0x180fee);}catch{}}function cacheExists(_0x4b1c0e){return existsSync(getGlobalCachePath(_0x4b1c0e));}export function createGlobalCache(_0x561508,_0x3c93b1){return registerGlobalCacheKey(_0x561508,_0x3c93b1),{'read':()=>readCacheJson(_0x561508),'write':_0x9a0dc8=>writeCacheJson(_0x561508,_0x9a0dc8),'clear':()=>clearCache(_0x561508),'exists':()=>cacheExists(_0x561508),'path':()=>getGlobalCachePath(_0x561508)};}function a215_0x2752(_0x283c38,_0x40fa03){_0x283c38=_0x283c38-0x1c0;const _0x546eed=a215_0x546e();let _0x2752a9=_0x546eed[_0x283c38];return _0x2752a9;}export function createGlobalTextCache(_0x8cce83,_0x55bed7){const _0x14d35b=a215_0x2752;return registerGlobalCacheKey(_0x8cce83,_0x55bed7),{'read':()=>readCacheText(_0x8cce83)?.[_0x14d35b(0x1cd)]()||undefined,'write':_0x315ca1=>writeCacheText(_0x8cce83,_0x315ca1),'clear':()=>clearCache(_0x8cce83),'exists':()=>cacheExists(_0x8cce83),'path':()=>getGlobalCachePath(_0x8cce83)};}export function createProfileCache(_0x42f332,_0x16bb5f){const _0x2adbe4=_0x55af4b=>{const _0x4b20f4=a215_0x2752,_0x12c699=_0x55af4b||_0x4b20f4(0x1d3);return _0x42f332[_0x4b20f4(0x1d4)](_0x4b20f4(0x1c3),_0x12c699);};return{'read':_0x3c65f3=>{const _0x18a934=_0x2adbe4(_0x3c65f3);return registerGlobalCacheKey(_0x18a934,_0x16bb5f),readCacheJson(_0x18a934);},'write':(_0x20df2c,_0x4f9807)=>{const _0x2a87ef=_0x2adbe4(_0x20df2c);registerGlobalCacheKey(_0x2a87ef,_0x16bb5f),writeCacheJson(_0x2a87ef,_0x4f9807);},'clear':_0x37b981=>{const _0xb3247e=_0x2adbe4(_0x37b981);clearCache(_0xb3247e);},'exists':_0x448def=>{const _0x3c99d3=_0x2adbe4(_0x448def);return cacheExists(_0x3c99d3);},'path':_0x3babd7=>{const _0x1afd48=_0x2adbe4(_0x3babd7);return getGlobalCachePath(_0x1afd48);}};}export function createOptionalProfileCache(_0x9c2a58,_0x3640c3,_0x2833be={}){const {profileSeparator:profileSeparator='.',suffix:suffix=''}=_0x2833be,_0x6efb51=_0x4b1a21=>{return _0x4b1a21?''+_0x9c2a58+profileSeparator+_0x4b1a21+suffix:''+_0x9c2a58+suffix;};return{'read':_0x3db107=>{const _0x493e7c=_0x6efb51(_0x3db107);return registerGlobalCacheKey(_0x493e7c,_0x3640c3),readCacheJson(_0x493e7c);},'write':(_0x1fe598,_0x480981)=>{const _0x2517e3=_0x6efb51(_0x480981);registerGlobalCacheKey(_0x2517e3,_0x3640c3),writeCacheJson(_0x2517e3,_0x1fe598);},'clear':_0x1f9a8d=>{const _0x16ddb1=_0x6efb51(_0x1f9a8d);clearCache(_0x16ddb1);},'exists':_0x2757d3=>{const _0x18a28c=_0x6efb51(_0x2757d3);return cacheExists(_0x18a28c);},'path':_0x40bad9=>{const _0x1a4324=_0x6efb51(_0x40bad9);return getGlobalCachePath(_0x1a4324);}};}export function clearGlobalRegistry(){const _0x2ee5eb=a215_0x2752;registry[_0x2ee5eb(0x1c7)]();}function a215_0x546e(){const _0xb7dd30=['51296gXDaLE','set','12052161BltwCS','1324272pxeJSb','trim','stringify','6078820FOmSHe','Global\x20cache\x20key\x20\x22','756836CsUnRo','16222rrHUUV','default','replace','16onizyp','\x22\x20already\x20registered\x20by\x20\x22','7515756TqDlBQ','get','{profile}','parse','158NAszkw','.cache','clear','utf-8'];a215_0x546e=function(){return _0xb7dd30;};return a215_0x546e();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x36f8bf,_0x56bbca){const _0x1432ee=a216_0x342a,_0x2aaf09=_0x36f8bf();while(!![]){try{const _0x380718=-parseInt(_0x1432ee(0x1dc))/0x1+-parseInt(_0x1432ee(0x1e2))/0x2+parseInt(_0x1432ee(0x1db))/0x3+parseInt(_0x1432ee(0x1ea))/0x4*(parseInt(_0x1432ee(0x1d8))/0x5)+parseInt(_0x1432ee(0x1e9))/0x6+-parseInt(_0x1432ee(0x1e5))/0x7+-parseInt(_0x1432ee(0x1e3))/0x8;if(_0x380718===_0x56bbca)break;else _0x2aaf09['push'](_0x2aaf09['shift']());}catch(_0x2816af){_0x2aaf09['push'](_0x2aaf09['shift']());}}}(a216_0x3738,0x9991a));import{readFile}from'fs/promises';import{SDKError,ErrorCode}from'../sdk/errors.js';function a216_0x342a(_0x1e23e2,_0x555e9a){_0x1e23e2=_0x1e23e2-0x1d5;const _0x3738d0=a216_0x3738();let _0x342ab4=_0x3738d0[_0x1e23e2];return _0x342ab4;}export async function loadJSON(_0x53372b,_0x279ca6){const _0x14360d=a216_0x342a;try{if(_0x279ca6){const _0x592263=await readFile(_0x53372b,_0x14360d(0x1da));try{return JSON[_0x14360d(0x1d9)](_0x592263);}catch(_0x59638f){throw new SDKError(ErrorCode['INVALID_ARGUMENT'],'Invalid\x20JSON\x20in\x20file\x20\x27'+_0x53372b+'\x27:\x20'+(_0x59638f instanceof Error?_0x59638f['message']:String(_0x59638f)));}}else try{return JSON[_0x14360d(0x1d9)](_0x53372b);}catch(_0x1e5f0f){throw new SDKError(ErrorCode[_0x14360d(0x1e7)],'Invalid\x20JSON\x20string:\x20'+(_0x1e5f0f instanceof Error?_0x1e5f0f[_0x14360d(0x1e4)]:String(_0x1e5f0f)));}}catch(_0x215d72){if(_0x215d72 instanceof SDKError)throw _0x215d72;if(_0x215d72 instanceof Error&&_0x14360d(0x1d7)in _0x215d72){const _0x240314=_0x215d72;if(_0x240314[_0x14360d(0x1d7)]===_0x14360d(0x1dd))throw new SDKError(ErrorCode[_0x14360d(0x1e8)],_0x14360d(0x1de)+_0x53372b);else{if(_0x240314[_0x14360d(0x1d7)]===_0x14360d(0x1d6))throw new SDKError(ErrorCode[_0x14360d(0x1e1)],_0x14360d(0x1d5)+_0x53372b);}}throw new SDKError(ErrorCode[_0x14360d(0x1e0)],_0x14360d(0x1e6)+(_0x215d72 instanceof Error?_0x215d72[_0x14360d(0x1e4)]:String(_0x215d72)));}}export async function loadJSONFromOptions(_0x599766,_0x31f670){const _0x44d37d=a216_0x342a;if(_0x599766&&_0x31f670)throw new SDKError(ErrorCode[_0x44d37d(0x1e7)],_0x44d37d(0x1df));if(_0x599766)return await loadJSON(_0x599766,![]);if(_0x31f670)return await loadJSON(_0x31f670,!![]);return undefined;}function a216_0x3738(){const _0x39da9a=['File\x20not\x20found:\x20','Cannot\x20specify\x20both\x20inline\x20JSON\x20and\x20file\x20path.\x20Use\x20one\x20or\x20the\x20other.','INTERNAL','PERMISSION_DENIED','1007294ethXtu','5723816PoafHg','message','5303123SlrEQK','Failed\x20to\x20load\x20JSON:\x20','INVALID_ARGUMENT','NOT_FOUND','4421646KAacaO','4758788OloUpa','Permission\x20denied\x20reading\x20file:\x20','EACCES','code','5VDeCFY','parse','utf-8','3251841IgAVFu','404854OCgDfv','ENOENT'];a216_0x3738=function(){return _0x39da9a;};return a216_0x3738();}
|