GT2/GT2-iOS/node_modules/jest-validate/package.json

106 lines
6.2 KiB
JSON
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

{
"_args": [
[
{
"raw": "jest-validate@^22.2.2",
"scope": null,
"escapedName": "jest-validate",
"name": "jest-validate",
"rawSpec": "^22.2.2",
"spec": ">=22.2.2 <23.0.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jest-config"
]
],
"_from": "jest-validate@>=22.2.2 <23.0.0",
"_id": "jest-validate@22.2.2",
"_inCache": true,
"_location": "/jest-validate",
"_nodeVersion": "8.9.1",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/jest-validate_22.2.2_1518193692735_0.052860719963394365"
},
"_npmUser": {
"name": "mjesun",
"email": "mjesun@hotmail.com"
},
"_npmVersion": "5.5.1",
"_phantomChildren": {
"ansi-regex": "3.0.0",
"ansi-styles": "3.2.0"
},
"_requested": {
"raw": "jest-validate@^22.2.2",
"scope": null,
"escapedName": "jest-validate",
"name": "jest-validate",
"rawSpec": "^22.2.2",
"spec": ">=22.2.2 <23.0.0",
"type": "range"
},
"_requiredBy": [
"/jest-config",
"/jest-util"
],
"_resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-22.2.2.tgz",
"_shasum": "9cdce422c93cc28395e907ac6bbc929158d9a6ba",
"_shrinkwrap": null,
"_spec": "jest-validate@^22.2.2",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jest-config",
"bugs": {
"url": "https://github.com/facebook/jest/issues"
},
"dependencies": {
"chalk": "^2.0.1",
"jest-get-type": "^22.1.0",
"leven": "^2.1.0",
"pretty-format": "^22.1.0"
},
"description": "Generic configuration validation tool that helps you with warnings, errors and deprecation messages as well as showing users examples of correct configuration.",
"devDependencies": {},
"directories": {},
"dist": {
"integrity": "sha512-YcZlnHYqQqLqSTj/E+mDkriqVmGOATTzseV+JFWa0XJ4Tpxji6+M66TcTl1PlbvQTMo+iVvvRixnPkF1mqNFjg==",
"shasum": "9cdce422c93cc28395e907ac6bbc929158d9a6ba",
"tarball": "https://registry.npmjs.org/jest-validate/-/jest-validate-22.2.2.tgz",
"fileCount": 12,
"unpackedSize": 21200
},
"homepage": "https://github.com/facebook/jest#readme",
"license": "MIT",
"main": "build/index.js",
"maintainers": [
{
"name": "aaronabramov",
"email": "aaron@abramov.io"
},
{
"name": "cpojer",
"email": "christoph.pojer@gmail.com"
},
{
"name": "fb",
"email": "opensource+npm@fb.com"
},
{
"name": "jeanlauliac",
"email": "jean@lauliac.com"
},
{
"name": "mjesun",
"email": "mjesun@hotmail.com"
}
],
"name": "jest-validate",
"optionalDependencies": {},
"readme": "# jest-validate\n\nGeneric configuration validation tool that helps you with warnings, errors and\ndeprecation messages as well as showing users examples of correct configuration.\n\n```bash\nnpm install --save jest-validate\n```\n\n## Usage\n\n```js\nimport {validate} from 'jest-validate';\n\nvalidate((config: Object), (options: ValidationOptions)); // => {hasDeprecationWarnings: boolean, isValid: boolean}\n```\n\nWhere `ValidationOptions` are:\n\n```js\ntype ValidationOptions = {\n comment?: string,\n condition?: (option: any, validOption: any) => boolean,\n deprecate?: (\n config: Object,\n option: string,\n deprecatedOptions: Object,\n options: ValidationOptions,\n ) => true,\n deprecatedConfig?: {[key: string]: Function},\n error?: (\n option: string,\n received: any,\n defaultValue: any,\n options: ValidationOptions,\n ) => void,\n exampleConfig: Object,\n title?: Title,\n unknown?: (\n config: Object,\n exampleConfig: Object,\n option: string,\n options: ValidationOptions,\n ) => void,\n};\n\ntype Title = {|\n deprecation?: string,\n error?: string,\n warning?: string,\n|};\n```\n\n`exampleConfig` is the only option required.\n\n## API\n\nBy default `jest-validate` will print generic warning and error messages. You\ncan however customize this behavior by providing `options: ValidationOptions`\nobject as a second argument:\n\nAlmost anything can be overwritten to suite your needs.\n\n### Options\n\n* `comment` optional string to be rendered below error/warning message.\n* `condition` an optional function with validation condition.\n* `deprecate`, `error`, `unknown` optional functions responsible for\n displaying warning and error messages.\n* `deprecatedConfig` optional object with deprecated config keys.\n* `exampleConfig` the only **required** option with configuration against\n which you'd like to test.\n* `title` optional object of titles for errors and messages.\n\nYou will find examples of `condition`, `deprecate`, `error`, `unknown`, and\n`deprecatedConfig` inside source of this repository, named respectively.\n\n## Examples\n\nMinimal example:\n\n```js\nvalidate(config, {exampleConfig});\n```\n\nExample with slight modifications:\n\n```js\nvalidate(config, {\n comment: ' Documentation: http://custom-docs.com',\n deprecatedConfig,\n exampleConfig,\n title: {\n deprecation: 'Custom Deprecation',\n // leaving 'error' and 'warning' as default\n },\n});\n```\n\nThis will output:\n\n#### Warning:\n\n```bash\n● Validation Warning:\n\n Unknown option transformx with value \"<rootDir>/node_modules/babel-jest\" was found.\n This is either a typing error or a user mistake. Fixing it will remove this message.\n\n Documentation: http://custom-docs.com\n```\n\n#### Error:\n\n```bash\n● Validation Error:\n\n Option transform must be of type:\n object\n but instead received:\n string\n\n Example:\n {\n \"transform\": {\"^.+\\\\.js$\": \"<rootDir>/preprocessor.js\"}\n }\n\n Documentation: http://custom-docs.com\n```\n\n#### Deprecation\n\nBased on `deprecatedConfig` object with proper deprecation messages. Note custom\ntitle:\n\n```bash\nCustom Deprecation:\n\n Option scriptPreprocessor was replaced by transform, which support multiple preprocessors.\n\n Jest now treats your current configuration as:\n {\n \"transform\": {\".*\": \"xxx\"}\n }\n\n Please update your configuration.\n\n Documentation: http://custom-docs.com\n```\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git+https://github.com/facebook/jest.git"
},
"version": "22.2.2"
}