{"name":"jest-changed-files","version":"23.0.1","license":"MIT","_id":"jest-changed-files@23.0.1","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"}],"dist":{"shasum":"f79572d0720844ea5df84c2a448e862c2254f60c","tarball":"http://registry-npm.ywwl.com/jest-changed-files/download/jest-changed-files-23.0.1.tgz","fileCount":7,"integrity":"sha512-cFOeutS28e3DyfSu5z4mHsvbSv52pAiMPTYvO4UYA8aVibF5TUJni/7tk+A0QrMFz8D0CVfYzJx0woPhUA8UuQ==","signatures":[{"sig":"MEUCIQD92OIw8ygymxet5ydQeYr2zoCcRp03/Er80yqtLQyqTgIgTezqj1auu5HTzoSWVuW3qBFqUiKdvzEjXNULYuhlCGc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":14070,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbCs8eCRA9TVsSAnZWagAAYxoP/2cI5evtFj0DZusCj7ZD\n+LRCM/8YTcKDW4tcbGMGJ7GRA0PK2Z8HvdfujOSDbeQoBUd/WNDCr0Uiqyrg\nP7JoahiyKDG1oi8Msy541ZcNaWp2T9c9WD/szgZYYdyoW9HGsySsW8yJU3Fo\n8dIysj9LK2yGh7bKY7TpQN8JiPBacjU1SDLK7ZlpMP5/em84eo/amcaJK5/X\nMh6nYKn3u3vLs3KC1Xz4Lf4HPRuQRijPX/8lee+G/dcKsNZfWdeHfS9b5rnv\nXxkH2/zwL3x5Qn5Ye6extQ/z+7hauJ18yeDOBamSowj57TcMxUdiGSlebXCw\nn6TClwPZau6GOHSvliVoDloaDFhiYWt+3ruBQl8Lh46bIC9LpOidtGiXhVQK\nhEdsuXdmBi6dUr0CUmGQ/oskN5IL0g623p5BDJdjgzhCwKDVkrfJKk/MlgX8\np9xipdCPh6UdVjheAMOFFaZaVwBXf4jWsuD+2540o3vSObWIPF9Us1A/3rLa\ncGdUntvGChK/y0rlEc5qCj5J4ynmw+S4bdNuCJlzbXoWJUr+AwWeibaiJxUg\nVo7wkZjsvee8R8sDL1vgXvk9tmlwQ3PoFGQsqkPpTy6Tck/R9tP4+99iogEf\nPAhCVCY9PgM7HYAzmhKDP1Uoo5yoSa3B0+i4s+Md+GhEgOkUfGlyOiqE4yxm\nnXJW\r\n=Lrat\r\n-----END PGP SIGNATURE-----\r\n","size":3381,"noattachment":false,"key":"/jest-changed-files/-/jest-changed-files-23.0.1.tgz"},"main":"build/index.js","_npmUser":{"name":"mjesun","email":"mjesun@hotmail.com"},"repository":{"url":"https://github.com/facebook/jest.git","type":"git"},"description":"A module used internally by Jest to check which files have changed since you last committed in git or hg.","directories":{},"dependencies":{"throat":"^4.0.0"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/jest-changed-files_23.0.1_1527435037745_0.9782846502033522","host":"s3://npm-registry-packages"},"readme":"# jest-changed-files\n\nA module used internally by Jest to check which files have changed since you last committed in git or hg.\n\n## Install\n\n```sh\n$ npm install --save jest-changed-files\n```\n\n## API\n\n### `getChangedFilesForRoots(roots: Array<string>, options: Options): Promise<ChangedFiles>`\n\nGet the list of files and repos that have changed since the last commit.\n\n#### Parameters\n\nroots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).\n\noptions: Object literal with keys\n\n- lastCommit: boolean\n- withAncestor: boolean\n- changedSince: string\n\n### Returns\n\nA Promise of Object literal with keys\n\n- changedFiles: Set\\<string>\n- repos:\n  - git: Set\\<string>\n  - hg: Set\\<string>\n\n### findRepos(roots: Array<string>): Promise<Repos>\n\nGet a set of git and hg repositories.\n\n#### Parameters\n\nroots: Array of string paths gathered from [jest roots](https://jestjs.io/docs/configuration#roots-arraystring).\n\n### Returns\n\nA Promise of Object literal with keys\n\n- git: Set\\<string>\n- hg: Set\\<string>\n\n## Usage\n\n```javascript\nimport {getChangedFilesForRoots} from 'jest-changed-files';\n\ngetChangedFilesForRoots(['/path/to/test'], {\n  lastCommit: true,\n  withAncestor: true,\n}).then(files => {\n  /*\n  {\n    repos: [],\n    changedFiles: []\n  }\n  */\n});\n```\n\n```javascript\nimport {getChangedFilesForRoots} from 'jest-changed-files';\n\ngetChangedFilesForRoots(['/path/to/test'], {\n  changedSince: 'main',\n}).then(files => {\n  /*\n  {\n    repos: [],\n    changedFiles: []\n  }\n  */\n});\n```\n\n```javascript\nimport {findRepos} from 'jest-changed-files';\n\nfindRepos(['/path/to/test']).then(repos => {\n  /*\n  {\n    git: Set<Path>,\n    hg: Set<Path>\n  }\n  */\n});\n```\n","publish_time":1527435037854,"_cnpm_publish_time":1527435037854,"dist-tags":{"latest":"30.5.1","next":"30.0.0-rc.1"}}