Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
"@apify/oxlint-config": "^0.3.0",
"@apify/tsconfig": "^0.2.0",
"@crawlee/types": "^3.18.1",
"@types/adm-zip": "^0.5.8",
"@types/archiver": "^8.0.0",
"@types/bun": "^1.4.2",
"@types/execa": "^2.0.2",
Expand All @@ -129,7 +128,6 @@
"@types/semver": "^7.8.0",
"@types/which": "^3.0.4",
"apify": "^3.7.2",
"cross-env": "^10.1.0",
"husky": "^9.1.7",
"lint-staged": "^17.5.1",
"mock-stdin": "^1.0.0",
Expand Down
22 changes: 0 additions & 22 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion src/commands/init.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ export class InitCommand extends ApifyCommand<typeof InitCommand> {

const projectResult = await useCwdProject();

// TODO: use direct .unwrap() once we migrate to yargs
if (projectResult.isErr()) {
error({ message: projectResult.unwrapErr().message });
process.exit(1);
Expand Down
4 changes: 0 additions & 4 deletions src/lib/commands/agent-output.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ export function consoleBuildUrl(actorId: string, buildNumber: string): string {
return `${getConsoleUrl()}/actors/${actorId}#/builds/${buildNumber}`;
}

export function consoleDatasetUrl(datasetId: string): string {
return `${getConsoleUrl()}/storage/datasets/${datasetId}`;
}

function statusColor(status: string): string {
if (status === 'SUCCEEDED') return chalk.green(status);
if (status === 'RUNNING' || status === 'READY') return chalk.blue(status);
Expand Down
10 changes: 0 additions & 10 deletions src/lib/outputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,13 +55,3 @@ export function info(options: SimpleLogOptions) {
[options.stdout ? 'stdoutOutput' : 'stderrOutput']: [chalk.white('Info:'), options.message],
});
}

export interface SimpleLinkOptions extends SimpleLogOptions {
url: string;
}

export function link(options: SimpleLinkOptions) {
internalLog({
[options.stdout ? 'stdoutOutput' : 'stderrOutput']: [chalk.blue(options.message), options.url],
});
}
29 changes: 0 additions & 29 deletions src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -631,14 +631,6 @@ export const outputJobLog = async ({
});
};

/**
* Returns npm command for current os
* NOTE: For window we have to returns npm.cmd instead of npm, otherwise it doesn't work
*/
export const getNpmCmd = (): string => {
return process.platform.startsWith('win') ? 'npm.cmd' : 'npm';
};

/**
* Returns true if the local storage holds nothing but the input record, either
* the user's own `<inputKey>` / `<inputKey>.*` or the temporary copy the CLI writes next to it.
Expand Down Expand Up @@ -794,27 +786,6 @@ export function objectGroupBy<K extends PropertyKey, T>(
return result;
}

/**
* A "polyfill" for Map.groupBy
*/
export function mapGroupBy<K, T>(items: Iterable<T>, keySelector: (item: T, index: number) => K): Map<K, T[]> {
const map = new Map<K, T[]>();
let index = 0;

for (const value of items) {
const key = keySelector(value, index++);
const list = map.get(key);

if (list) {
list.push(value);
} else {
map.set(key, [value]);
}
}

return map;
}

export function printJsonToStdout(object: unknown) {
console.log(JSON.stringify(object, null, 2));
}
Expand Down
2 changes: 0 additions & 2 deletions test/__setup__/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@ if (!ENV_TEST_USER_TOKEN) {

export const testUserClient = new ApifyClient(getApifyClientOptionsForToken(ENV_TEST_USER_TOKEN));

export const badUserClient = new ApifyClient(getApifyClientOptionsForToken(TEST_USER_BAD_TOKEN));

export const TEST_USER_TOKEN = ENV_TEST_USER_TOKEN;

if (isCI) {
Expand Down
17 changes: 0 additions & 17 deletions test/__setup__/dataset-schemas/empty-fields.json

This file was deleted.

16 changes: 0 additions & 16 deletions test/__setup__/dataset-schemas/no-fields.json

This file was deleted.

11 changes: 0 additions & 11 deletions test/__setup__/dataset-schemas/no-type.json

This file was deleted.

6 changes: 0 additions & 6 deletions test/__setup__/dataset-schemas/paths.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
import { fileURLToPath } from 'node:url';

export const validDatasetSchemaPath = fileURLToPath(new URL('./valid.json', import.meta.url));

export const emptyFieldsDatasetSchemaPath = fileURLToPath(new URL('./empty-fields.json', import.meta.url));

export const noTypeDatasetSchemaPath = fileURLToPath(new URL('./no-type.json', import.meta.url));

export const noFieldsDatasetSchemaPath = fileURLToPath(new URL('./no-fields.json', import.meta.url));
Loading