@cucumber/cucumber-expressions
Advanced tools
Comparing version 16.0.0 to 16.0.1
@@ -8,3 +8,3 @@ import Argument from './Argument.js'; | ||
import Group from './Group.js'; | ||
import ParameterType, { StringOrRegExp, RegExps } from './ParameterType.js'; | ||
import ParameterType, { RegExps, StringOrRegExp } from './ParameterType.js'; | ||
import ParameterTypeRegistry from './ParameterTypeRegistry.js'; | ||
@@ -11,0 +11,0 @@ import RegularExpression from './RegularExpression.js'; |
@@ -11,4 +11,4 @@ interface Constructor<T> extends Function { | ||
readonly type: Constructor<T> | Factory<T> | null; | ||
readonly useForSnippets: boolean; | ||
readonly preferForRegexpMatch: boolean; | ||
readonly useForSnippets?: boolean | undefined; | ||
readonly preferForRegexpMatch?: boolean | undefined; | ||
private transformFn; | ||
@@ -27,3 +27,3 @@ static compare(pt1: ParameterType<unknown>, pt2: ParameterType<unknown>): number; | ||
*/ | ||
constructor(name: string | undefined, regexps: RegExps, type: Constructor<T> | Factory<T> | null, transform: (...match: string[]) => T | PromiseLike<T>, useForSnippets: boolean, preferForRegexpMatch: boolean); | ||
constructor(name: string | undefined, regexps: RegExps, type: Constructor<T> | Factory<T> | null, transform?: (...match: string[]) => T | PromiseLike<T>, useForSnippets?: boolean | undefined, preferForRegexpMatch?: boolean | undefined); | ||
transform(thisObj: unknown, groupValues: string[] | null): any; | ||
@@ -30,0 +30,0 @@ } |
@@ -8,3 +8,3 @@ import Argument from './Argument.js'; | ||
import Group from './Group.js'; | ||
import ParameterType, { StringOrRegExp, RegExps } from './ParameterType.js'; | ||
import ParameterType, { RegExps, StringOrRegExp } from './ParameterType.js'; | ||
import ParameterTypeRegistry from './ParameterTypeRegistry.js'; | ||
@@ -11,0 +11,0 @@ import RegularExpression from './RegularExpression.js'; |
@@ -11,4 +11,4 @@ interface Constructor<T> extends Function { | ||
readonly type: Constructor<T> | Factory<T> | null; | ||
readonly useForSnippets: boolean; | ||
readonly preferForRegexpMatch: boolean; | ||
readonly useForSnippets?: boolean | undefined; | ||
readonly preferForRegexpMatch?: boolean | undefined; | ||
private transformFn; | ||
@@ -27,3 +27,3 @@ static compare(pt1: ParameterType<unknown>, pt2: ParameterType<unknown>): number; | ||
*/ | ||
constructor(name: string | undefined, regexps: RegExps, type: Constructor<T> | Factory<T> | null, transform: (...match: string[]) => T | PromiseLike<T>, useForSnippets: boolean, preferForRegexpMatch: boolean); | ||
constructor(name: string | undefined, regexps: RegExps, type: Constructor<T> | Factory<T> | null, transform?: (...match: string[]) => T | PromiseLike<T>, useForSnippets?: boolean | undefined, preferForRegexpMatch?: boolean | undefined); | ||
transform(thisObj: unknown, groupValues: string[] | null): any; | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "@cucumber/cucumber-expressions", | ||
"version": "16.0.0", | ||
"version": "16.0.1", | ||
"description": "Cucumber Expressions - a simpler alternative to Regular Expressions", | ||
@@ -23,8 +23,3 @@ "type": "module", | ||
"build:esm": "tsc --build tsconfig.build-esm.json", | ||
"build": "npm run build:cjs && npm run build:esm && npm run build:try", | ||
"build:try": "npm run build:try:typecheck && npm run build:try:js && cross-env NODE_ENV=production npm run build:try:css", | ||
"build:try:typecheck": "tsc --build tsconfig.build-try.json", | ||
"build:try:js": "esbuild try/index.tsx --bundle --minify --sourcemap --outfile=../docs/index.js", | ||
"build:try:serve": "esbuild try/index.tsx --bundle --serve --servedir=../docs", | ||
"build:try:css": "postcss try/style.css --output ../docs/style.css", | ||
"build": "npm run build:cjs && npm run build:esm", | ||
"test": "mocha && npm run test:cjs", | ||
@@ -34,4 +29,4 @@ "test:cjs": "npm run build:cjs && mocha --no-config dist/cjs/test", | ||
"prepublishOnly": "npm run build", | ||
"eslint-fix": "eslint --ext ts,tsx --max-warnings 0 --fix src test try", | ||
"eslint": "eslint --ext ts,tsx --max-warnings 0 src test try", | ||
"eslint-fix": "eslint --ext ts,tsx --max-warnings 0 --fix src test", | ||
"eslint": "eslint --ext ts,tsx --max-warnings 0 src test", | ||
"upgrade": "npm-check-updates --upgrade" | ||
@@ -56,45 +51,27 @@ }, | ||
"devDependencies": { | ||
"@codemirror/commands": "6.0.0", | ||
"@codemirror/state": "6.0.0", | ||
"@codemirror/view": "6.0.0", | ||
"@headlessui/react": "1.6.4", | ||
"@stryker-mutator/core": "6.0.2", | ||
"@stryker-mutator/mocha-runner": "6.0.2", | ||
"@tailwindcss/forms": "0.5.2", | ||
"@types/glob": "7.2.0", | ||
"@stryker-mutator/core": "6.3.0", | ||
"@stryker-mutator/mocha-runner": "6.3.0", | ||
"@types/glob": "8.0.0", | ||
"@types/js-yaml": "4.0.5", | ||
"@types/mocha": "9.1.1", | ||
"@types/node": "17.0.42", | ||
"@types/react": "18.0.12", | ||
"@types/react-dom": "18.0.5", | ||
"@types/react-router-dom": "5.3.3", | ||
"@typescript-eslint/eslint-plugin": "5.27.1", | ||
"@typescript-eslint/parser": "5.27.1", | ||
"autoprefixer": "10.4.7", | ||
"@types/mocha": "10.0.0", | ||
"@types/node": "18.11.9", | ||
"@typescript-eslint/eslint-plugin": "5.42.0", | ||
"@typescript-eslint/parser": "5.42.0", | ||
"cross-env": "7.0.3", | ||
"esbuild": "0.14.43", | ||
"eslint": "8.17.0", | ||
"esbuild": "0.15.13", | ||
"eslint": "8.26.0", | ||
"eslint-config-prettier": "8.5.0", | ||
"eslint-plugin-import": "2.26.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-prettier": "4.0.0", | ||
"eslint-plugin-react": "7.30.0", | ||
"eslint-plugin-react-hooks": "4.5.0", | ||
"eslint-plugin-simple-import-sort": "7.0.0", | ||
"eslint-plugin-prettier": "4.2.1", | ||
"eslint-plugin-simple-import-sort": "8.0.0", | ||
"glob": "8.0.3", | ||
"js-yaml": "4.1.0", | ||
"mocha": "10.0.0", | ||
"npm-check-updates": "13.1.4", | ||
"postcss": "8.4.14", | ||
"postcss-cli": "9.1.0", | ||
"prettier": "2.6.2", | ||
"mocha": "10.1.0", | ||
"npm-check-updates": "16.3.16", | ||
"prettier": "2.7.1", | ||
"pretty-quick": "3.1.3", | ||
"query-string": "7.1.1", | ||
"react": "18.1.0", | ||
"react-dom": "18.1.0", | ||
"react-router-dom": "5.3.3", | ||
"tailwindcss": "3.1.2", | ||
"ts-node": "10.8.1", | ||
"typescript": "4.7.3", | ||
"use-query-params": "1.2.3" | ||
"ts-node": "10.9.1", | ||
"typescript": "4.8.4" | ||
}, | ||
@@ -101,0 +78,0 @@ "dependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
544932
25