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
35 changes: 19 additions & 16 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
"comment-json": "^4.6.2",
"content-type": "^1.0.5",
"cookie": "^2.0.0",
"cron-parser": "^4.9.0",
"cron-parser": "^5.0.0",
"debug": "^4.4.3",
"decache": "^4.6.2",
"dot-prop": "^10.1.0",
Expand Down
4 changes: 2 additions & 2 deletions src/lib/functions/netlify-function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import type { ExtendedRoute, Route } from '@netlify/zip-it-and-ship-it'
import type { MemoizeCache } from '@netlify/dev-utils'
import CronParser from 'cron-parser'
import { parseExpression } from 'cron-parser'

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / typecheck

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Unit (ubuntu-latest, 22.13.0)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Unit (ubuntu-latest, 24)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Unit (macOS-latest, 24)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22.13.0, 22.13.0, 1/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / E2E (ubuntu-latest, 22.13.0)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22.13.0, 22.13.0, 2/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 24, 24.15.0, 1/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 24, 24.15.0, 2/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22.13.0, 22.13.0, 3/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / E2E (ubuntu-latest, 24)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 24, 24.15.0, 4/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 22.13.0, 22.13.0, 4/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Integration (ubuntu-latest, 24, 24.15.0, 3/4)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / prerelease

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?

Check failure on line 7 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Unit (windows-2025, 24)

Module '"cron-parser"' has no exported member 'parseExpression'. Did you mean to use 'import parseExpression from "cron-parser"' instead?
import semver from 'semver'

import { logAndThrowError, type NormalizedCachedConfigConfig } from '../../utils/command-helpers.js'
Expand Down Expand Up @@ -36,10 +36,10 @@
const difference = (setA: Set<string>, setB: Set<string>) => new Set([...setA].filter((item) => !setB.has(item)))

const getNextRun = function (schedule: string) {
const cron = CronParser.parseExpression(schedule, {
const cron = parseExpression(schedule, {

Check failure on line 39 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe call of a type that could not be resolved
tz: 'Etc/UTC',
})
return cron.next().toDate()

Check failure on line 42 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe member access .toDate on a type that cannot be resolved

Check failure on line 42 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe member access .next on a type that cannot be resolved

Check failure on line 42 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe call of a type that could not be resolved

Check failure on line 42 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe call of a type that could not be resolved

Check failure on line 42 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe return of a value of type error
}

export default class NetlifyFunction<BuildResult extends BaseBuildResult> {
Expand Down Expand Up @@ -201,7 +201,7 @@
}

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
return getNextRun(this.schedule!)

Check failure on line 204 in src/lib/functions/netlify-function.ts

View workflow job for this annotation

GitHub Actions / Lint

Unsafe return of a value of type error
}

// The `build` method transforms source files into invocable functions. Its
Expand Down
Loading