Skip to content

Commit

Permalink
Merge pull request #183 from Airfooox/next
Browse files Browse the repository at this point in the history
Merge 'next' into 'master' for release
  • Loading branch information
Airfooox authored Mar 31, 2021
2 parents c8e8cf1 + 3cc31d7 commit 1bb3f58
Show file tree
Hide file tree
Showing 14 changed files with 1,504 additions and 2,686 deletions.
4,121 changes: 1,468 additions & 2,653 deletions package-lock.json

Large diffs are not rendered by default.

25 changes: 14 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,26 +79,29 @@
},
"devDependencies": {
"@semantic-release/changelog": "5.0.1",
"@semantic-release/commit-analyzer": "^8.0.1",
"@semantic-release/git": "9.0.0",
"@types/jest": "26.0.19",
"@types/node": "13.13.38",
"@semantic-release/github": "^7.2.0",
"@semantic-release/release-notes-generator": "^9.0.2",
"@types/jest": "26.0.22",
"@types/node": "13.13.46",
"@types/yup": "0.29.11",
"@typescript-eslint/eslint-plugin": "4.11.0",
"@typescript-eslint/parser": "4.11.0",
"@typescript-eslint/eslint-plugin": "4.17.0",
"@typescript-eslint/parser": "4.17.0",
"env-cmd": "10.1.0",
"eslint": "7.16.0",
"eslint": "7.23.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-config-prettier": "7.1.0",
"eslint-config-prettier": "8.1.0",
"eslint-plugin-import": "2.22.1",
"jest": "26.6.3",
"nodemon": "2.0.6",
"nodemon": "2.0.7",
"prettier": "2.2.1",
"semantic-release": "17.3.0",
"ts-jest": "26.4.4",
"semantic-release": "17.4.2",
"ts-jest": "26.5.3",
"ts-node": "9.1.1",
"typescript": "4.1.3"
"typescript": "4.2.3"
},
"dependencies": {
"yup": "0.32.8"
"yup": "0.32.9"
}
}
4 changes: 2 additions & 2 deletions src/fieldCheckers/dayOfMonthChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkDaysOfMonth = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/fieldCheckers/dayOfWeekChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkDaysOfWeek = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/fieldCheckers/hourChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkHours = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/fieldCheckers/minuteChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkMinutes = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/fieldCheckers/monthChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkMonths = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/fieldCheckers/secondChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkSeconds = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/fieldCheckers/yearChecker.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CronData } from '../index'
import { CronData } from '../index'
import { err, Result } from '../result'
import checkField from '../helper'
import type { Options } from '../types'
import { Options } from '../types'

const checkYears = (
cronData: CronData,
Expand Down
4 changes: 2 additions & 2 deletions src/helper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { CronFieldType } from './index'
import { CronFieldType } from './index'
import { Err, err, Result, Valid, valid } from './result'
import type { Options } from './types'
import { Options } from './types'

// Instead of translating the alias to a number, we just validate that it's an accepted alias.
// This is to avoid managing the limits with the translation to numbers.
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import {
registerOptionPreset,
validateOptions,
} from './option'
import type { InputOptions, Options } from './types'
import { InputOptions, Options } from './types'

export interface CronData {
seconds?: string
Expand Down
2 changes: 1 addition & 1 deletion src/matrix.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import cron from './index'
import type { InputOptions } from './types'
import { InputOptions } from './types'

type TestCase = {
value: string
Expand Down
4 changes: 2 additions & 2 deletions src/option.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import * as yup from 'yup'
import type { ValidationError } from 'yup'
import { ValidationError } from 'yup'
import { err, valid, Result } from './result'
import presets from './presets'
import type { Options, OptionPreset, InputOptions } from './types'
import { Options, OptionPreset, InputOptions } from './types'

const optionPresets: { [presetId: string]: OptionPreset } = {
// http://crontab.org/
Expand Down
4 changes: 2 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"rootDir": "src",
"outDir": "lib",
"lib": ["ESNext"],
"target": "es2017", // ES2017 is 100% supported in node.js 8.10.0.
"target": "ES2017", // ES2017 is 100% supported in node.js 8.10.0.
"module": "commonjs", // Node.js does not yet support es-modules.
"moduleResolution": "node",

Expand All @@ -13,7 +13,7 @@
"esModuleInterop": true,
"strict": true,
"noFallthroughCasesInSwitch": true,
"importsNotUsedAsValues": "error"
"importsNotUsedAsValues": "preserve"
},
"include": ["src/**/*.ts"],
"exclude": ["src/**/*.test.ts"]
Expand Down

0 comments on commit 1bb3f58

Please sign in to comment.