@treasuredata/tdx 2026.6.1 → 2026.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin.js +1 -1
- package/dist/build-info.json +3 -3
- package/dist/cli-categories.js +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +1 -1
- package/dist/commands/activations.js +1 -1
- package/dist/commands/agent-command.js +1 -1
- package/dist/commands/agent-test-command.js +1 -1
- package/dist/commands/api-command.js +1 -1
- package/dist/commands/auth-command.js +1 -1
- package/dist/commands/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/table-deleted.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.d.ts +2 -2
- package/dist/commands/workflow-command.d.ts.map +1 -1
- package/dist/commands/workflow-command.js +1 -1
- package/dist/commands/workflow-command.js.map +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.d.ts +23 -1
- package/dist/sdk/client/workflow-client.d.ts.map +1 -1
- package/dist/sdk/client/workflow-client.js +1 -1
- package/dist/sdk/client/workflow-client.js.map +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/llm/user-settings.js +1 -1
- package/dist/sdk/personalization.js +1 -1
- package/dist/sdk/policy.js +1 -1
- package/dist/sdk/query/deleted-table-validation.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/workflow.d.ts +1 -1
- package/dist/sdk/types/workflow.d.ts.map +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.d.ts +23 -2
- package/dist/sdk/workflow/index.d.ts.map +1 -1
- package/dist/sdk/workflow/index.js +1 -1
- package/dist/sdk/workflow/index.js.map +1 -1
- package/dist/sdk/workflow/pull-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.d.ts +4 -0
- package/dist/sdk/workflow/push-workflow.d.ts.map +1 -1
- package/dist/sdk/workflow/push-workflow.js +1 -1
- package/dist/sdk/workflow/push-workflow.js.map +1 -1
- package/dist/sdk/workflow/task-graph.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.js +1 -1
- package/dist/sdk/workspace/index.js +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 +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x5ffe28,_0x2e7903){const _0x58dcbc=a206_0x2711,_0x50aed5=_0x5ffe28();while(!![]){try{const _0x4fb413=-parseInt(_0x58dcbc(0x193))/0x1*(parseInt(_0x58dcbc(0x164))/0x2)+parseInt(_0x58dcbc(0x17a))/0x3+parseInt(_0x58dcbc(0x16b))/0x4+parseInt(_0x58dcbc(0x18e))/0x5+-parseInt(_0x58dcbc(0x198))/0x6+parseInt(_0x58dcbc(0x197))/0x7*(-parseInt(_0x58dcbc(0x171))/0x8)+parseInt(_0x58dcbc(0x176))/0x9;if(_0x4fb413===_0x2e7903)break;else _0x50aed5['push'](_0x50aed5['shift']());}catch(_0x56de3a){_0x50aed5['push'](_0x50aed5['shift']());}}}(a206_0x1faf,0x739f0));import*as a206_0x5c2dcc from'node:fs';import*as a206_0x4f9c30 from'node:path';import{serializeFrontmatter}from'./frontmatter.js';function getWeekNumber(_0x6e801b){const _0x3beb18=a206_0x2711,_0x2fc51e=new Date(Date[_0x3beb18(0x177)](_0x6e801b[_0x3beb18(0x19b)](),_0x6e801b[_0x3beb18(0x173)](),_0x6e801b[_0x3beb18(0x16e)]())),_0x5d0a83=_0x2fc51e[_0x3beb18(0x17e)]()||0x7;_0x2fc51e[_0x3beb18(0x182)](_0x2fc51e[_0x3beb18(0x188)]()+0x4-_0x5d0a83);const _0x569b52=new Date(Date['UTC'](_0x2fc51e[_0x3beb18(0x180)](),0x0,0x1));return Math['ceil'](((_0x2fc51e[_0x3beb18(0x18b)]()-_0x569b52[_0x3beb18(0x18b)]())/0x5265c00+0x1)/0x7);}function getWeekRange(_0x2fa8ee){const _0xe81a5a=a206_0x2711,_0xc1bfa7=new Date(_0x2fa8ee),_0x40d6bc=_0xc1bfa7[_0xe81a5a(0x170)](),_0x22f629=_0xc1bfa7['getDate']()-_0x40d6bc+(_0x40d6bc===0x0?-0x6:0x1),_0x208def=new Date(_0xc1bfa7[_0xe81a5a(0x187)](_0x22f629)),_0x322123=new Date(_0x208def);return _0x322123['setDate'](_0x208def[_0xe81a5a(0x16e)]()+0x4),{'monday':_0x208def,'friday':_0x322123};}function formatShortDate(_0x40fe02){const _0x22e5e9=a206_0x2711;return _0x40fe02[_0x22e5e9(0x190)](_0x22e5e9(0x19f),{'month':_0x22e5e9(0x184),'day':_0x22e5e9(0x18c)});}export function generateWeeklyNote(_0x1cff22){const _0x3f6752=a206_0x2711,_0x34a881=_0x1cff22[_0x3f6752(0x16a)]||new Date(),_0x2f1c65=getWeekNumber(_0x34a881),_0x174e3f=_0x34a881['getFullYear'](),{monday:_0x142084,friday:_0xe805b3}=getWeekRange(_0x34a881),_0x4e2ec5=_0x3f6752(0x19e)+_0x2f1c65+'\x20('+formatShortDate(_0x142084)+'-'+formatShortDate(_0xe805b3)+')',_0x42d968=_0x174e3f+'-W'+String(_0x2f1c65)[_0x3f6752(0x194)](0x2,'0')+_0x3f6752(0x186),_0x22629a={'title':_0x4e2ec5,'tags':['weekly'],'created':_0x34a881[_0x3f6752(0x189)]()[_0x3f6752(0x178)](0x0,0xa)},_0x308073=[];if(_0x1cff22['goals'][_0x3f6752(0x161)]>0x0){_0x308073[_0x3f6752(0x19c)]('##\x20Goals\x20Progress');for(const _0x34f130 of _0x1cff22[_0x3f6752(0x191)]){const _0x276f0f=a206_0x4f9c30[_0x3f6752(0x165)](_0x34f130['fileName'],_0x3f6752(0x186)),_0x5a1247=_0x1cff22[_0x3f6752(0x16c)](_0x34f130[_0x3f6752(0x16f)]),_0x18a3b5=_0x34f130[_0x3f6752(0x18d)][_0x3f6752(0x168)]||_0x276f0f;if(_0x5a1247[_0x3f6752(0x183)]>0x0){_0x308073['push'](_0x3f6752(0x17f)+_0x276f0f+'|'+_0x18a3b5+_0x3f6752(0x179)+_0x5a1247[_0x3f6752(0x196)]+'/'+_0x5a1247[_0x3f6752(0x183)]+'\x20items\x20done\x20('+_0x5a1247[_0x3f6752(0x19d)]+'%)');if(_0x5a1247[_0x3f6752(0x175)]?.['length'])for(const _0x24c23f of _0x5a1247[_0x3f6752(0x175)]){const _0x20355c=a206_0x4f9c30[_0x3f6752(0x165)](_0x24c23f[_0x3f6752(0x195)],_0x3f6752(0x186));_0x308073['push'](_0x3f6752(0x19a)+_0x20355c+_0x3f6752(0x192)+_0x24c23f[_0x3f6752(0x18a)]+_0x3f6752(0x17b)+_0x24c23f[_0x3f6752(0x185)][_0x3f6752(0x181)](',\x20')+'_');}}else _0x308073[_0x3f6752(0x19c)](_0x3f6752(0x17f)+_0x276f0f+'|'+_0x18a3b5+_0x3f6752(0x167));}_0x308073[_0x3f6752(0x19c)]('');}const _0x2d6944=_0x1cff22[_0x3f6752(0x166)]['filter'](_0x3ee472=>_0x3ee472[_0x3f6752(0x18d)][_0x3f6752(0x18a)]===_0x3f6752(0x196)),_0x11bb65=_0x1cff22[_0x3f6752(0x166)][_0x3f6752(0x1a1)](_0xa3ec5a=>[_0x3f6752(0x162),_0x3f6752(0x15f),_0x3f6752(0x16d),_0x3f6752(0x174)]['includes'](_0xa3ec5a[_0x3f6752(0x18d)][_0x3f6752(0x18a)])),_0x260893=_0x1cff22[_0x3f6752(0x166)][_0x3f6752(0x1a1)](_0x27351a=>[_0x3f6752(0x18f),_0x3f6752(0x1a3)][_0x3f6752(0x1a0)](_0x27351a[_0x3f6752(0x18d)][_0x3f6752(0x18a)]));_0x308073['push'](_0x3f6752(0x169));if(_0x2d6944[_0x3f6752(0x161)]>0x0)for(const _0x90f5d2 of _0x2d6944){_0x308073[_0x3f6752(0x19c)](_0x3f6752(0x172)+_0x90f5d2[_0x3f6752(0x18d)][_0x3f6752(0x168)]);}if(_0x11bb65['length']>0x0)for(const _0x2fdf76 of _0x11bb65){_0x308073[_0x3f6752(0x19c)](_0x3f6752(0x199)+_0x2fdf76[_0x3f6752(0x18d)][_0x3f6752(0x168)]+_0x3f6752(0x17c)+_0x2fdf76[_0x3f6752(0x18d)]['status']+')_');}if(_0x260893[_0x3f6752(0x161)]>0x0)for(const _0x4e4756 of _0x260893){_0x308073[_0x3f6752(0x19c)](_0x3f6752(0x199)+_0x4e4756[_0x3f6752(0x18d)][_0x3f6752(0x168)]);}_0x2d6944['length']===0x0&&_0x11bb65[_0x3f6752(0x161)]===0x0&&_0x260893[_0x3f6752(0x161)]===0x0&&_0x308073[_0x3f6752(0x19c)](_0x3f6752(0x163));_0x308073[_0x3f6752(0x19c)](''),_0x308073['push']('##\x20Reflection'),_0x308073[_0x3f6752(0x19c)](''),_0x308073['push']('');const _0x2201ae=_0x308073[_0x3f6752(0x181)]('\x0a'),_0x11c3bd=serializeFrontmatter(_0x22629a,_0x2201ae);return{'fileName':_0x42d968,'content':_0x11c3bd};}function a206_0x2711(_0x12d99a,_0x404438){_0x12d99a=_0x12d99a-0x15f;const _0x1fafe8=a206_0x1faf();let _0x271150=_0x1fafe8[_0x12d99a];return _0x271150;}export function writeWeeklyNote(_0x297b43,_0x55ca0f){const _0x56d0bf=a206_0x2711,{fileName:_0x125ded,content:_0x396cde}=generateWeeklyNote(_0x55ca0f),_0x4fa9b8=a206_0x4f9c30['join'](_0x297b43,'notes','weekly');a206_0x5c2dcc[_0x56d0bf(0x17d)](_0x4fa9b8,{'recursive':!![]});const _0x2e4bbf=a206_0x4f9c30[_0x56d0bf(0x181)](_0x4fa9b8,_0x125ded);return a206_0x5c2dcc[_0x56d0bf(0x160)](_0x2e4bbf,_0x396cde,_0x56d0bf(0x1a2)),{'filePath':_0x2e4bbf,'fileName':_0x125ded};}function a206_0x1faf(){const _0x14e93b=[']]\x20—\x20','2771403lnPHNK',')\x20—\x20via\x20','\x20_(','mkdirSync','getUTCDay','-\x20[[','getUTCFullYear','join','setUTCDate','total','short','referencedBy','.md','setDate','getUTCDate','toISOString','status','getTime','numeric','frontmatter','1862710UWhVcb','backlog','toLocaleDateString','goals',']]\x20(','18023DGSRCa','padStart','fileName','done','3199343wFfpnM','5675454TUgzWk','-\x20[\x20]\x20','\x20\x20-\x20_Transitive:\x20[[','getFullYear','push','percentage','Week\x20','en-US','includes','filter','utf-8','todo','review','writeFileSync','length','in_progress','_No\x20items\x20yet._','68kUPjnn','basename','items',']]\x20—\x20no\x20items\x20linked','title','##\x20This\x20Week','weekDate','1682412RcUXoj','getGoalProgress','planning','getDate','filePath','getDay','16AtnmqK','-\x20[x]\x20','getMonth','design_review','transitiveDeps','11064843ShoHee','UTC','slice'];a206_0x1faf=function(){return _0x14e93b;};return a206_0x1faf();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1a21fd,_0x4c45a9){const _0x4789b5=a207_0x4457,_0x43920a=_0x1a21fd();while(!![]){try{const _0x494823=-parseInt(_0x4789b5(0x1e4))/0x1*(-parseInt(_0x4789b5(0x1f9))/0x2)+-parseInt(_0x4789b5(0x1e6))/0x3*(-parseInt(_0x4789b5(0x1fb))/0x4)+-parseInt(_0x4789b5(0x207))/0x5+-parseInt(_0x4789b5(0x204))/0x6*(parseInt(_0x4789b5(0x1f4))/0x7)+parseInt(_0x4789b5(0x1ea))/0x8+-parseInt(_0x4789b5(0x1fa))/0x9+parseInt(_0x4789b5(0x1f1))/0xa*(-parseInt(_0x4789b5(0x1fd))/0xb);if(_0x494823===_0x4c45a9)break;else _0x43920a['push'](_0x43920a['shift']());}catch(_0x48d033){_0x43920a['push'](_0x43920a['shift']());}}}(a207_0x49a3,0xd27c1));function a207_0x4457(_0x5d7f60,_0x504caf){_0x5d7f60=_0x5d7f60-0x1e1;const _0x49a3de=a207_0x49a3();let _0x4457e2=_0x49a3de[_0x5d7f60];return _0x4457e2;}import*as a207_0x4e89eb from'node:fs';import*as a207_0x254964 from'node:path';import{DOCUMENT_KIND_FOLDERS,KIND_PRIORITY,isTrackableKind}from'../types/workspace.js';const WIKI_LINK_REGEX=/\[\[([^\[\]]+)\]\]/g;export function parseWikiLinks(_0x341e7d){const _0x4176ed=a207_0x4457,_0x2e13ee=[];let _0x53702c;WIKI_LINK_REGEX[_0x4176ed(0x1ff)]=0x0;while((_0x53702c=WIKI_LINK_REGEX['exec'](_0x341e7d))!==null){const _0x332f73=_0x53702c[0x1],_0x441bac=_0x332f73['indexOf']('|');let _0x237aa4,_0x4ab9b1;_0x441bac!==-0x1?(_0x237aa4=_0x332f73[_0x4176ed(0x1e7)](0x0,_0x441bac)[_0x4176ed(0x1e2)](),_0x4ab9b1=_0x332f73['slice'](_0x441bac+0x1)[_0x4176ed(0x1e2)]()):_0x237aa4=_0x332f73[_0x4176ed(0x1e2)](),_0x2e13ee[_0x4176ed(0x1ee)]({'raw':_0x53702c[0x0],'slug':_0x237aa4,'displayText':_0x4ab9b1});}return _0x2e13ee;}export function collectMarkdownFiles(_0x3a5078,_0x160231=0x0){const _0x137f6f=a207_0x4457;if(_0x160231>0x5)return[];if(!a207_0x4e89eb[_0x137f6f(0x1fe)](_0x3a5078))return[];const _0x58e5b4=[];try{for(const _0x29c003 of a207_0x4e89eb['readdirSync'](_0x3a5078,{'withFileTypes':!![]})){if(_0x29c003[_0x137f6f(0x200)]['startsWith']('.'))continue;if(_0x29c003[_0x137f6f(0x205)]())continue;const _0x4aef02=a207_0x254964['join'](_0x3a5078,_0x29c003['name']);if(_0x29c003['isDirectory']())_0x58e5b4['push'](...collectMarkdownFiles(_0x4aef02,_0x160231+0x1));else _0x29c003['name']['endsWith'](_0x137f6f(0x1f2))&&_0x58e5b4['push'](_0x4aef02);}}catch{}return _0x58e5b4;}export function buildFileIndex(_0x1338ee){const _0x58d9eb=a207_0x4457,_0x93bfbb=new Map();for(const [_0xa72379,_0x8b0f03]of Object['entries'](DOCUMENT_KIND_FOLDERS)){const _0x308cb9=a207_0x254964[_0x58d9eb(0x201)](_0x1338ee,_0x8b0f03),_0x3bf7f2=collectMarkdownFiles(_0x308cb9);for(const _0x57831e of _0x3bf7f2){const _0x37c6b0=a207_0x254964[_0x58d9eb(0x1f0)](_0x57831e,_0x58d9eb(0x1f2)),_0x1a8a58={'stem':_0x37c6b0,'kind':_0xa72379,'filePath':_0x57831e,'folder':_0x8b0f03},_0x2f66d5=_0x93bfbb[_0x58d9eb(0x203)](_0x37c6b0)||[];_0x2f66d5[_0x58d9eb(0x1ee)](_0x1a8a58),_0x93bfbb['set'](_0x37c6b0,_0x2f66d5);}}return _0x93bfbb;}export function resolveWikiLinks(_0x3593fb,_0xbd93d8){const _0x2bde2f=a207_0x4457,_0x2eeab3=parseWikiLinks(_0x3593fb);for(const _0x40c23d of _0x2eeab3){const {slug:_0x3396cd}=_0x40c23d,_0x314625=_0x3396cd['indexOf']('/');if(_0x314625!==-0x1){const _0x37be80=_0x3396cd[_0x2bde2f(0x1e7)](0x0,_0x314625),_0x422f90=_0x3396cd['slice'](_0x314625+0x1),_0x51cf9f=_0xbd93d8[_0x2bde2f(0x203)](_0x422f90);if(_0x51cf9f){const _0x307d23=_0x51cf9f['find'](_0x1beb56=>_0x1beb56[_0x2bde2f(0x1e3)]===_0x37be80);_0x307d23&&(_0x40c23d[_0x2bde2f(0x1ed)]=_0x307d23[_0x2bde2f(0x1e5)],_0x40c23d[_0x2bde2f(0x1eb)]=_0x307d23['kind']);}continue;}const _0x15de4d=_0xbd93d8['get'](_0x3396cd);if(_0x15de4d&&_0x15de4d['length']>0x0){const _0x113d3f=_0x15de4d['sort']((_0x428fee,_0x5f365d)=>(KIND_PRIORITY[_0x5f365d[_0x2bde2f(0x1f5)]]||0x0)-(KIND_PRIORITY[_0x428fee[_0x2bde2f(0x1f5)]]||0x0));_0x40c23d['resolvedPath']=_0x113d3f[0x0][_0x2bde2f(0x1e5)],_0x40c23d['resolvedKind']=_0x113d3f[0x0][_0x2bde2f(0x1f5)];}}return _0x2eeab3;}export function linkStem(_0xe67d61){const _0x37bfb0=a207_0x4457,_0x563806=_0xe67d61[_0x37bfb0(0x1f6)]('/');return _0x563806!==-0x1?_0xe67d61[_0x37bfb0(0x1e7)](_0x563806+0x1):_0xe67d61;}function hasDocEntry(_0x258dd6){const _0x17a2b2=a207_0x4457;return _0x258dd6?.['some'](_0x226dee=>isTrackableKind(_0x226dee[_0x17a2b2(0x1f5)]))??![];}export function findTransitiveDependencies(_0x3d9cbc,_0xdb6c25,_0x3fca10){const _0x570352=a207_0x4457,_0x175602=new Map(),_0x586120=new Set(_0x3d9cbc),_0x2d9b91=[..._0x3d9cbc];function _0x1679de(_0x578a22,_0x12cb8f){const _0x5a31fd=a207_0x4457;for(const _0x59ccec of parseWikiLinks(_0x12cb8f)){const _0x46a303=_0x59ccec[_0x5a31fd(0x202)][_0x5a31fd(0x1e8)]('/');if(_0x46a303!==-0x1){const _0x14596c=_0x59ccec[_0x5a31fd(0x202)]['slice'](0x0,_0x46a303);if(_0x14596c===_0x5a31fd(0x1e9)||_0x14596c===_0x5a31fd(0x1ec))continue;}const _0x1b11d8=linkStem(_0x59ccec[_0x5a31fd(0x202)]);if(!hasDocEntry(_0xdb6c25['get'](_0x1b11d8)))continue;if(!_0x586120[_0x5a31fd(0x1e1)](_0x1b11d8))_0x586120[_0x5a31fd(0x206)](_0x1b11d8),_0x2d9b91[_0x5a31fd(0x1ee)](_0x1b11d8),_0x175602[_0x5a31fd(0x1f7)](_0x1b11d8,{'referencedBy':[_0x578a22]});else{if(_0x175602['has'](_0x1b11d8)){const _0x465864=_0x175602[_0x5a31fd(0x203)](_0x1b11d8);!_0x465864[_0x5a31fd(0x1fc)]['includes'](_0x578a22)&&_0x465864['referencedBy'][_0x5a31fd(0x1ee)](_0x578a22);}}}}while(_0x2d9b91[_0x570352(0x1f3)]>0x0){const _0x34e1cc=_0x2d9b91['shift'](),_0x96711b=_0x3fca10(_0x34e1cc);if(_0x96711b)_0x1679de(_0x34e1cc,_0x96711b);}return _0x175602;}export function getBacklinks(_0x3dc64d,_0xe2d4b9){const _0x24d16a=a207_0x4457,_0xdc198b=[];for(const [_0x443b60,_0x562aa4]of Object[_0x24d16a(0x1f8)](DOCUMENT_KIND_FOLDERS)){const _0x585968=a207_0x254964[_0x24d16a(0x201)](_0xe2d4b9,_0x562aa4),_0x368f1d=collectMarkdownFiles(_0x585968);for(const _0x5e8906 of _0x368f1d){const _0x4418d9=a207_0x4e89eb['readFileSync'](_0x5e8906,_0x24d16a(0x1ef)),_0x117273=parseWikiLinks(_0x4418d9),_0x1e4ef3=_0x117273['some'](_0x800e0e=>{const _0x9c1a42=_0x24d16a,_0x32b8c7=_0x800e0e[_0x9c1a42(0x202)]['indexOf']('/'),_0x2855ca=_0x32b8c7!==-0x1?_0x800e0e[_0x9c1a42(0x202)][_0x9c1a42(0x1e7)](_0x32b8c7+0x1):_0x800e0e[_0x9c1a42(0x202)];return _0x2855ca===_0x3dc64d;});if(_0x1e4ef3){const _0x46e2a3=_0x4418d9['match'](/^---[\s\S]*?title:\s*(.+?)[\s]*\n/m),_0x504c02=a207_0x254964['basename'](_0x5e8906),_0x4f96e2=_0x46e2a3?_0x46e2a3[0x1]['replace'](/^['"]|['"]$/g,''):_0x504c02;_0xdc198b[_0x24d16a(0x1ee)]({'filePath':_0x5e8906,'kind':_0x443b60,'title':_0x4f96e2});}}}return _0xdc198b;}function a207_0x49a3(){const _0x5a4743=['10183096xuazfM','resolvedKind','workflows','resolvedPath','push','utf-8','basename','327940VkSHqo','.md','length','7zqLJRN','kind','lastIndexOf','set','entries','490wdsGnS','6570909QKpBKJ','288056iqBofF','referencedBy','209rgcQml','existsSync','lastIndex','name','join','slug','get','3938604dgNxep','isSymbolicLink','add','1109645LRDDkL','has','trim','folder','6844eicEWj','filePath','6ZgIBvT','slice','indexOf','templates'];a207_0x49a3=function(){return _0x5a4743;};return a207_0x49a3();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a208_0x452480=a208_0x1c06;(function(_0x21c01c,_0xc53f92){const _0x5687d3=a208_0x1c06,_0x2dd209=_0x21c01c();while(!![]){try{const _0x5df076=-parseInt(_0x5687d3(0x1ec))/0x1+-parseInt(_0x5687d3(0x1de))/0x2*(-parseInt(_0x5687d3(0x1d5))/0x3)+parseInt(_0x5687d3(0x1d9))/0x4*(-parseInt(_0x5687d3(0x1e8))/0x5)+-parseInt(_0x5687d3(0x1e1))/0x6*(-parseInt(_0x5687d3(0x1df))/0x7)+-parseInt(_0x5687d3(0x1d2))/0x8+-parseInt(_0x5687d3(0x1d8))/0x9+parseInt(_0x5687d3(0x1e5))/0xa*(parseInt(_0x5687d3(0x1db))/0xb);if(_0x5df076===_0xc53f92)break;else _0x2dd209['push'](_0x2dd209['shift']());}catch(_0x13b55f){_0x2dd209['push'](_0x2dd209['shift']());}}}(a208_0xf68a,0x5245e));function a208_0xf68a(){const _0x3ed1bb=['http','error','ERROR','561813hBpzOk','fail','map','reset','options','setup','verify','1290416vSaDkE','push','warn','1943442xzWvWm','runSequence','run','2314008zEzgge','410028WTaZWV','exitCode','261844jtpNpe','us01','log','2irolYG','119ZddJWY','test-api-key-id/test-api-key-secret','218094YUTIct','join','site','fetch','280SLawQN','originalFetch','createFetch','30pFDpZH'];a208_0xf68a=function(){return _0x3ed1bb;};return a208_0xf68a();}function a208_0x1c06(_0x3b5850,_0x13e2c9){_0x3b5850=_0x3b5850-0x1d1;const _0xf68a85=a208_0xf68a();let _0x1c0632=_0xf68a85[_0x3b5850];return _0x1c0632;}import{TDX,LogLevel}from'../sdk/index.js';import{createHTTPMock}from'./http-mock.js';import{createTestGlobalOptions}from'./factories.js';export class CommandRunner{[a208_0x452480(0x1e9)];['originalFetch'];constructor(){const _0x56dcbc=a208_0x452480;this[_0x56dcbc(0x1e9)]=createHTTPMock(),this['originalFetch']=global[_0x56dcbc(0x1e4)];}[a208_0x452480(0x1f1)](){const _0x81c6cf=a208_0x452480;this[_0x81c6cf(0x1e6)]=global['fetch'],global[_0x81c6cf(0x1e4)]=this[_0x81c6cf(0x1e9)][_0x81c6cf(0x1e7)]();}['teardown'](_0x9df22a){const _0x511162=a208_0x452480;try{_0x9df22a?.[_0x511162(0x1ed)]&&this[_0x511162(0x1e9)][_0x511162(0x1d1)](_0x9df22a);}finally{global[_0x511162(0x1e4)]=this[_0x511162(0x1e6)],this[_0x511162(0x1e9)][_0x511162(0x1ef)]();}}async[a208_0x452480(0x1d7)](_0x4ca3c6,_0x2246c2={}){const _0x493976=a208_0x452480,_0x584741=[],_0x3bff1f=[],_0x3155ea=console[_0x493976(0x1dd)],_0x1e2159=console[_0x493976(0x1ea)],_0x30ffd5=console['warn'];console[_0x493976(0x1dd)]=(..._0x4078f2)=>{const _0x3661be=_0x493976;_0x584741[_0x3661be(0x1d3)](_0x4078f2[_0x3661be(0x1ee)](String)[_0x3661be(0x1e2)]('\x20'));},console[_0x493976(0x1ea)]=(..._0x565537)=>{const _0x216753=_0x493976;_0x3bff1f[_0x216753(0x1d3)](_0x565537[_0x216753(0x1ee)](String)['join']('\x20'));},console[_0x493976(0x1d4)]=(..._0x329f4b)=>{const _0x2e9052=_0x493976;_0x3bff1f[_0x2e9052(0x1d3)](_0x329f4b['map'](String)['join']('\x20'));};try{const _0x83740e=new TDX({'site':_0x2246c2[_0x493976(0x1f0)]?.[_0x493976(0x1e3)]??_0x493976(0x1dc),'apiKey':_0x493976(0x1e0),'logLevel':LogLevel[_0x493976(0x1eb)]}),_0x24f55d={'options':createTestGlobalOptions(_0x2246c2[_0x493976(0x1f0)]),'args':_0x2246c2['args']??[],'tdx':_0x83740e},_0x2e80f5=new _0x4ca3c6(),_0x268cbc=await _0x2e80f5[_0x493976(0x1d7)](_0x24f55d);return{'exitCode':_0x268cbc,'stdout':_0x584741,'stderr':_0x3bff1f};}finally{console['log']=_0x3155ea,console['error']=_0x1e2159,console['warn']=_0x30ffd5;}}async[a208_0x452480(0x1d6)](_0x4483cb){const _0x31960d=a208_0x452480,_0xea4930=[];for(const {command:_0x3811ba,options:_0x39174a}of _0x4483cb){const _0x59d19e=await this[_0x31960d(0x1d7)](_0x3811ba,_0x39174a);_0xea4930['push'](_0x59d19e);if(_0x59d19e[_0x31960d(0x1da)]!==0x0)break;}return _0xea4930;}}export function createCommandRunner(){return new CommandRunner();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x4168da,_0x3c6987){const _0x2c1d09=a209_0x15a6,_0x3dc3ac=_0x4168da();while(!![]){try{const _0x2c9c4b=parseInt(_0x2c1d09(0x1a7))/0x1+-parseInt(_0x2c1d09(0x199))/0x2+parseInt(_0x2c1d09(0x1a0))/0x3*(-parseInt(_0x2c1d09(0x1a1))/0x4)+-parseInt(_0x2c1d09(0x1b1))/0x5*(-parseInt(_0x2c1d09(0x1b3))/0x6)+parseInt(_0x2c1d09(0x1a5))/0x7*(parseInt(_0x2c1d09(0x1aa))/0x8)+-parseInt(_0x2c1d09(0x193))/0x9*(parseInt(_0x2c1d09(0x19f))/0xa)+-parseInt(_0x2c1d09(0x1a6))/0xb*(-parseInt(_0x2c1d09(0x1a4))/0xc);if(_0x2c9c4b===_0x3c6987)break;else _0x3dc3ac['push'](_0x3dc3ac['shift']());}catch(_0x1e2e49){_0x3dc3ac['push'](_0x3dc3ac['shift']());}}}(a209_0x54e3,0xe0e7d));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(_0x1b37af){const _0x10cbe9=a209_0x15a6;return{'site':_0x10cbe9(0x1af),'apiKey':_0x10cbe9(0x197),'logLevel':LogLevel['ERROR'],..._0x1b37af};}export function createTestGlobalOptions(_0x2740ee){const _0x45b0d3=a209_0x15a6;return{'site':_0x45b0d3(0x1af),'format':_0x45b0d3(0x195),'noColor':!![],'limit':0x64,'verbose':![],'timeout':_0x45b0d3(0x1b0),'dryRun':![],'yes':![],'logLevel':LogLevel['ERROR'],..._0x2740ee};}export async function initTestLogger(){const _0x2fc228=a209_0x15a6;Logger[_0x2fc228(0x1b2)]();const _0x19988e=join(getGlobalCacheDir(),'logs',_0x2fc228(0x1a9));await Logger[_0x2fc228(0x191)]({'defaultLevel':LogLevel[_0x2fc228(0x19d)],'handlers':[new FileHandler({'filePath':_0x19988e,'rotate':![]})]});}function a209_0x15a6(_0x224b7c,_0x125d20){_0x224b7c=_0x224b7c-0x191;const _0x54e3a7=a209_0x54e3();let _0x15a62b=_0x54e3a7[_0x224b7c];return _0x15a62b;}export function resetTestLogger(){Logger['reset']();}export function createMockTDX(_0x4e7fa8){const _0x26bed4=a209_0x15a6;return{'context':{'site':'us01','apiKey':_0x26bed4(0x19a),'logLevel':LogLevel[_0x26bed4(0x1a8)]},'query':{'execute':vi['fn'](),'listDatabases':vi['fn'](),'listTables':vi['fn'](),'describeTable':vi['fn'](),'showTable':vi['fn'](),..._0x4e7fa8?.[_0x26bed4(0x19c)]},'segment':{'listParents':vi['fn'](),'getParent':vi['fn'](),'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4e7fa8?.[_0x26bed4(0x19b)]},'journey':{'list':vi['fn'](),'get':vi['fn'](),'create':vi['fn'](),'update':vi['fn'](),'delete':vi['fn'](),..._0x4e7fa8?.[_0x26bed4(0x1ae)]},'workflow':{'list':vi['fn'](),'get':vi['fn'](),'run':vi['fn'](),..._0x4e7fa8?.['workflow']},'user':{'show':vi['fn'](),..._0x4e7fa8?.[_0x26bed4(0x1ac)]},'api':{'request':vi['fn'](),..._0x4e7fa8?.[_0x26bed4(0x1ab)]},..._0x4e7fa8};}function a209_0x54e3(){const _0x24cb41=['test-api-key-id/test-api-key-secret','log','3444140HsoGGe','test-api-key','segment','query','DEBUG','warn','1020khALQg','4313616bJqVOf','4CkilXx','tdx','map','108anhaGa','133qKpvlR','2642981CozQOi','1223855XwaqIw','ERROR','tdx-test.log','261688lkhmAw','api','user','args','journey','us01','30000','3635BhXKHd','reset','2172cejyUP','join','init','options','16749dZVUVE','push','table','error'];a209_0x54e3=function(){return _0x24cb41;};return a209_0x54e3();}export function createTestCommandContext(_0xa13223){const _0x5a89a9=a209_0x15a6,_0xb068e3=createTestGlobalOptions(_0xa13223?.[_0x5a89a9(0x192)]),_0x49fd2d=_0xa13223?.[_0x5a89a9(0x1a2)]??createMockTDX();return{'options':_0xb068e3,'args':_0xa13223?.[_0x5a89a9(0x1ad)]??[],'tdx':_0x49fd2d};}export function captureConsole(){const _0x41b293=a209_0x15a6,_0x5ab7b5=[],_0x5601fb=[],_0x14d861=console[_0x41b293(0x198)],_0x33cb32=console['error'],_0x14b1a1=console['warn'];return console[_0x41b293(0x198)]=(..._0x314c2c)=>{const _0x442c2a=_0x41b293;_0x5ab7b5[_0x442c2a(0x194)](_0x314c2c[_0x442c2a(0x1a3)](String)[_0x442c2a(0x1b4)]('\x20'));},console[_0x41b293(0x196)]=(..._0x575d44)=>{const _0x284bd3=_0x41b293;_0x5601fb[_0x284bd3(0x194)](_0x575d44[_0x284bd3(0x1a3)](String)[_0x284bd3(0x1b4)]('\x20'));},console[_0x41b293(0x19e)]=(..._0x3b3463)=>{const _0x31f434=_0x41b293;_0x5601fb[_0x31f434(0x194)](_0x3b3463[_0x31f434(0x1a3)](String)[_0x31f434(0x1b4)]('\x20'));},{'stdout':_0x5ab7b5,'stderr':_0x5601fb,'restore':()=>{const _0x58f66=_0x41b293;console[_0x58f66(0x198)]=_0x14d861,console['error']=_0x33cb32,console[_0x58f66(0x19e)]=_0x14b1a1;}};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a210_0x4d123f=a210_0x1df5;(function(_0x508366,_0x41880d){const _0x22dd5a=a210_0x1df5,_0x39a14a=_0x508366();while(!![]){try{const _0x3d3714=-parseInt(_0x22dd5a(0x120))/0x1*(-parseInt(_0x22dd5a(0x13d))/0x2)+parseInt(_0x22dd5a(0x147))/0x3*(-parseInt(_0x22dd5a(0x169))/0x4)+-parseInt(_0x22dd5a(0x174))/0x5+parseInt(_0x22dd5a(0x16d))/0x6+parseInt(_0x22dd5a(0x11d))/0x7*(parseInt(_0x22dd5a(0x12c))/0x8)+-parseInt(_0x22dd5a(0x16a))/0x9*(parseInt(_0x22dd5a(0x12d))/0xa)+parseInt(_0x22dd5a(0x17e))/0xb;if(_0x3d3714===_0x41880d)break;else _0x39a14a['push'](_0x39a14a['shift']());}catch(_0x2207c7){_0x39a14a['push'](_0x39a14a['shift']());}}}(a210_0x36cc,0x877f4));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x172),'permission':'administrator'},'withTables':{'name':a210_0x4d123f(0x139),'count':0x64,'created_at':a210_0x4d123f(0x142),'updated_at':a210_0x4d123f(0x149),'permission':a210_0x4d123f(0x150)}},'table':{'basic':{'id':0x3039,'name':'users','type':'log','schema':JSON['stringify']([['id',a210_0x4d123f(0x12b)],['time',a210_0x4d123f(0x128)],[a210_0x4d123f(0x176),a210_0x4d123f(0x12b)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-01T00:00:00Z'},'events':{'id':0x303a,'name':'events','type':a210_0x4d123f(0x178),'schema':JSON[a210_0x4d123f(0x118)]([[a210_0x4d123f(0x170),'string'],[a210_0x4d123f(0x134),a210_0x4d123f(0x128)],[a210_0x4d123f(0x14e),a210_0x4d123f(0x12b)],[a210_0x4d123f(0x141),'string'],[a210_0x4d123f(0x11f),a210_0x4d123f(0x167)]]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':'ps-123456','name':a210_0x4d123f(0x161),'description':a210_0x4d123f(0x166),'status':'active','master_table':{'database':a210_0x4d123f(0x15e),'table':a210_0x4d123f(0x13a)},'attributes':[{'name':a210_0x4d123f(0x175),'type':a210_0x4d123f(0x12b),'key':!![]},{'name':a210_0x4d123f(0x123),'type':a210_0x4d123f(0x12b)},{'name':'created_at','type':a210_0x4d123f(0x13f)}],'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x125)},'withBehaviors':{'id':a210_0x4d123f(0x14a),'name':'Customers\x20with\x20Behaviors','description':'Parent\x20segment\x20with\x20behavioral\x20data','status':a210_0x4d123f(0x157),'master_table':{'database':a210_0x4d123f(0x15e),'table':a210_0x4d123f(0x158)},'behaviors':[{'name':'purchases','table':{'database':a210_0x4d123f(0x12a),'table':a210_0x4d123f(0x124)},'join_key':a210_0x4d123f(0x175)},{'name':a210_0x4d123f(0x177),'table':{'database':'events_db','table':a210_0x4d123f(0x15a)},'join_key':a210_0x4d123f(0x175)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x4d123f(0x125)}},'segment':{'basic':{'id':'cs-456789','name':a210_0x4d123f(0x17a),'description':a210_0x4d123f(0x159),'parent_segment_id':a210_0x4d123f(0x15f),'status':a210_0x4d123f(0x157),'rules':[{'type':a210_0x4d123f(0x154),'field':'last_login','operator':a210_0x4d123f(0x140),'value':'30d'}],'count':0x1388,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-15T00:00:00Z'},'withMultipleRules':{'id':a210_0x4d123f(0x137),'name':a210_0x4d123f(0x146),'description':a210_0x4d123f(0x144),'parent_segment_id':a210_0x4d123f(0x15f),'status':'active','rules':[{'type':a210_0x4d123f(0x154),'field':'last_login','operator':'TimeWithinPast','value':a210_0x4d123f(0x11a)},{'type':a210_0x4d123f(0x154),'field':a210_0x4d123f(0x163),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':a210_0x4d123f(0x172),'updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':'j-abc123','name':'Welcome\x20Journey','description':a210_0x4d123f(0x143),'status':'draft','version':0x1,'steps':[{'id':a210_0x4d123f(0x173),'type':'wait','duration':'1d'},{'id':a210_0x4d123f(0x13c),'type':a210_0x4d123f(0x11c),'activation_id':a210_0x4d123f(0x164)}],'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x125)},'withDecision':{'id':a210_0x4d123f(0x122),'name':a210_0x4d123f(0x17d),'description':'Journey\x20with\x20decision\x20point','status':a210_0x4d123f(0x157),'version':0x2,'steps':[{'id':a210_0x4d123f(0x173),'type':a210_0x4d123f(0x14b),'segment_id':a210_0x4d123f(0x17c),'yes_path':a210_0x4d123f(0x13c),'no_path':a210_0x4d123f(0x14d)},{'id':'step-2','type':a210_0x4d123f(0x11c),'activation_id':'act-email'},{'id':a210_0x4d123f(0x14d),'type':a210_0x4d123f(0x14c)}],'created_at':a210_0x4d123f(0x172),'updated_at':a210_0x4d123f(0x125)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a210_0x4d123f(0x168)},{'name':a210_0x4d123f(0x176),'type':a210_0x4d123f(0x168)},{'name':a210_0x4d123f(0x16f),'type':a210_0x4d123f(0x132)}],'data':[['user-1','Alice',0x64],[a210_0x4d123f(0x130),a210_0x4d123f(0x160),0xc8],[a210_0x4d123f(0x135),a210_0x4d123f(0x15d),0x96]]},'empty':{'schema':[{'name':'id','type':a210_0x4d123f(0x168)},{'name':'name','type':a210_0x4d123f(0x168)}],'data':[]},'singleRow':{'schema':[{'name':'total','type':a210_0x4d123f(0x132)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':'Test\x20User','email':a210_0x4d123f(0x16c),'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x4d123f(0x125),'administrator':![]},'admin':{'id':0x1,'name':'Admin\x20User','email':'admin@example.com','created_at':'2023-01-01T00:00:00Z','updated_at':a210_0x4d123f(0x125),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a210_0x4d123f(0x119),'status':'success','query':a210_0x4d123f(0x13e),'start_at':'2024-01-15T10:00:00Z','end_at':a210_0x4d123f(0x12e),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':'presto','database':'test_db','status':a210_0x4d123f(0x15c),'query':'SELECT\x20COUNT(*)\x20FROM\x20events','start_at':a210_0x4d123f(0x117),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a210_0x4d123f(0x129),'database':a210_0x4d123f(0x119),'status':a210_0x4d123f(0x153),'query':'SELECT\x20*\x20FROM\x20nonexistent_table','start_at':a210_0x4d123f(0x171),'end_at':a210_0x4d123f(0x14f),'duration':0x1,'result_size':null,'error':'Table\x20does\x20not\x20exist:\x20nonexistent_table'}},'workflow':{'basic':{'id':a210_0x4d123f(0x145),'name':a210_0x4d123f(0x12f),'project':'data_pipeline','revision':a210_0x4d123f(0x11e),'timezone':'UTC','schedule':{'cron':a210_0x4d123f(0x136)}},'withSessions':{'id':a210_0x4d123f(0x148),'name':'hourly_sync','project':'data_sync','revision':a210_0x4d123f(0x138),'timezone':a210_0x4d123f(0x152),'schedule':{'cron':a210_0x4d123f(0x126)},'last_session':{'id':'sess-111','status':a210_0x4d123f(0x156),'started_at':a210_0x4d123f(0x16b),'finished_at':a210_0x4d123f(0x133)}}},'apiError':{'unauthorized':{'errors':{'error':a210_0x4d123f(0x151),'message':a210_0x4d123f(0x151),'severity':a210_0x4d123f(0x153),'status_code':0x191}},'notFound':{'errors':{'error':a210_0x4d123f(0x131),'message':a210_0x4d123f(0x116),'severity':a210_0x4d123f(0x153),'status_code':0x194}},'rateLimited':{'detail':'Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.'},'rfc9457':{'type':a210_0x4d123f(0x15b),'title':'Forbidden','status':0x193,'detail':a210_0x4d123f(0x155),'instance':a210_0x4d123f(0x11b)}}};export function createDatabase(_0x4ff928){const _0x3bf7ec=a210_0x4d123f;return{...fixtures[_0x3bf7ec(0x179)][_0x3bf7ec(0x165)],..._0x4ff928};}function a210_0x1df5(_0x3cba6f,_0xb166db){_0x3cba6f=_0x3cba6f-0x116;const _0x36cce9=a210_0x36cc();let _0x1df5ca=_0x36cce9[_0x3cba6f];return _0x1df5ca;}function a210_0x36cc(){const _0x3f1d52=['step-3','user_id','2024-01-15T10:10:01Z','full_access','Invalid\x20API\x20key','America/Los_Angeles','error','attribute','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','success','active','customers','Users\x20active\x20in\x20the\x20last\x2030\x20days','pageviews','https://api.treasuredata.com/errors/forbidden','running','Charlie','cdp_db','ps-123456','Bob','Test\x20Parent\x20Segment','queryResult','lifetime_value','act-123','basic','A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','map<string,string>','varchar','614556zUehmN','20214USVmdG','2024-01-15T09:00:00Z','test@example.com','5017428WLSpry','completed','count','event_id','2024-01-15T10:10:00Z','2024-01-01T00:00:00Z','step-1','1648870FDCRwm','customer_id','name','page_views','log','database','Active\x20Users','table','cs-456789','Purchase\x20Reminder','10793310Tynpce','The\x20requested\x20resource\x20does\x20not\x20exist','2024-01-15T10:05:00Z','stringify','test_db','30d','/v3/database/list','activation','6802481VNdGxT','abc123','properties','15508zmivPD','user','j-def456','email','purchases','2024-01-15T00:00:00Z','0\x20*\x20*\x20*\x20*','segment','long','presto','events_db','string','8GSCGfR','3760ImMJPT','2024-01-15T10:00:05Z','daily_etl','user-2','Resource\x20not\x20found','bigint','2024-01-15T09:05:00Z','time','user-3','0\x200\x20*\x20*\x20*','cs-111222','def456','production_db','unified_customers','parentSegment','step-2','2ifJfBK','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','timestamp','TimeWithinPast','event_type','2023-06-15T10:30:00Z','Onboarding\x20journey\x20for\x20new\x20users','Active\x20users\x20with\x20high\x20lifetime\x20value','wf-12345','High\x20Value\x20Active\x20Users','21KuBVCE','wf-67890','2024-01-15T08:00:00Z','ps-789012','decision_point','end'];a210_0x36cc=function(){return _0x3f1d52;};return a210_0x36cc();}export function createTable(_0x3b2d7c){const _0x437af2=a210_0x4d123f;return{...fixtures[_0x437af2(0x17b)][_0x437af2(0x165)],..._0x3b2d7c};}export function createParentSegment(_0x118046){const _0x4fe10b=a210_0x4d123f;return{...fixtures[_0x4fe10b(0x13b)][_0x4fe10b(0x165)],..._0x118046};}export function createSegment(_0x1b1f43){const _0x3b0056=a210_0x4d123f;return{...fixtures[_0x3b0056(0x127)][_0x3b0056(0x165)],..._0x1b1f43};}export function createJourney(_0x4f93ee){const _0x413d27=a210_0x4d123f;return{...fixtures['journey'][_0x413d27(0x165)],..._0x4f93ee};}export function createQueryResult(_0x5d6db4){const _0x57ebc7=a210_0x4d123f;return{...fixtures[_0x57ebc7(0x162)][_0x57ebc7(0x165)],..._0x5d6db4};}export function createUser(_0x161ba6){const _0x3edb2b=a210_0x4d123f;return{...fixtures[_0x3edb2b(0x121)][_0x3edb2b(0x165)],..._0x161ba6};}export function createJob(_0x54fea5){const _0x135d3d=a210_0x4d123f;return{...fixtures['job'][_0x135d3d(0x16e)],..._0x54fea5};}export function createWorkflow(_0x3d54ec){const _0x48f9e6=a210_0x4d123f;return{...fixtures['workflow'][_0x48f9e6(0x165)],..._0x3d54ec};}
|
|
1
|
+
const a210_0x3319fa=a210_0x471d;(function(_0x171011,_0x3715a7){const _0x152655=a210_0x471d,_0xd249af=_0x171011();while(!![]){try{const _0x39e66f=-parseInt(_0x152655(0x1c2))/0x1+parseInt(_0x152655(0x190))/0x2+-parseInt(_0x152655(0x1c3))/0x3+parseInt(_0x152655(0x17b))/0x4+-parseInt(_0x152655(0x1cf))/0x5+parseInt(_0x152655(0x19d))/0x6+parseInt(_0x152655(0x1c9))/0x7*(-parseInt(_0x152655(0x17e))/0x8);if(_0x39e66f===_0x3715a7)break;else _0xd249af['push'](_0xd249af['shift']());}catch(_0x1d19da){_0xd249af['push'](_0xd249af['shift']());}}}(a210_0x482c,0xec6ab));export const fixtures={'database':{'basic':{'name':'test_db','count':0x5,'created_at':a210_0x3319fa(0x1c1),'updated_at':a210_0x3319fa(0x1c1),'permission':a210_0x3319fa(0x183)},'withTables':{'name':'production_db','count':0x64,'created_at':'2023-06-15T10:30:00Z','updated_at':a210_0x3319fa(0x1b2),'permission':a210_0x3319fa(0x1e2)}},'table':{'basic':{'id':0x3039,'name':a210_0x3319fa(0x178),'type':a210_0x3319fa(0x181),'schema':JSON[a210_0x3319fa(0x1da)]([['id',a210_0x3319fa(0x199)],[a210_0x3319fa(0x1bc),a210_0x3319fa(0x1a3)],[a210_0x3319fa(0x1b1),a210_0x3319fa(0x199)]]),'count':0x3e8,'estimated_storage_size':0x100000,'created_at':a210_0x3319fa(0x1c1),'updated_at':a210_0x3319fa(0x1c1)},'events':{'id':0x303a,'name':'events','type':a210_0x3319fa(0x181),'schema':JSON[a210_0x3319fa(0x1da)]([[a210_0x3319fa(0x19a),a210_0x3319fa(0x199)],[a210_0x3319fa(0x1bc),a210_0x3319fa(0x1a3)],[a210_0x3319fa(0x19f),a210_0x3319fa(0x199)],[a210_0x3319fa(0x196),a210_0x3319fa(0x199)],[a210_0x3319fa(0x177),'map<string,string>']]),'count':0xc350,'estimated_storage_size':0x3200000,'created_at':a210_0x3319fa(0x1c1),'updated_at':'2024-01-15T12:00:00Z'}},'parentSegment':{'basic':{'id':a210_0x3319fa(0x1df),'name':a210_0x3319fa(0x17a),'description':'A\x20test\x20parent\x20segment\x20for\x20unit\x20tests','status':a210_0x3319fa(0x1cb),'master_table':{'database':a210_0x3319fa(0x1d4),'table':a210_0x3319fa(0x185)},'attributes':[{'name':a210_0x3319fa(0x1be),'type':'string','key':!![]},{'name':'email','type':a210_0x3319fa(0x199)},{'name':a210_0x3319fa(0x1aa),'type':a210_0x3319fa(0x1db)}],'created_at':a210_0x3319fa(0x1c1),'updated_at':a210_0x3319fa(0x1c0)},'withBehaviors':{'id':a210_0x3319fa(0x1a5),'name':a210_0x3319fa(0x1a9),'description':a210_0x3319fa(0x192),'status':'active','master_table':{'database':'cdp_db','table':a210_0x3319fa(0x1c5)},'behaviors':[{'name':a210_0x3319fa(0x1a0),'table':{'database':a210_0x3319fa(0x1b0),'table':a210_0x3319fa(0x1a0)},'join_key':a210_0x3319fa(0x1be)},{'name':a210_0x3319fa(0x188),'table':{'database':a210_0x3319fa(0x1b0),'table':'pageviews'},'join_key':a210_0x3319fa(0x1be)}],'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x3319fa(0x1c0)}},'segment':{'basic':{'id':a210_0x3319fa(0x1b4),'name':'Active\x20Users','description':a210_0x3319fa(0x1d7),'parent_segment_id':a210_0x3319fa(0x1df),'status':a210_0x3319fa(0x1cb),'rules':[{'type':a210_0x3319fa(0x18c),'field':a210_0x3319fa(0x1c7),'operator':a210_0x3319fa(0x1ba),'value':a210_0x3319fa(0x1d5)}],'count':0x1388,'created_at':a210_0x3319fa(0x1c1),'updated_at':a210_0x3319fa(0x1c0)},'withMultipleRules':{'id':a210_0x3319fa(0x1d8),'name':'High\x20Value\x20Active\x20Users','description':'Active\x20users\x20with\x20high\x20lifetime\x20value','parent_segment_id':a210_0x3319fa(0x1df),'status':'active','rules':[{'type':a210_0x3319fa(0x18c),'field':a210_0x3319fa(0x1c7),'operator':a210_0x3319fa(0x1ba),'value':a210_0x3319fa(0x1d5)},{'type':a210_0x3319fa(0x18c),'field':a210_0x3319fa(0x1bb),'operator':'Greater','value':0x3e8}],'count':0x5dc,'created_at':'2024-01-01T00:00:00Z','updated_at':'2024-01-15T00:00:00Z'}},'journey':{'basic':{'id':'j-abc123','name':'Welcome\x20Journey','description':a210_0x3319fa(0x1d6),'status':'draft','version':0x1,'steps':[{'id':a210_0x3319fa(0x1b9),'type':a210_0x3319fa(0x1d9),'duration':'1d'},{'id':'step-2','type':'activation','activation_id':a210_0x3319fa(0x189)}],'created_at':a210_0x3319fa(0x1c1),'updated_at':a210_0x3319fa(0x1c0)},'withDecision':{'id':'j-def456','name':a210_0x3319fa(0x1b8),'description':a210_0x3319fa(0x1a4),'status':a210_0x3319fa(0x1cb),'version':0x2,'steps':[{'id':a210_0x3319fa(0x1b9),'type':a210_0x3319fa(0x1ab),'segment_id':a210_0x3319fa(0x1b4),'yes_path':a210_0x3319fa(0x179),'no_path':a210_0x3319fa(0x184)},{'id':a210_0x3319fa(0x179),'type':a210_0x3319fa(0x17d),'activation_id':'act-email'},{'id':a210_0x3319fa(0x184),'type':a210_0x3319fa(0x19e)}],'created_at':a210_0x3319fa(0x1c1),'updated_at':a210_0x3319fa(0x1c0)}},'queryResult':{'basic':{'schema':[{'name':'id','type':a210_0x3319fa(0x19c)},{'name':a210_0x3319fa(0x1b1),'type':a210_0x3319fa(0x19c)},{'name':a210_0x3319fa(0x1dd),'type':'bigint'}],'data':[[a210_0x3319fa(0x174),'Alice',0x64],[a210_0x3319fa(0x1b5),'Bob',0xc8],[a210_0x3319fa(0x1b7),'Charlie',0x96]]},'empty':{'schema':[{'name':'id','type':'varchar'},{'name':a210_0x3319fa(0x1b1),'type':a210_0x3319fa(0x19c)}],'data':[]},'singleRow':{'schema':[{'name':a210_0x3319fa(0x1cd),'type':a210_0x3319fa(0x1bd)}],'data':[[0x2a]]}},'user':{'basic':{'id':0x3039,'name':a210_0x3319fa(0x176),'email':a210_0x3319fa(0x198),'created_at':'2024-01-01T00:00:00Z','updated_at':a210_0x3319fa(0x1c0),'administrator':![]},'admin':{'id':0x1,'name':a210_0x3319fa(0x191),'email':'admin@example.com','created_at':a210_0x3319fa(0x1cc),'updated_at':a210_0x3319fa(0x1c0),'administrator':!![]}},'job':{'completed':{'job_id':0x75bcd15,'type':'presto','database':a210_0x3319fa(0x1a8),'status':a210_0x3319fa(0x17c),'query':a210_0x3319fa(0x1b6),'start_at':a210_0x3319fa(0x1d3),'end_at':a210_0x3319fa(0x1d1),'duration':0x5,'result_size':0x400},'running':{'job_id':0x75bcd16,'type':a210_0x3319fa(0x1a7),'database':'test_db','status':a210_0x3319fa(0x1bf),'query':a210_0x3319fa(0x194),'start_at':a210_0x3319fa(0x186),'end_at':null,'duration':null,'result_size':null},'failed':{'job_id':0x75bcd17,'type':a210_0x3319fa(0x1a7),'database':a210_0x3319fa(0x1a8),'status':a210_0x3319fa(0x18a),'query':a210_0x3319fa(0x1ca),'start_at':a210_0x3319fa(0x1c4),'end_at':a210_0x3319fa(0x193),'duration':0x1,'result_size':null,'error':a210_0x3319fa(0x197)}},'workflow':{'basic':{'id':a210_0x3319fa(0x187),'name':a210_0x3319fa(0x1a1),'project':a210_0x3319fa(0x1ad),'revision':a210_0x3319fa(0x1e0),'timezone':a210_0x3319fa(0x1ac),'schedule':{'cron':a210_0x3319fa(0x18b)}},'withSessions':{'id':a210_0x3319fa(0x1dc),'name':a210_0x3319fa(0x17f),'project':'data_sync','revision':'def456','timezone':a210_0x3319fa(0x182),'schedule':{'cron':'0\x20*\x20*\x20*\x20*'},'last_session':{'id':a210_0x3319fa(0x1d2),'status':'success','started_at':a210_0x3319fa(0x18e),'finished_at':a210_0x3319fa(0x1b3)}}},'apiError':{'unauthorized':{'errors':{'error':a210_0x3319fa(0x1ae),'message':'Invalid\x20API\x20key','severity':'error','status_code':0x191}},'notFound':{'errors':{'error':a210_0x3319fa(0x1a6),'message':a210_0x3319fa(0x1af),'severity':a210_0x3319fa(0x18a),'status_code':0x194}},'rateLimited':{'detail':a210_0x3319fa(0x1ce)},'rfc9457':{'type':a210_0x3319fa(0x1d0),'title':'Forbidden','status':0x193,'detail':a210_0x3319fa(0x1a2),'instance':a210_0x3319fa(0x195)}}};export function createDatabase(_0x21e315){const _0x2423c0=a210_0x3319fa;return{...fixtures[_0x2423c0(0x18d)][_0x2423c0(0x18f)],..._0x21e315};}export function createTable(_0x67bb22){const _0x5e4380=a210_0x3319fa;return{...fixtures[_0x5e4380(0x180)]['basic'],..._0x67bb22};}export function createParentSegment(_0x3538e5){const _0x5c9c01=a210_0x3319fa;return{...fixtures[_0x5c9c01(0x1c8)][_0x5c9c01(0x18f)],..._0x3538e5};}function a210_0x482c(){const _0xb0f8fa=['time','bigint','customer_id','running','2024-01-15T00:00:00Z','2024-01-01T00:00:00Z','293414cqaYgy','888723APgbZV','2024-01-15T10:10:00Z','customers','queryResult','last_login','parentSegment','672rLqGAD','SELECT\x20*\x20FROM\x20nonexistent_table','active','2023-01-01T00:00:00Z','total','Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.','8169550GBSAkW','https://api.treasuredata.com/errors/forbidden','2024-01-15T10:00:05Z','sess-111','2024-01-15T10:00:00Z','cdp_db','30d','Onboarding\x20journey\x20for\x20new\x20users','Users\x20active\x20in\x20the\x20last\x2030\x20days','cs-111222','wait','stringify','timestamp','wf-67890','count','user','ps-123456','abc123','journey','full_access','user-1','job','Test\x20User','properties','users','step-2','Test\x20Parent\x20Segment','5586320dSRVvL','success','activation','106528ZyRdtQ','hourly_sync','table','log','America/Los_Angeles','administrator','step-3','unified_customers','2024-01-15T10:05:00Z','wf-12345','page_views','act-123','error','0\x200\x20*\x20*\x20*','attribute','database','2024-01-15T09:00:00Z','basic','2565366cssmOx','Admin\x20User','Parent\x20segment\x20with\x20behavioral\x20data','2024-01-15T10:10:01Z','SELECT\x20COUNT(*)\x20FROM\x20events','/v3/database/list','event_type','Table\x20does\x20not\x20exist:\x20nonexistent_table','test@example.com','string','event_id','workflow','varchar','10746006kgZEOn','end','user_id','purchases','daily_etl','You\x20do\x20not\x20have\x20permission\x20to\x20access\x20this\x20resource','long','Journey\x20with\x20decision\x20point','ps-789012','Resource\x20not\x20found','presto','test_db','Customers\x20with\x20Behaviors','created_at','decision_point','UTC','data_pipeline','Invalid\x20API\x20key','The\x20requested\x20resource\x20does\x20not\x20exist','events_db','name','2024-01-15T08:00:00Z','2024-01-15T09:05:00Z','cs-456789','user-2','SELECT\x20*\x20FROM\x20users\x20LIMIT\x2010','user-3','Purchase\x20Reminder','step-1','TimeWithinPast','lifetime_value'];a210_0x482c=function(){return _0xb0f8fa;};return a210_0x482c();}export function createSegment(_0x2a1659){const _0x58376b=a210_0x3319fa;return{...fixtures['segment'][_0x58376b(0x18f)],..._0x2a1659};}export function createJourney(_0x48798c){const _0x5b9964=a210_0x3319fa;return{...fixtures[_0x5b9964(0x1e1)]['basic'],..._0x48798c};}export function createQueryResult(_0x46e2bc){const _0x42c482=a210_0x3319fa;return{...fixtures[_0x42c482(0x1c6)][_0x42c482(0x18f)],..._0x46e2bc};}export function createUser(_0x1ca713){const _0x861733=a210_0x3319fa;return{...fixtures[_0x861733(0x1de)][_0x861733(0x18f)],..._0x1ca713};}function a210_0x471d(_0xc7e315,_0x3cca32){_0xc7e315=_0xc7e315-0x174;const _0x482c75=a210_0x482c();let _0x471dec=_0x482c75[_0xc7e315];return _0x471dec;}export function createJob(_0x598cd3){const _0x22e4ab=a210_0x3319fa;return{...fixtures[_0x22e4ab(0x175)]['completed'],..._0x598cd3};}export function createWorkflow(_0x41a9ba){const _0x1f0ac7=a210_0x3319fa;return{...fixtures[_0x1f0ac7(0x19b)][_0x1f0ac7(0x18f)],..._0x41a9ba};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a211_0x49b9(){const _0x33dcff=['push','2748348vpdubA','matchCount','stack','includes','filter','Bad\x20Gateway','16945990HLMMnp','Not\x20Found','textResponse','Conflict','https://api.treasuredata.com/errors/','entries','td-api','matched','4uuWJFu','reset','getRequests','host','method','Unknown','test','parseRequest','errorResponse','\x20stub(s)\x20were\x20not\x20matched:\x0a\x0a','requests','isArray','stringify','mockImplementation','fetchMock','1628770XMSdLK','Unprocessable\x20Entity','wasCalled','Forbidden','jsonResponseWithHeaders','2075130wFRUpY','getLastRequest','stubs','split','length','join','register','6147tqSTEN','toLowerCase','description','responder','searchParams','5769AhODVV','Bad\x20Request','getMatchCount','withQuery','pathname','error','9592qqsBbb','headers','toUpperCase','withBody','fail','Service\x20Unavailable','forEach','rfc9457','application/json','verify','get','every','registerWithInspector','some','Request\x20body:\x20','No\x20Content','\x20registered\x20at:\x0a','body','REST','url','Internal\x20Server\x20Error','No\x20stub\x20matched\x20request:\x20','string','11RqCsNS','1941219UcWADA','56BETnZq','GET'];a211_0x49b9=function(){return _0x33dcff;};return a211_0x49b9();}const a211_0x5450ad=a211_0x491f;(function(_0x494bdf,_0x51da84){const _0x5c1cdf=a211_0x491f,_0x1f7b5f=_0x494bdf();while(!![]){try{const _0x261ef3=parseInt(_0x5c1cdf(0x1cd))/0x1*(parseInt(_0x5c1cdf(0x1a1))/0x2)+parseInt(_0x5c1cdf(0x1c6))/0x3+parseInt(_0x5c1cdf(0x1b2))/0x4*(parseInt(_0x5c1cdf(0x1c1))/0x5)+parseInt(_0x5c1cdf(0x1a4))/0x6+-parseInt(_0x5c1cdf(0x1a0))/0x7+parseInt(_0x5c1cdf(0x1d8))/0x8*(parseInt(_0x5c1cdf(0x1d2))/0x9)+parseInt(_0x5c1cdf(0x1aa))/0xa*(-parseInt(_0x5c1cdf(0x19f))/0xb);if(_0x261ef3===_0x51da84)break;else _0x1f7b5f['push'](_0x1f7b5f['shift']());}catch(_0x33b4a9){_0x1f7b5f['push'](_0x1f7b5f['shift']());}}}(a211_0x49b9,0x6c779));function a211_0x491f(_0xab9da,_0x4b0316){_0xab9da=_0xab9da-0x190;const _0x49b978=a211_0x49b9();let _0x491fe6=_0x49b978[_0xab9da];return _0x491fe6;}import{vi}from'vitest';export class HTTPMockRegistry{[a211_0x5450ad(0x1c8)]=[];[a211_0x5450ad(0x1bc)]=[];[a211_0x5450ad(0x1c0)]=null;[a211_0x5450ad(0x19a)](_0x1061dc,_0x34a20c){return _0x3e4aa1=>{const _0x352393=a211_0x491f;if(_0x3e4aa1[_0x352393(0x1b6)][_0x352393(0x1da)]()!==_0x1061dc[_0x352393(0x1da)]())return![];const _0x3cfe73=new URL(_0x3e4aa1['url']);if(typeof _0x34a20c===_0x352393(0x19e))return _0x3cfe73['pathname']===_0x34a20c||_0x3cfe73[_0x352393(0x1d6)][_0x352393(0x1a7)](_0x34a20c);return _0x34a20c[_0x352393(0x1b8)](_0x3cfe73[_0x352393(0x1d6)]);};}[a211_0x5450ad(0x1d5)](_0x190c4d,_0x36d5b7){return _0x5e7780=>{const _0x5a6297=a211_0x491f;if(!_0x190c4d(_0x5e7780))return![];const _0x1b0a08=new URL(_0x5e7780['url']);return Object[_0x5a6297(0x1af)](_0x36d5b7)[_0x5a6297(0x193)](([_0x2d1ae6,_0x2c074e])=>_0x1b0a08[_0x5a6297(0x1d1)][_0x5a6297(0x192)](_0x2d1ae6)===_0x2c074e);};}[a211_0x5450ad(0x1db)](_0xf37cce,_0x115e81){return _0x33249d=>{const _0x2e5d3e=a211_0x491f;if(!_0xf37cce(_0x33249d))return![];if(typeof _0x115e81==='function')return _0x115e81(_0x33249d[_0x2e5d3e(0x199)]);return JSON[_0x2e5d3e(0x1be)](_0x33249d[_0x2e5d3e(0x199)])===JSON[_0x2e5d3e(0x1be)](_0x115e81);};}['withHost'](_0xad89c8,_0xbb236b){return _0xe6673d=>{const _0x10b116=a211_0x491f;if(!_0xad89c8(_0xe6673d))return![];const _0x4a845b=new URL(_0xe6673d['url']);return _0x4a845b[_0x10b116(0x1b5)]===_0xbb236b;};}['register'](_0x40f863,_0x4ba7ff,_0x1bc454){const _0x1e8df6=a211_0x5450ad;this[_0x1e8df6(0x1c8)][_0x1e8df6(0x1a3)]({'matcher':_0x40f863,'responder':_0x4ba7ff,'matched':![],'matchCount':0x0,'stack':new Error()[_0x1e8df6(0x1a6)]??'','description':_0x1bc454?.[_0x1e8df6(0x1cf)]});}[a211_0x5450ad(0x194)](_0x8beab6,_0x13e5c8,_0x2ec102){const _0x6f8ef8=a211_0x5450ad,_0x457f1f=_0x21fd5e=>{const _0x18f913=a211_0x491f;return _0x2ec102(_0x21fd5e[_0x18f913(0x199)],_0x21fd5e),_0x13e5c8(_0x21fd5e);};this[_0x6f8ef8(0x1cc)](_0x8beab6,_0x457f1f);}static['jsonResponse'](_0x2284b1,_0x1b4cf9=0xc8){const _0x4c4ce9=a211_0x5450ad;return()=>new Response(JSON[_0x4c4ce9(0x1be)](_0x2284b1),{'status':_0x1b4cf9,'headers':{'Content-Type':'application/json'}});}static[a211_0x5450ad(0x1ba)](_0xd16d7f,_0x2fd3e6,_0x16af2c='simple'){return()=>{const _0x613e67=a211_0x491f;let _0x1308cf;switch(_0x16af2c){case _0x613e67(0x1b0):_0x1308cf={'errors':{'error':_0x2fd3e6,'message':_0x2fd3e6,'severity':_0x613e67(0x1d7),'status_code':_0xd16d7f}};break;case _0x613e67(0x1df):_0x1308cf={'type':_0x613e67(0x1ae)+_0xd16d7f,'title':HTTPMockRegistry['getStatusText'](_0xd16d7f),'status':_0xd16d7f,'detail':_0x2fd3e6};break;default:_0x1308cf={'error':_0x2fd3e6};}return new Response(JSON[_0x613e67(0x1be)](_0x1308cf),{'status':_0xd16d7f,'headers':{'Content-Type':_0x613e67(0x190)}});};}static[a211_0x5450ad(0x1c5)](_0x56a68e,_0x1e0520,_0x34e449=0xc8){return()=>new Response(JSON['stringify'](_0x56a68e),{'status':_0x34e449,'headers':{'Content-Type':'application/json',..._0x1e0520}});}static[a211_0x5450ad(0x1ac)](_0x56567b,_0x561170=0xc8){return()=>new Response(_0x56567b,{'status':_0x561170,'headers':{'Content-Type':'text/plain'}});}static['networkError'](_0x337a4c){return()=>{throw new Error(_0x337a4c);};}['createFetch'](){const _0x317c72=a211_0x5450ad;return this['fetchMock']=vi['fn']()[_0x317c72(0x1bf)](async(_0x1bbd40,_0x2193ec)=>{const _0x47e4df=_0x317c72,_0x486902=this[_0x47e4df(0x1b9)](_0x1bbd40,_0x2193ec);this[_0x47e4df(0x1bc)][_0x47e4df(0x1a3)](_0x486902);for(const _0x4d0271 of this[_0x47e4df(0x1c8)]){if(_0x4d0271['matcher'](_0x486902))return _0x4d0271[_0x47e4df(0x1b1)]=!![],_0x4d0271[_0x47e4df(0x1a5)]++,_0x4d0271[_0x47e4df(0x1d0)](_0x486902);}const _0x52867c=this[_0x47e4df(0x1c8)]['map']((_0x4b85e8,_0x242458)=>'\x20\x20'+(_0x242458+0x1)+'.\x20'+(_0x4b85e8[_0x47e4df(0x1cf)]??'unnamed\x20stub'))[_0x47e4df(0x1cb)]('\x0a');throw new Error(_0x47e4df(0x19d)+_0x486902[_0x47e4df(0x1b6)]+'\x20'+_0x486902[_0x47e4df(0x19b)]+'\x0a'+(_0x47e4df(0x196)+JSON[_0x47e4df(0x1be)](_0x486902['body'])+'\x0a')+('Registered\x20stubs:\x0a'+(_0x52867c||'\x20\x20(none)')));}),this['fetchMock'];}[a211_0x5450ad(0x1b9)](_0x59d66c,_0x1ef231){const _0x4db22e=a211_0x5450ad,_0x319621={};if(_0x1ef231?.['headers']){if(_0x1ef231[_0x4db22e(0x1d9)]instanceof Headers)_0x1ef231[_0x4db22e(0x1d9)][_0x4db22e(0x1de)]((_0xb68aec,_0x242bc8)=>{const _0x5466da=_0x4db22e;_0x319621[_0x242bc8[_0x5466da(0x1ce)]()]=_0xb68aec;});else{if(Array[_0x4db22e(0x1bd)](_0x1ef231[_0x4db22e(0x1d9)]))for(const [_0x13851e,_0x4c0985]of _0x1ef231[_0x4db22e(0x1d9)]){_0x319621[_0x13851e[_0x4db22e(0x1ce)]()]=_0x4c0985;}else for(const [_0x177b03,_0x1d46b6]of Object[_0x4db22e(0x1af)](_0x1ef231['headers'])){_0x1d46b6!==undefined&&(_0x319621[_0x177b03[_0x4db22e(0x1ce)]()]=_0x1d46b6);}}}let _0x241753;if(_0x1ef231?.['body'])try{_0x241753=JSON['parse'](_0x1ef231[_0x4db22e(0x199)]);}catch{_0x241753=_0x1ef231[_0x4db22e(0x199)];}return{'method':_0x1ef231?.[_0x4db22e(0x1b6)]??_0x4db22e(0x1a2),'url':_0x59d66c,'headers':_0x319621,'body':_0x241753};}[a211_0x5450ad(0x191)](_0x3b459d){const _0x548a7a=a211_0x5450ad,_0x16aab1=this['stubs'][_0x548a7a(0x1a8)](_0x333b09=>!_0x333b09[_0x548a7a(0x1b1)]);if(_0x16aab1[_0x548a7a(0x1ca)]>0x0){const _0x1c373d=_0x16aab1['map'](_0xdd44e6=>{const _0x2986c7=_0x548a7a,_0x52ab54=_0xdd44e6['description']?'\x20('+_0xdd44e6[_0x2986c7(0x1cf)]+')':'',_0x2099d9=_0xdd44e6['stack'][_0x2986c7(0x1c9)]('\x0a')['slice'](0x2,0x5)['join']('\x0a');return'Unmatched\x20stub'+_0x52ab54+_0x2986c7(0x198)+_0x2099d9;});_0x3b459d[_0x548a7a(0x1dc)](_0x16aab1[_0x548a7a(0x1ca)]+_0x548a7a(0x1bb)+_0x1c373d[_0x548a7a(0x1cb)]('\x0a\x0a'));}}[a211_0x5450ad(0x1b4)](){const _0x152b78=a211_0x5450ad;return[...this[_0x152b78(0x1bc)]];}[a211_0x5450ad(0x1c7)](){const _0xbc3658=a211_0x5450ad;return this[_0xbc3658(0x1bc)][this[_0xbc3658(0x1bc)][_0xbc3658(0x1ca)]-0x1];}[a211_0x5450ad(0x1c3)](_0x2059fb,_0xf365d6){const _0x4e86af=a211_0x5450ad;return this[_0x4e86af(0x1bc)][_0x4e86af(0x195)](_0x4f8ac6=>{const _0x12310c=_0x4e86af;if(_0x4f8ac6[_0x12310c(0x1b6)]['toUpperCase']()!==_0x2059fb[_0x12310c(0x1da)]())return![];if(typeof _0xf365d6==='string')return _0x4f8ac6['url'][_0x12310c(0x1a7)](_0xf365d6);return _0xf365d6[_0x12310c(0x1b8)](_0x4f8ac6[_0x12310c(0x19b)]);});}[a211_0x5450ad(0x1d4)](_0x464310){const _0x29ed23=a211_0x5450ad;return this[_0x29ed23(0x1c8)][_0x464310]?.['matchCount']??0x0;}[a211_0x5450ad(0x1b3)](){const _0x5b30b=a211_0x5450ad;this[_0x5b30b(0x1c8)]=[],this[_0x5b30b(0x1bc)]=[],this[_0x5b30b(0x1c0)]=null;}static['getStatusText'](_0x11debc){const _0x2ed4bf=a211_0x5450ad,_0x1193e1={0xc8:'OK',0xc9:'Created',0xcc:_0x2ed4bf(0x197),0x190:_0x2ed4bf(0x1d3),0x191:'Unauthorized',0x193:_0x2ed4bf(0x1c4),0x194:_0x2ed4bf(0x1ab),0x199:_0x2ed4bf(0x1ad),0x1a6:_0x2ed4bf(0x1c2),0x1ad:'Too\x20Many\x20Requests',0x1f4:_0x2ed4bf(0x19c),0x1f6:_0x2ed4bf(0x1a9),0x1f7:_0x2ed4bf(0x1dd)};return _0x1193e1[_0x11debc]??_0x2ed4bf(0x1b7);}}export function createHTTPMock(){return new HTTPMockRegistry();}
|
package/dist/test-utils/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x256894,_0x1116a2){var _0x1e079f=a212_0x2d49,_0x2cff6e=_0x256894();while(!![]){try{var _0x41f770=-parseInt(_0x1e079f(0x19e))/0x1+-parseInt(_0x1e079f(0x19c))/0x2*(-parseInt(_0x1e079f(0x1a1))/0x3)+parseInt(_0x1e079f(0x1a5))/0x4+parseInt(_0x1e079f(0x1a3))/0x5+-parseInt(_0x1e079f(0x19f))/0x6*(-parseInt(_0x1e079f(0x1a2))/0x7)+-parseInt(_0x1e079f(0x1a4))/0x8*(parseInt(_0x1e079f(0x19d))/0x9)+-parseInt(_0x1e079f(0x1a0))/0xa;if(_0x41f770===_0x1116a2)break;else _0x2cff6e['push'](_0x2cff6e['shift']());}catch(_0x5be0a8){_0x2cff6e['push'](_0x2cff6e['shift']());}}}(a212_0x33f1,0xbe5b4));export{HTTPMockRegistry,createHTTPMock}from'./http-mock.js';function a212_0x33f1(){var _0x542acb=['710806qAturC','4493817BwHzeg','1405869vFEPjD','114qrBump','6937090pKKdGj','9jybeNY','424172iAwpuK','2889755KZWFfu','8ZcCvPg','2332428dGnxyJ'];a212_0x33f1=function(){return _0x542acb;};return a212_0x33f1();}export{createTestSDKContext,createTestGlobalOptions,createTestCommandContext,createMockTDX,captureConsole}from'./factories.js';function a212_0x2d49(_0x3959d6,_0x51aacb){_0x3959d6=_0x3959d6-0x19c;var _0x33f13f=a212_0x33f1();var _0x2d49d2=_0x33f13f[_0x3959d6];return _0x2d49d2;}export{fixtures,createDatabase,createTable,createParentSegment,createSegment,createJourney,createQueryResult,createUser,createJob,createWorkflow}from'./fixtures.js';export{CommandRunner,createCommandRunner}from'./command-runner.js';
|
package/dist/utils/async.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a213_0x1211(){const _0x5d79c1=['5334006vXQsYz','5zFLAdP','1444035bxiPEK','658184IVqpPR','35Cyqqzx','slice','45egyDfC','map','5632490caucGI','3698628cFlEcw','296656WQmWDF','345866IqrEMZ','length'];a213_0x1211=function(){return _0x5d79c1;};return a213_0x1211();}function a213_0x143f(_0x59d32b,_0x1d95c8){_0x59d32b=_0x59d32b-0x1b5;const _0x1211b8=a213_0x1211();let _0x143ff0=_0x1211b8[_0x59d32b];return _0x143ff0;}(function(_0x5819d5,_0x15a601){const _0x4c7b1e=a213_0x143f,_0x3a1991=_0x5819d5();while(!![]){try{const _0x579b09=parseInt(_0x4c7b1e(0x1b7))/0x1+parseInt(_0x4c7b1e(0x1b6))/0x2+-parseInt(_0x4c7b1e(0x1bb))/0x3+-parseInt(_0x4c7b1e(0x1b5))/0x4+-parseInt(_0x4c7b1e(0x1ba))/0x5*(parseInt(_0x4c7b1e(0x1b9))/0x6)+parseInt(_0x4c7b1e(0x1bd))/0x7*(-parseInt(_0x4c7b1e(0x1bc))/0x8)+parseInt(_0x4c7b1e(0x1bf))/0x9*(parseInt(_0x4c7b1e(0x1c1))/0xa);if(_0x579b09===_0x15a601)break;else _0x3a1991['push'](_0x3a1991['shift']());}catch(_0x3c9952){_0x3a1991['push'](_0x3a1991['shift']());}}}(a213_0x1211,0x937a7));export async function batchAsync(_0xc2f754,_0x115984,_0x5ebe5a=0xa){const _0x41360f=a213_0x143f,_0x27b7dc=[];for(let _0x1031c4=0x0;_0x1031c4<_0xc2f754[_0x41360f(0x1b8)];_0x1031c4+=_0x5ebe5a){const _0x59dc6a=_0xc2f754[_0x41360f(0x1be)](_0x1031c4,_0x1031c4+_0x5ebe5a),_0x44a53d=await Promise['all'](_0x59dc6a[_0x41360f(0x1c0)](_0x115984));_0x27b7dc['push'](..._0x44a53d);}return _0x27b7dc;}
|
package/dist/utils/colors.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a214_0x55e4c0=a214_0x495a;(function(_0x6fad77,_0x43ca91){const _0x3478d3=a214_0x495a,_0x394b19=_0x6fad77();while(!![]){try{const _0x55d4ef=parseInt(_0x3478d3(0x169))/0x1+-parseInt(_0x3478d3(0x15c))/0x2+-parseInt(_0x3478d3(0x166))/0x3*(parseInt(_0x3478d3(0x15b))/0x4)+parseInt(_0x3478d3(0x172))/0x5*(parseInt(_0x3478d3(0x164))/0x6)+-parseInt(_0x3478d3(0x15a))/0x7+-parseInt(_0x3478d3(0x16e))/0x8*(-parseInt(_0x3478d3(0x171))/0x9)+parseInt(_0x3478d3(0x162))/0xa;if(_0x55d4ef===_0x43ca91)break;else _0x394b19['push'](_0x394b19['shift']());}catch(_0x52b3c6){_0x394b19['push'](_0x394b19['shift']());}}}(a214_0x10d9,0xb102c));import*as a214_0x40b816 from'chalk';const Chalk=a214_0x40b816[a214_0x55e4c0(0x175)];export function shouldUseColor(_0xc61212={}){const _0x3111b0=a214_0x55e4c0;if(_0xc61212[_0x3111b0(0x157)]===!![])return![];if(_0xc61212[_0x3111b0(0x167)]===!![])return!![];if(process.env.NO_COLOR!==undefined)return![];return process[_0x3111b0(0x159)][_0x3111b0(0x16c)]??![];}function a214_0x10d9(){const _0x7e7f3a=['isTTY','join','8WVJsNU','map','yellow','4357107ZbaZFt','10hkVUQw','string','dim','Chalk','noColor','isArray','stdout','3472084nERPSd','4yZGUMw','2849758drIzJN','length','repeat','number','null','blue','31947870LgYjMc','cyan','174690JgyLgi','entries','4313067moCFPP','color','green','346476azEMQI','boolean','stringify'];a214_0x10d9=function(){return _0x7e7f3a;};return a214_0x10d9();}export function getChalk(_0x531485={}){if(shouldUseColor(_0x531485))return new Chalk({'level':0x3});return new Chalk({'level':0x0});}export function colorBorder(_0x36cd9c,_0x4748a1={}){const _0x255bb6=a214_0x55e4c0;return getChalk(_0x4748a1)[_0x255bb6(0x174)](_0x36cd9c);}export function colorHeader(_0x182da1,_0x188e86={}){const _0x2cc815=a214_0x55e4c0;return getChalk(_0x188e86)[_0x2cc815(0x163)](_0x182da1);}export function colorType(_0x424e1d,_0x48f5c7={}){const _0x1bfdd9=a214_0x55e4c0;return getChalk(_0x48f5c7)[_0x1bfdd9(0x174)](_0x424e1d);}export function colorJSONKey(_0x552db5,_0x17e93c={}){const _0x85fc5d=a214_0x55e4c0;return getChalk(_0x17e93c)[_0x85fc5d(0x161)](_0x552db5);}export function colorJSONString(_0x7f870e,_0x15ccdf={}){const _0x19f842=a214_0x55e4c0;return getChalk(_0x15ccdf)[_0x19f842(0x168)](_0x7f870e);}export function colorJSONNumber(_0x3d4d58,_0x4c4c00={}){const _0x34fd9e=a214_0x55e4c0;return getChalk(_0x4c4c00)[_0x34fd9e(0x163)](_0x3d4d58);}export function colorJSONBoolean(_0x8d2e51,_0x1741ee={}){const _0x3579ef=a214_0x55e4c0;return getChalk(_0x1741ee)[_0x3579ef(0x170)](_0x8d2e51);}export function colorJSONNull(_0x4ee1ae,_0x5507e1={}){const _0x3b98cf=a214_0x55e4c0;return getChalk(_0x5507e1)[_0x3b98cf(0x174)](_0x4ee1ae);}function a214_0x495a(_0x55bd68,_0x259c10){_0x55bd68=_0x55bd68-0x157;const _0x10d910=a214_0x10d9();let _0x495a53=_0x10d910[_0x55bd68];return _0x495a53;}export function colorizeJSONCompact(_0x3d8db6,_0x12074f={}){const _0x1fd0d5=a214_0x55e4c0;if(!shouldUseColor(_0x12074f))return JSON['stringify'](_0x3d8db6);if(_0x3d8db6===null)return colorJSONNull(_0x1fd0d5(0x160),_0x12074f);if(typeof _0x3d8db6===_0x1fd0d5(0x16a))return colorJSONBoolean(String(_0x3d8db6),_0x12074f);if(typeof _0x3d8db6===_0x1fd0d5(0x15f))return colorJSONNumber(String(_0x3d8db6),_0x12074f);if(typeof _0x3d8db6===_0x1fd0d5(0x173))return colorJSONString(JSON[_0x1fd0d5(0x16b)](_0x3d8db6),_0x12074f);if(Array['isArray'](_0x3d8db6)){if(_0x3d8db6[_0x1fd0d5(0x15d)]===0x0)return'[]';const _0x340ec2=_0x3d8db6[_0x1fd0d5(0x16f)](_0x4fe22f=>colorizeJSONCompact(_0x4fe22f,_0x12074f));return'['+_0x340ec2[_0x1fd0d5(0x16d)](',')+']';}if(typeof _0x3d8db6==='object'){const _0x34eca0=Object['entries'](_0x3d8db6);if(_0x34eca0[_0x1fd0d5(0x15d)]===0x0)return'{}';const _0xfd70f6=_0x34eca0[_0x1fd0d5(0x16f)](([_0x56a68f,_0x28c1e1])=>{const _0x133fdb=_0x1fd0d5,_0x5e6b58=colorJSONKey(JSON[_0x133fdb(0x16b)](_0x56a68f),_0x12074f),_0x20e515=colorizeJSONCompact(_0x28c1e1,_0x12074f);return _0x5e6b58+':'+_0x20e515;});return'{'+_0xfd70f6[_0x1fd0d5(0x16d)](',')+'}';}return String(_0x3d8db6);}export function colorizeJSON(_0x5e4e89,_0xb200a1={},_0x8649c5=0x0){const _0x1a451f=a214_0x55e4c0;if(!shouldUseColor(_0xb200a1))return JSON[_0x1a451f(0x16b)](_0x5e4e89,null,0x2);const _0x14897b='\x20'[_0x1a451f(0x15e)](_0x8649c5),_0xe7b78a=_0x8649c5+0x2;if(_0x5e4e89===null)return colorJSONNull(_0x1a451f(0x160),_0xb200a1);if(typeof _0x5e4e89===_0x1a451f(0x16a))return colorJSONBoolean(String(_0x5e4e89),_0xb200a1);if(typeof _0x5e4e89===_0x1a451f(0x15f))return colorJSONNumber(String(_0x5e4e89),_0xb200a1);if(typeof _0x5e4e89==='string')return colorJSONString(JSON[_0x1a451f(0x16b)](_0x5e4e89),_0xb200a1);if(Array[_0x1a451f(0x158)](_0x5e4e89)){if(_0x5e4e89[_0x1a451f(0x15d)]===0x0)return'[]';const _0x44974b=_0x5e4e89[_0x1a451f(0x16f)](_0x997d16=>{const _0x224982=_0x1a451f,_0xb0f1be=colorizeJSON(_0x997d16,_0xb200a1,_0xe7b78a);return''+'\x20'[_0x224982(0x15e)](_0xe7b78a)+_0xb0f1be;});return'[\x0a'+_0x44974b[_0x1a451f(0x16d)](',\x0a')+('\x0a'+_0x14897b+']');}if(typeof _0x5e4e89==='object'){const _0x5b4443=Object[_0x1a451f(0x165)](_0x5e4e89);if(_0x5b4443[_0x1a451f(0x15d)]===0x0)return'{}';const _0x40a58e=_0x5b4443[_0x1a451f(0x16f)](([_0x45b890,_0xe4563c])=>{const _0x2bae5b=_0x1a451f,_0x233189=colorJSONKey(JSON[_0x2bae5b(0x16b)](_0x45b890),_0xb200a1),_0x552447=colorizeJSON(_0xe4563c,_0xb200a1,_0xe7b78a);return''+'\x20'[_0x2bae5b(0x15e)](_0xe7b78a)+_0x233189+':\x20'+_0x552447;});return'{\x0a'+_0x40a58e[_0x1a451f(0x16d)](',\x0a')+('\x0a'+_0x14897b+'}');}return String(_0x5e4e89);}
|
package/dist/utils/diff.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
(function(_0x26fddd,_0x47e1d6){const _0x1546fe=a215_0x3bed,_0x304726=_0x26fddd();while(!![]){try{const _0x479a33=-parseInt(_0x1546fe(0x201))/0x1*(parseInt(_0x1546fe(0x20e))/0x2)+-parseInt(_0x1546fe(0x1f9))/0x3*(parseInt(_0x1546fe(0x1fa))/0x4)+parseInt(_0x1546fe(0x1f3))/0x5+-parseInt(_0x1546fe(0x20a))/0x6*(parseInt(_0x1546fe(0x20c))/0x7)+-parseInt(_0x1546fe(0x214))/0x8+parseInt(_0x1546fe(0x1ff))/0x9*(-parseInt(_0x1546fe(0x1f4))/0xa)+parseInt(_0x1546fe(0x1fb))/0xb;if(_0x479a33===_0x47e1d6)break;else _0x304726['push'](_0x304726['shift']());}catch(_0x3fd6b2){_0x304726['push'](_0x304726['shift']());}}}(a215_0x5ad6,0x26356));import a215_0x169e4e from'chalk';function a215_0x5ad6(){const _0x4db0ae=['length','360PgUHCz','map','41rftSvT','removed','push','add','dim','old','has','split','\x20-\x20','420oRogen','some','16723xVDzmQ','padStart','5094UujutV','repeat','content','min','\x20\x20\x20','max','954496LxTNUH','fill','type','red','forEach','625445doRUAd','66750FzbXgu','join','unchanged','\x20+\x20','added','3yuBQRZ','934792bJrPVi','10153880EzGrks','cyan','size'];a215_0x5ad6=function(){return _0x4db0ae;};return a215_0x5ad6();}function a215_0x3bed(_0x44335f,_0x1a7c71){_0x44335f=_0x44335f-0x1f3;const _0x5ad697=a215_0x5ad6();let _0x3bed05=_0x5ad697[_0x44335f];return _0x3bed05;}export function generateDiff(_0x593bd5,_0x1d58ef){const _0x406d4b=a215_0x3bed,_0x4cf7f7=_0x593bd5[_0x406d4b(0x208)]('\x0a'),_0x40dd06=_0x1d58ef[_0x406d4b(0x208)]('\x0a'),_0x5bb2cc=[],_0xc23cac=computeLCS(_0x4cf7f7,_0x40dd06);let _0x504629=0x0,_0x189eb7=0x0,_0x5c6f87=0x0;while(_0x504629<_0x4cf7f7[_0x406d4b(0x1fe)]||_0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]){if(_0x5c6f87<_0xc23cac[_0x406d4b(0x1fe)]&&_0x504629<_0x4cf7f7[_0x406d4b(0x1fe)]&&_0x4cf7f7[_0x504629]===_0xc23cac[_0x5c6f87])_0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]&&_0x40dd06[_0x189eb7]===_0xc23cac[_0x5c6f87]?(_0x5bb2cc[_0x406d4b(0x203)]({'type':_0x406d4b(0x1f6),'content':_0x4cf7f7[_0x504629]}),_0x504629++,_0x189eb7++,_0x5c6f87++):(_0x5bb2cc[_0x406d4b(0x203)]({'type':_0x406d4b(0x1f8),'content':_0x40dd06[_0x189eb7]}),_0x189eb7++);else{if(_0x5c6f87<_0xc23cac['length']&&_0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]&&_0x40dd06[_0x189eb7]===_0xc23cac[_0x5c6f87])_0x5bb2cc['push']({'type':_0x406d4b(0x202),'content':_0x4cf7f7[_0x504629]}),_0x504629++;else{if(_0x504629<_0x4cf7f7[_0x406d4b(0x1fe)]&&(_0x5c6f87>=_0xc23cac[_0x406d4b(0x1fe)]||_0x4cf7f7[_0x504629]!==_0xc23cac[_0x5c6f87]))_0x5bb2cc[_0x406d4b(0x203)]({'type':_0x406d4b(0x202),'content':_0x4cf7f7[_0x504629]}),_0x504629++;else _0x189eb7<_0x40dd06[_0x406d4b(0x1fe)]&&(_0x5bb2cc[_0x406d4b(0x203)]({'type':'added','content':_0x40dd06[_0x189eb7]}),_0x189eb7++);}}}return _0x5bb2cc;}function computeLCS(_0x496704,_0x125155){const _0x4913b2=a215_0x3bed,_0x3f4403=_0x496704[_0x4913b2(0x1fe)],_0x252b1e=_0x125155[_0x4913b2(0x1fe)],_0x4f9060=Array(_0x3f4403+0x1)[_0x4913b2(0x215)](null)[_0x4913b2(0x200)](()=>Array(_0x252b1e+0x1)[_0x4913b2(0x215)](0x0));for(let _0x3cc260=0x1;_0x3cc260<=_0x3f4403;_0x3cc260++){for(let _0x4edbfc=0x1;_0x4edbfc<=_0x252b1e;_0x4edbfc++){_0x496704[_0x3cc260-0x1]===_0x125155[_0x4edbfc-0x1]?_0x4f9060[_0x3cc260][_0x4edbfc]=_0x4f9060[_0x3cc260-0x1][_0x4edbfc-0x1]+0x1:_0x4f9060[_0x3cc260][_0x4edbfc]=Math['max'](_0x4f9060[_0x3cc260-0x1][_0x4edbfc],_0x4f9060[_0x3cc260][_0x4edbfc-0x1]);}}const _0x53792f=[];let _0x14cc32=_0x3f4403,_0x43d742=_0x252b1e;while(_0x14cc32>0x0&&_0x43d742>0x0){if(_0x496704[_0x14cc32-0x1]===_0x125155[_0x43d742-0x1])_0x53792f['unshift'](_0x496704[_0x14cc32-0x1]),_0x14cc32--,_0x43d742--;else _0x4f9060[_0x14cc32-0x1][_0x43d742]>_0x4f9060[_0x14cc32][_0x43d742-0x1]?_0x14cc32--:_0x43d742--;}return _0x53792f;}export function formatDiffWithColors(_0x4d9536,_0xaa184=0x3){const _0x4c76b6=a215_0x3bed,_0x5637de=new Set();_0x4d9536[_0x4c76b6(0x218)]((_0x1e57d3,_0x2f66e4)=>{const _0x19ba8a=_0x4c76b6;_0x1e57d3[_0x19ba8a(0x216)]!==_0x19ba8a(0x1f6)&&_0x5637de[_0x19ba8a(0x204)](_0x2f66e4);});if(_0x5637de[_0x4c76b6(0x1fd)]===0x0)return'';const _0x406702=new Set();for(const _0x1ef25 of _0x5637de){for(let _0xc4e6fe=Math[_0x4c76b6(0x213)](0x0,_0x1ef25-_0xaa184);_0xc4e6fe<=Math[_0x4c76b6(0x211)](_0x4d9536['length']-0x1,_0x1ef25+_0xaa184);_0xc4e6fe++){_0x406702[_0x4c76b6(0x204)](_0xc4e6fe);}}const _0x115d30=[];let _0x11ab43=-0x1;const _0x5cc918=_0x4d9536[_0x4c76b6(0x1fe)],_0x3fb8ed=Math['max'](0x3,String(_0x5cc918)[_0x4c76b6(0x1fe)]),_0xce4a3d=[];let _0x1c3647=0x0,_0x462cc2=0x0;for(const _0x16eadf of _0x4d9536){if(_0x16eadf[_0x4c76b6(0x216)]===_0x4c76b6(0x202))_0x1c3647++,_0xce4a3d[_0x4c76b6(0x203)]({'old':_0x1c3647,'new':0x0});else _0x16eadf[_0x4c76b6(0x216)]===_0x4c76b6(0x1f8)?(_0x462cc2++,_0xce4a3d[_0x4c76b6(0x203)]({'old':0x0,'new':_0x462cc2})):(_0x1c3647++,_0x462cc2++,_0xce4a3d[_0x4c76b6(0x203)]({'old':_0x1c3647,'new':_0x462cc2}));}for(let _0x3f652f=0x0;_0x3f652f<_0x4d9536[_0x4c76b6(0x1fe)];_0x3f652f++){if(!_0x406702[_0x4c76b6(0x207)](_0x3f652f))continue;_0x11ab43!==-0x1&&_0x3f652f>_0x11ab43+0x1&&_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e[_0x4c76b6(0x1fc)]('\x20\x20...'));_0x11ab43=_0x3f652f;const _0xbf999c=_0x4d9536[_0x3f652f],_0x4ca0b8=_0xce4a3d[_0x3f652f],_0x4caec8=_0x4ca0b8[_0x4c76b6(0x206)]>0x0?String(_0x4ca0b8[_0x4c76b6(0x206)])[_0x4c76b6(0x20d)](_0x3fb8ed):'\x20'[_0x4c76b6(0x20f)](_0x3fb8ed),_0x57fdc2=_0x4ca0b8['new']>0x0?String(_0x4ca0b8['new'])[_0x4c76b6(0x20d)](_0x3fb8ed):'\x20'[_0x4c76b6(0x20f)](_0x3fb8ed);switch(_0xbf999c[_0x4c76b6(0x216)]){case _0x4c76b6(0x202):_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e[_0x4c76b6(0x217)](_0x4caec8+'\x20'+_0x57fdc2+_0x4c76b6(0x209)+_0xbf999c[_0x4c76b6(0x210)]));break;case _0x4c76b6(0x1f8):_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e['green'](_0x4caec8+'\x20'+_0x57fdc2+_0x4c76b6(0x1f7)+_0xbf999c[_0x4c76b6(0x210)]));break;default:_0x115d30[_0x4c76b6(0x203)](a215_0x169e4e[_0x4c76b6(0x205)](_0x4caec8+'\x20'+_0x57fdc2+_0x4c76b6(0x212)+_0xbf999c[_0x4c76b6(0x210)]));break;}}return _0x115d30[_0x4c76b6(0x1f5)]('\x0a');}export function hasChanges(_0x4405a6){const _0x59c8e0=a215_0x3bed;return _0x4405a6[_0x59c8e0(0x20b)](_0x2afa72=>_0x2afa72[_0x59c8e0(0x216)]!==_0x59c8e0(0x1f6));}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x5c9a81,_0x28e902){const _0x41a2eb=a216_0x5662,_0x52c3e4=_0x5c9a81();while(!![]){try{const _0x2bb91d=-parseInt(_0x41a2eb(0x16b))/0x1+-parseInt(_0x41a2eb(0x15d))/0x2+-parseInt(_0x41a2eb(0x16d))/0x3*(parseInt(_0x41a2eb(0x16e))/0x4)+-parseInt(_0x41a2eb(0x166))/0x5*(-parseInt(_0x41a2eb(0x164))/0x6)+parseInt(_0x41a2eb(0x15c))/0x7+-parseInt(_0x41a2eb(0x168))/0x8+parseInt(_0x41a2eb(0x161))/0x9;if(_0x2bb91d===_0x28e902)break;else _0x52c3e4['push'](_0x52c3e4['shift']());}catch(_0x291d04){_0x52c3e4['push'](_0x52c3e4['shift']());}}}(a216_0x3e3a,0xa698d));import*as a216_0x536dda from'node:fs';import*as a216_0x5ddd0d from'node:path';function a216_0x5662(_0x15c36b,_0x34fa2f){_0x15c36b=_0x15c36b-0x15c;const _0x3e3ab0=a216_0x3e3a();let _0x566297=_0x3e3ab0[_0x15c36b];return _0x566297;}export function setSecureFilePermissions(_0x12d525){const _0x3d3e3b=a216_0x5662;try{a216_0x536dda[_0x3d3e3b(0x15e)](_0x12d525,0x180);}catch{console[_0x3d3e3b(0x15f)](_0x3d3e3b(0x165)+_0x12d525);}}export function setSecureDirectoryPermissions(_0x244c89){const _0x41df0e=a216_0x5662;try{a216_0x536dda['chmodSync'](_0x244c89,0x1c0);}catch{console[_0x41df0e(0x15f)](_0x41df0e(0x165)+_0x244c89);}}export function createSecureDirectory(_0x48ed0f){const _0x392ef5=a216_0x5662;!a216_0x536dda[_0x392ef5(0x162)](_0x48ed0f)&&(a216_0x536dda[_0x392ef5(0x16f)](_0x48ed0f,{'recursive':!![],'mode':0x1c0}),setSecureDirectoryPermissions(_0x48ed0f));}export function validateSecureFilePermissions(_0x1797aa){const _0x390528=a216_0x5662;try{const _0x35849f=a216_0x536dda['statSync'](_0x1797aa),_0x1009c4=_0x35849f[_0x390528(0x16a)]&0x1ff,_0x17c439=(_0x1009c4&0x3f)!==0x0;if(_0x17c439)return console['warn'](_0x390528(0x169)+_0x1797aa+_0x390528(0x16c)+_0x1009c4['toString'](0x8)+_0x390528(0x160)+_0x390528(0x167)),![];return!![];}catch{return!![];}}export function writeSecureFile(_0x4722c6,_0x2d49dc){const _0x5c1790=a216_0x5662,_0x169a07=a216_0x5ddd0d[_0x5c1790(0x163)](_0x4722c6);createSecureDirectory(_0x169a07),a216_0x536dda['writeFileSync'](_0x4722c6,_0x2d49dc,{'mode':0x180}),setSecureFilePermissions(_0x4722c6);}function a216_0x3e3a(){const _0x2c8af2=['5825280xrqmFC','Warning:\x20','mode','608245bzTxun','\x20has\x20insecure\x20permissions\x20(','21201fMCbXi','48YjJcbo','mkdirSync','5982158hUttWv','2401110JfzOWT','chmodSync','warn',').\x20','12233106ZVmsdG','existsSync','dirname','6LzOftJ','Warning:\x20Could\x20not\x20set\x20secure\x20permissions\x20on\x20','5451585QDHIDR','Should\x20be\x200600\x20or\x20more\x20restrictive.'];a216_0x3e3a=function(){return _0x2c8af2;};return a216_0x3e3a();}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
function a217_0x1f61(_0x4dbebb,_0x58b3a5){_0x4dbebb=_0x4dbebb-0x116;const _0x2308fe=a217_0x2308();let _0x1f612b=_0x2308fe[_0x4dbebb];return _0x1f612b;}(function(_0x2bf613,_0x1620b6){const _0x232fcf=a217_0x1f61,_0x117eaf=_0x2bf613();while(!![]){try{const _0x56318a=parseInt(_0x232fcf(0x118))/0x1*(parseInt(_0x232fcf(0x11c))/0x2)+-parseInt(_0x232fcf(0x117))/0x3+-parseInt(_0x232fcf(0x123))/0x4*(parseInt(_0x232fcf(0x128))/0x5)+parseInt(_0x232fcf(0x126))/0x6*(parseInt(_0x232fcf(0x124))/0x7)+parseInt(_0x232fcf(0x11a))/0x8*(-parseInt(_0x232fcf(0x122))/0x9)+-parseInt(_0x232fcf(0x125))/0xa*(parseInt(_0x232fcf(0x127))/0xb)+parseInt(_0x232fcf(0x12a))/0xc;if(_0x56318a===_0x1620b6)break;else _0x117eaf['push'](_0x117eaf['shift']());}catch(_0x591659){_0x117eaf['push'](_0x117eaf['shift']());}}}(a217_0x2308,0xac94b));import{readFileSync}from'fs';import{SDKError,ErrorCode}from'../sdk/errors.js';function a217_0x2308(){const _0x5789c3=['utf-8','12187035kbtDeA','4GbcwZw','1102633saFlwK','190bIEMdO','6kYaMZA','251350etXbRl','5491015wGeDRk','\x27:\x20','44777424OcaryA','PERMISSION_DENIED','File\x20\x27','2541573BeyCQU','1JXtVlx','ENOENT','8uiwxph','code','1103158mSuLDe','message','\x27\x20not\x20found','INTERNAL','EACCES'];a217_0x2308=function(){return _0x5789c3;};return a217_0x2308();}export function readFileContent(_0x49760f){const _0x43405c=a217_0x1f61;try{return readFileSync(_0x49760f,_0x43405c(0x121));}catch(_0x392463){const _0x332a09=_0x392463[_0x43405c(0x11b)];if(_0x332a09===_0x43405c(0x119))throw new SDKError(ErrorCode['NOT_FOUND'],_0x43405c(0x116)+_0x49760f+_0x43405c(0x11e),_0x392463);else{if(_0x332a09===_0x43405c(0x120))throw new SDKError(ErrorCode[_0x43405c(0x12b)],'Permission\x20denied\x20reading\x20file\x20\x27'+_0x49760f+'\x27',_0x392463);else throw new SDKError(ErrorCode[_0x43405c(0x11f)],'Error\x20reading\x20file\x20\x27'+_0x49760f+_0x43405c(0x129)+_0x392463[_0x43405c(0x11d)],_0x392463);}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x4483a8,_0x497037){const _0x2eaa32=a218_0x12a5,_0x3d7b4a=_0x4483a8();while(!![]){try{const _0x5405c6=-parseInt(_0x2eaa32(0x1bd))/0x1*(parseInt(_0x2eaa32(0x1c9))/0x2)+-parseInt(_0x2eaa32(0x1c4))/0x3*(-parseInt(_0x2eaa32(0x1cc))/0x4)+-parseInt(_0x2eaa32(0x1c5))/0x5*(-parseInt(_0x2eaa32(0x1d0))/0x6)+-parseInt(_0x2eaa32(0x1c7))/0x7+parseInt(_0x2eaa32(0x1bf))/0x8*(-parseInt(_0x2eaa32(0x1b4))/0x9)+parseInt(_0x2eaa32(0x1bb))/0xa*(-parseInt(_0x2eaa32(0x1b3))/0xb)+parseInt(_0x2eaa32(0x1bc))/0xc;if(_0x5405c6===_0x497037)break;else _0x3d7b4a['push'](_0x3d7b4a['shift']());}catch(_0x4fa254){_0x3d7b4a['push'](_0x3d7b4a['shift']());}}}(a218_0x2d0a,0x5f2b7));function a218_0x12a5(_0x3db78d,_0x5cd8b8){_0x3db78d=_0x3db78d-0x1b3;const _0x2d0a67=a218_0x2d0a();let _0x12a510=_0x2d0a67[_0x3db78d];return _0x12a510;}import*as a218_0x34cf81 from'node:https';const REQUEST_TIMEOUT_MS=0x2710,CACHE_TTL_MS=0x5*0x3c*0x3e8,cache=new Map();export function fetchGitHubReleases(_0xa2bb21,_0x3b024d,_0x1dae92){const _0x595575=a218_0x12a5,_0x593f6d=_0xa2bb21+'/'+_0x3b024d,_0xcb8329=cache[_0x595575(0x1c6)](_0x593f6d);if(_0xcb8329&&Date[_0x595575(0x1ba)]()-_0xcb8329[_0x595575(0x1cd)]<CACHE_TTL_MS)return Promise[_0x595575(0x1b9)](_0xcb8329[_0x595575(0x1c2)]);return new Promise((_0x5d4749,_0x2026ac)=>{const _0x13a6ff=_0x595575,_0x1dd180={'hostname':'api.github.com','path':_0x13a6ff(0x1c8)+_0xa2bb21+'/'+_0x3b024d+_0x13a6ff(0x1b7),'headers':{'User-Agent':_0x1dae92,'Accept':'application/vnd.github+json'},'timeout':REQUEST_TIMEOUT_MS},_0x7a0f78=a218_0x34cf81[_0x13a6ff(0x1c6)](_0x1dd180,_0x152aed=>{const _0x308117=_0x13a6ff;let _0x731688='';_0x152aed['on']('data',_0x670ded=>{const _0x50439f=a218_0x12a5;_0x731688+=_0x670ded[_0x50439f(0x1cb)]();}),_0x152aed['on'](_0x308117(0x1c0),()=>{const _0x43bd5c=_0x308117;if(_0x152aed[_0x43bd5c(0x1ce)]!==0xc8){_0x2026ac(new Error(_0x43bd5c(0x1b5)+_0x152aed[_0x43bd5c(0x1ce)]+':\x20'+_0x731688[_0x43bd5c(0x1c3)](0x0,0xc8)));return;}try{const _0x4a6457=JSON['parse'](_0x731688);cache[_0x43bd5c(0x1c1)](_0x593f6d,{'releases':_0x4a6457,'fetchedAt':Date[_0x43bd5c(0x1ba)]()}),_0x5d4749(_0x4a6457);}catch(_0x55e361){_0x2026ac(_0x55e361);}});});_0x7a0f78['on']('timeout',()=>{const _0x22f18a=_0x13a6ff;_0x7a0f78[_0x22f18a(0x1ca)](),_0x2026ac(new Error('GitHub\x20API\x20request\x20timed\x20out\x20after\x20'+REQUEST_TIMEOUT_MS+'ms'));}),_0x7a0f78['on'](_0x13a6ff(0x1cf),_0x2026ac);});}export async function resolveReleaseTag(_0x49fe6f,_0x4caefc,_0x2f8299,_0x30e503){const _0x5a9929=a218_0x12a5;if(_0x49fe6f==='next')return null;const _0x51b506=await fetchGitHubReleases(_0x4caefc,_0x2f8299,_0x30e503);if(_0x51b506['length']===0x0)return null;const _0x8fcc59=_0x51b506[_0x5a9929(0x1b8)](_0x15e334=>!_0x15e334[_0x5a9929(0x1b6)]);return _0x8fcc59?_0x8fcc59[_0x5a9929(0x1be)]:null;}function a218_0x2d0a(){const _0x2ce204=['set','releases','slice','6UyRtyb','222745tPGZCt','get','1974574LFNAAs','/repos/','4510DLIqNJ','destroy','toString','981012REARgo','fetchedAt','statusCode','error','66rxxcph','2211SbcBxf','9adtQbl','GitHub\x20API\x20returned\x20','prerelease','/releases?per_page=20','find','resolve','now','33540GoRwRQ','13792860ilDTMJ','43EwFfRe','tag_name','5495472cOulYB','end'];a218_0x2d0a=function(){return _0x2ce204;};return a218_0x2d0a();}
|