GT2/GT2-iOS/node_modules/diff/package.json

137 lines
12 KiB
JSON

{
"_args": [
[
{
"raw": "diff@^3.2.0",
"scope": null,
"escapedName": "diff",
"name": "diff",
"rawSpec": "^3.2.0",
"spec": ">=3.2.0 <4.0.0",
"type": "range"
},
"/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jest-diff"
]
],
"_from": "diff@>=3.2.0 <4.0.0",
"_id": "diff@3.4.0",
"_inCache": true,
"_location": "/diff",
"_nodeVersion": "8.5.0",
"_npmOperationalInternal": {
"host": "s3://npm-registry-packages",
"tmp": "tmp/diff-3.4.0.tgz_1507394355190_0.5823318185284734"
},
"_npmUser": {
"name": "kpdecker",
"email": "kpdecker@gmail.com"
},
"_npmVersion": "5.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "diff@^3.2.0",
"scope": null,
"escapedName": "diff",
"name": "diff",
"rawSpec": "^3.2.0",
"spec": ">=3.2.0 <4.0.0",
"type": "range"
},
"_requiredBy": [
"/jest-diff"
],
"_resolved": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz",
"_shasum": "b1d85507daf3964828de54b37d0d73ba67dda56c",
"_shrinkwrap": null,
"_spec": "diff@^3.2.0",
"_where": "/Volumes/2009-SSD/GT2/GT2-iOS/node_modules/jest-diff",
"babel": {
"sourceMaps": "inline",
"presets": [
"es3",
"es2015-mod"
],
"auxiliaryCommentBefore": "istanbul ignore start",
"auxiliaryCommentAfter": "istanbul ignore end"
},
"browser": "./dist/diff.js",
"bugs": {
"url": "http://github.com/kpdecker/jsdiff/issues",
"email": "kpdecker@gmail.com"
},
"dependencies": {},
"description": "A javascript text diff implementation.",
"devDependencies": {
"async": "^1.4.2",
"babel-core": "^6.0.0",
"babel-loader": "^6.0.0",
"babel-preset-es2015-mod": "^6.3.13",
"babel-preset-es3": "^1.0.1",
"chai": "^3.3.0",
"colors": "^1.1.2",
"eslint": "^1.6.0",
"grunt": "^0.4.5",
"grunt-babel": "^6.0.0",
"grunt-clean": "^0.4.0",
"grunt-cli": "^0.1.13",
"grunt-contrib-clean": "^1.0.0",
"grunt-contrib-copy": "^1.0.0",
"grunt-contrib-uglify": "^1.0.0",
"grunt-contrib-watch": "^1.0.0",
"grunt-eslint": "^17.3.1",
"grunt-karma": "^0.12.1",
"grunt-mocha-istanbul": "^3.0.1",
"grunt-mocha-test": "^0.12.7",
"grunt-webpack": "^1.0.11",
"istanbul": "github:kpdecker/istanbul",
"karma": "^0.13.11",
"karma-mocha": "^0.2.0",
"karma-mocha-reporter": "^2.0.0",
"karma-phantomjs-launcher": "^1.0.0",
"karma-sauce-launcher": "^0.3.0",
"karma-sourcemap-loader": "^0.3.6",
"karma-webpack": "^1.7.0",
"mocha": "^2.3.3",
"phantomjs-prebuilt": "^2.1.5",
"semver": "^5.0.3",
"webpack": "^1.12.2",
"webpack-dev-server": "^1.12.0"
},
"directories": {},
"dist": {
"integrity": "sha512-QpVuMTEoJMF7cKzi6bvWhRulU1fZqZnvyVQgNhPaxxuTYwyjn/j1v9falseQ/uXWwPnO56RBfwtg4h/EQXmucA==",
"shasum": "b1d85507daf3964828de54b37d0d73ba67dda56c",
"tarball": "https://registry.npmjs.org/diff/-/diff-3.4.0.tgz"
},
"engines": {
"node": ">=0.3.1"
},
"gitHead": "e03e1fc6d2d8c37ff5adf616f198228dc8ab1b74",
"homepage": "https://github.com/kpdecker/jsdiff#readme",
"keywords": [
"diff",
"javascript"
],
"license": "BSD-3-Clause",
"main": "./lib",
"maintainers": [
{
"name": "Kevin Decker",
"email": "kpdecker@gmail.com",
"url": "http://incaseofstairs.com"
}
],
"name": "diff",
"optionalDependencies": {},
"readme": "# jsdiff\n\n[![Build Status](https://secure.travis-ci.org/kpdecker/jsdiff.svg)](http://travis-ci.org/kpdecker/jsdiff)\n[![Sauce Test Status](https://saucelabs.com/buildstatus/jsdiff)](https://saucelabs.com/u/jsdiff)\n\nA javascript text differencing implementation.\n\nBased on the algorithm proposed in\n[\"An O(ND) Difference Algorithm and its Variations\" (Myers, 1986)](http://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.4.6927).\n\n## Installation\n```bash\nnpm install diff --save\n```\nor\n```bash\nbower install jsdiff --save\n```\n\n## API\n\n* `JsDiff.diffChars(oldStr, newStr[, options])` - diffs two blocks of text, comparing character by character.\n\n Returns a list of change objects (See below).\n\n Options\n * `ignoreCase`: `true` to ignore casing difference. Defaults to `false`.\n\n* `JsDiff.diffWords(oldStr, newStr[, options])` - diffs two blocks of text, comparing word by word, ignoring whitespace.\n\n Returns a list of change objects (See below).\n\n Options\n * `ignoreCase`: Same as in `diffChars`.\n\n* `JsDiff.diffWordsWithSpace(oldStr, newStr[, options])` - diffs two blocks of text, comparing word by word, treating whitespace as significant.\n\n Returns a list of change objects (See below).\n\n* `JsDiff.diffLines(oldStr, newStr[, options])` - diffs two blocks of text, comparing line by line.\n\n Options\n * `ignoreWhitespace`: `true` to ignore leading and trailing whitespace. This is the same as `diffTrimmedLines`\n * `newlineIsToken`: `true` to treat newline characters as separate tokens. This allows for changes to the newline structure to occur independently of the line content and to be treated as such. In general this is the more human friendly form of `diffLines` and `diffLines` is better suited for patches and other computer friendly output.\n\n Returns a list of change objects (See below).\n\n* `JsDiff.diffTrimmedLines(oldStr, newStr[, options])` - diffs two blocks of text, comparing line by line, ignoring leading and trailing whitespace.\n\n Returns a list of change objects (See below).\n\n* `JsDiff.diffSentences(oldStr, newStr[, options])` - diffs two blocks of text, comparing sentence by sentence.\n\n Returns a list of change objects (See below).\n\n* `JsDiff.diffCss(oldStr, newStr[, options])` - diffs two blocks of text, comparing CSS tokens.\n\n Returns a list of change objects (See below).\n\n* `JsDiff.diffJson(oldObj, newObj[, options])` - diffs two JSON objects, comparing the fields defined on each. The order of fields, etc does not matter in this comparison.\n\n Returns a list of change objects (See below).\n\n* `JsDiff.diffArrays(oldArr, newArr[, options])` - diffs two arrays, comparing each item for strict equality (===).\n\n Options\n * `comparator`: `function(left, right)` for custom equality checks\n\n Returns a list of change objects (See below).\n\n* `JsDiff.createTwoFilesPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader)` - creates a unified diff patch.\n\n Parameters:\n * `oldFileName` : String to be output in the filename section of the patch for the removals\n * `newFileName` : String to be output in the filename section of the patch for the additions\n * `oldStr` : Original string value\n * `newStr` : New string value\n * `oldHeader` : Additional information to include in the old file header\n * `newHeader` : Additional information to include in the new file header\n * `options` : An object with options. Currently, only `context` is supported and describes how many lines of context should be included.\n\n* `JsDiff.createPatch(fileName, oldStr, newStr, oldHeader, newHeader)` - creates a unified diff patch.\n\n Just like JsDiff.createTwoFilesPatch, but with oldFileName being equal to newFileName.\n\n\n* `JsDiff.structuredPatch(oldFileName, newFileName, oldStr, newStr, oldHeader, newHeader, options)` - returns an object with an array of hunk objects.\n\n This method is similar to createTwoFilesPatch, but returns a data structure\n suitable for further processing. Parameters are the same as createTwoFilesPatch. The data structure returned may look like this:\n\n ```js\n {\n oldFileName: 'oldfile', newFileName: 'newfile',\n oldHeader: 'header1', newHeader: 'header2',\n hunks: [{\n oldStart: 1, oldLines: 3, newStart: 1, newLines: 3,\n lines: [' line2', ' line3', '-line4', '+line5', '\\\\ No newline at end of file'],\n }]\n }\n ```\n\n* `JsDiff.applyPatch(source, patch[, options])` - applies a unified diff patch.\n\n Return a string containing new version of provided data. `patch` may be a string diff or the output from the `parsePatch` or `structuredPatch` methods.\n\n The optional `options` object may have the following keys:\n\n - `fuzzFactor`: Number of lines that are allowed to differ before rejecting a patch. Defaults to 0.\n - `compareLine(lineNumber, line, operation, patchContent)`: Callback used to compare to given lines to determine if they should be considered equal when patching. Defaults to strict equality but may be overriden to provide fuzzier comparison. Should return false if the lines should be rejected.\n\n* `JsDiff.applyPatches(patch, options)` - applies one or more patches.\n\n This method will iterate over the contents of the patch and apply to data provided through callbacks. The general flow for each patch index is:\n\n - `options.loadFile(index, callback)` is called. The caller should then load the contents of the file and then pass that to the `callback(err, data)` callback. Passing an `err` will terminate further patch execution.\n - `options.patched(index, content, callback)` is called once the patch has been applied. `content` will be the return value from `applyPatch`. When it's ready, the caller should call `callback(err)` callback. Passing an `err` will terminate further patch execution.\n\n Once all patches have been applied or an error occurs, the `options.complete(err)` callback is made.\n\n* `JsDiff.parsePatch(diffStr)` - Parses a patch into structured data\n\n Return a JSON object representation of the a patch, suitable for use with the `applyPatch` method. This parses to the same structure returned by `JsDiff.structuredPatch`.\n\n* `convertChangesToXML(changes)` - converts a list of changes to a serialized XML format\n\n\nAll methods above which accept the optional `callback` method will run in sync mode when that parameter is omitted and in async mode when supplied. This allows for larger diffs without blocking the event loop. This may be passed either directly as the final parameter or as the `callback` field in the `options` object.\n\n### Change Objects\nMany of the methods above return change objects. These objects consist of the following fields:\n\n* `value`: Text content\n* `added`: True if the value was inserted into the new string\n* `removed`: True of the value was removed from the old string\n\nNote that some cases may omit a particular flag field. Comparison on the flag fields should always be done in a truthy or falsy manner.\n\n## Examples\n\nBasic example in Node\n\n```js\nrequire('colors')\nvar jsdiff = require('diff');\n\nvar one = 'beep boop';\nvar other = 'beep boob blah';\n\nvar diff = jsdiff.diffChars(one, other);\n\ndiff.forEach(function(part){\n // green for additions, red for deletions\n // grey for common parts\n var color = part.added ? 'green' :\n part.removed ? 'red' : 'grey';\n process.stderr.write(part.value[color]);\n});\n\nconsole.log()\n```\nRunning the above program should yield\n\n<img src=\"images/node_example.png\" alt=\"Node Example\">\n\nBasic example in a web page\n\n```html\n<pre id=\"display\"></pre>\n<script src=\"diff.js\"></script>\n<script>\nvar one = 'beep boop',\n other = 'beep boob blah',\n color = '',\n span = null;\n\nvar diff = JsDiff.diffChars(one, other),\n display = document.getElementById('display'),\n fragment = document.createDocumentFragment();\n\ndiff.forEach(function(part){\n // green for additions, red for deletions\n // grey for common parts\n color = part.added ? 'green' :\n part.removed ? 'red' : 'grey';\n span = document.createElement('span');\n span.style.color = color;\n span.appendChild(document\n .createTextNode(part.value));\n fragment.appendChild(span);\n});\n\ndisplay.appendChild(fragment);\n</script>\n```\n\nOpen the above .html file in a browser and you should see\n\n<img src=\"images/web_example.png\" alt=\"Node Example\">\n\n**[Full online demo](http://kpdecker.github.com/jsdiff)**\n\n## Compatibility\n\n[![Sauce Test Status](https://saucelabs.com/browser-matrix/jsdiff.svg)](https://saucelabs.com/u/jsdiff)\n\njsdiff supports all ES3 environments with some known issues on IE8 and below. Under these browsers some diff algorithms such as word diff and others may fail due to lack of support for capturing groups in the `split` operation.\n\n## License\n\nSee [LICENSE](https://github.com/kpdecker/jsdiff/blob/master/LICENSE).\n",
"readmeFilename": "README.md",
"repository": {
"type": "git",
"url": "git://github.com/kpdecker/jsdiff.git"
},
"scripts": {
"test": "grunt"
},
"version": "3.4.0"
}