183 lines
14 KiB
JSON
183 lines
14 KiB
JSON
|
{
|
||
|
"_args": [
|
||
|
[
|
||
|
{
|
||
|
"raw": "deep-diff@0.3.4",
|
||
|
"scope": null,
|
||
|
"escapedName": "deep-diff",
|
||
|
"name": "deep-diff",
|
||
|
"rawSpec": "0.3.4",
|
||
|
"spec": "0.3.4",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"/home/jdaugherty/work/GT2/GT2-Android/node_modules/redux-logger"
|
||
|
]
|
||
|
],
|
||
|
"_from": "deep-diff@0.3.4",
|
||
|
"_id": "deep-diff@0.3.4",
|
||
|
"_inCache": true,
|
||
|
"_location": "/deep-diff",
|
||
|
"_nodeVersion": "5.10.1",
|
||
|
"_npmOperationalInternal": {
|
||
|
"host": "packages-16-east.internal.npmjs.com",
|
||
|
"tmp": "tmp/deep-diff-0.3.4.tgz_1462753495254_0.9659246993251145"
|
||
|
},
|
||
|
"_npmUser": {
|
||
|
"name": "flitbit",
|
||
|
"email": "phillip@flitbit.com"
|
||
|
},
|
||
|
"_npmVersion": "3.8.6",
|
||
|
"_phantomChildren": {},
|
||
|
"_requested": {
|
||
|
"raw": "deep-diff@0.3.4",
|
||
|
"scope": null,
|
||
|
"escapedName": "deep-diff",
|
||
|
"name": "deep-diff",
|
||
|
"rawSpec": "0.3.4",
|
||
|
"spec": "0.3.4",
|
||
|
"type": "version"
|
||
|
},
|
||
|
"_requiredBy": [
|
||
|
"/redux-logger"
|
||
|
],
|
||
|
"_resolved": "https://registry.npmjs.org/deep-diff/-/deep-diff-0.3.4.tgz",
|
||
|
"_shasum": "aac5c39952236abe5f037a2349060ba01b00ae48",
|
||
|
"_shrinkwrap": null,
|
||
|
"_spec": "deep-diff@0.3.4",
|
||
|
"_where": "/home/jdaugherty/work/GT2/GT2-Android/node_modules/redux-logger",
|
||
|
"author": {
|
||
|
"name": "Phillip Clark",
|
||
|
"email": "phillip@flitbit.com"
|
||
|
},
|
||
|
"bugs": {
|
||
|
"url": "https://github.com/flitbit/diff/issues"
|
||
|
},
|
||
|
"contributors": [
|
||
|
{
|
||
|
"name": "Dan Drinkard",
|
||
|
"email": "dan.drinkard@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Daniel Spangler",
|
||
|
"email": "daniel.spangler@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Denning",
|
||
|
"email": "denningj@amazon.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Elad Efrat",
|
||
|
"email": "elad@iNNU.ORG"
|
||
|
},
|
||
|
{
|
||
|
"name": "Mats Bryntse",
|
||
|
"email": "mats.dev@bryntum.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Nicholas Calugar",
|
||
|
"email": "njcalugar@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Paul Pflugradt",
|
||
|
"email": "paulpflugradt@googlemail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Serkan Serttop",
|
||
|
"email": "serkanserttop@yahoo.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Simen Bekkhus",
|
||
|
"email": "sbekkhus91@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Tom Ashworth",
|
||
|
"email": "tashworth@twitter.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Tom MacWright",
|
||
|
"email": "tmcw@users.noreply.github.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "Yandell",
|
||
|
"email": "hyandell@amazon.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "ZauberNerd",
|
||
|
"email": "zaubernerd@zaubernerd.de"
|
||
|
},
|
||
|
{
|
||
|
"name": "caasi Huang",
|
||
|
"email": "caasi.igd@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "icesoar",
|
||
|
"email": "icesoar@hotmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "orlando",
|
||
|
"email": "operri@opentable.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "ravishivt",
|
||
|
"email": "javishi@gmail.com"
|
||
|
},
|
||
|
{
|
||
|
"name": "wooorm",
|
||
|
"email": "tituswormer@gmail.com"
|
||
|
}
|
||
|
],
|
||
|
"dependencies": {},
|
||
|
"description": "Javascript utility for calculating deep difference, capturing changes, and applying changes across objects; for nodejs and the browser.",
|
||
|
"devDependencies": {
|
||
|
"deep-equal": "~1.0.0",
|
||
|
"expect.js": "^0.3.1",
|
||
|
"jscs": "^1.12.0",
|
||
|
"jshint": "^2.6.3",
|
||
|
"mocha": "^2.2.1",
|
||
|
"uglifyjs": "^2.4.10"
|
||
|
},
|
||
|
"directories": {
|
||
|
"examples": "./examples",
|
||
|
"releases": "./releases",
|
||
|
"test": "./test"
|
||
|
},
|
||
|
"dist": {
|
||
|
"shasum": "aac5c39952236abe5f037a2349060ba01b00ae48",
|
||
|
"tarball": "https://registry.npmjs.org/deep-diff/-/deep-diff-0.3.4.tgz"
|
||
|
},
|
||
|
"files": [
|
||
|
"index.js",
|
||
|
"releases/"
|
||
|
],
|
||
|
"gitHead": "e271e69f4c6dbccf657cf30355d307b46659de67",
|
||
|
"homepage": "https://github.com/flitbit/diff#readme",
|
||
|
"keywords": [
|
||
|
"diff",
|
||
|
"difference",
|
||
|
"compare",
|
||
|
"change-tracking"
|
||
|
],
|
||
|
"license": "MIT",
|
||
|
"main": "./index.js",
|
||
|
"maintainers": [
|
||
|
{
|
||
|
"name": "flitbit",
|
||
|
"email": "phillip@flitbit.com"
|
||
|
}
|
||
|
],
|
||
|
"name": "deep-diff",
|
||
|
"optionalDependencies": {},
|
||
|
"readme": "# deep-diff [![Build Status](https://travis-ci.org/flitbit/diff.png?branch=master)](https://travis-ci.org/flitbit/diff)\n\n**deep-diff** is a javascript/node.js module providing utility functions for determining the structural differences between objects and includes some utilities for applying differences across objects.\n\n## Features\n\n* Get the structural differences between two objects.\n* Observe the structural differences between two objects.\n* When structural differences represent change, apply change from one object to another.\n* When structural differences represent change, selectively apply change from one object to another.\n\n## ChangeLog\n\n`0.3.3` - Thanks @SimenB: enabled npm script for release (alternate to the Makefile). Also linting as part of `npm test`. Thanks @joeldenning: Fixed issue #35; diffs of top level arrays now working.\n\n`0.3.2` - Resolves #46; support more robust filters by including `lhs` and `rhs` in the filter callback. By @Orlando80\n\n`0.3.1` - Better type checking by @Drinks, UMD wrapper by @SimenB. Now certifies against nodejs 12 and iojs (Thanks @SimenB).\n\n`0.2.0` - [Fixes Bug #17](https://github.com/flitbit/diff/issues/17), [Fixes Bug #19](https://github.com/flitbit/diff/issues/19), [Enhancement #21](https://github.com/flitbit/diff/issues/21) Applying changes that are properly structured can now be applied as a change (no longer requires typeof Diff) - supports differences being applied after round-trip serialization to JSON format. Prefilter now reports the path of all changes - it was not showing a path for arrays and anything in the structure below (reported by @ravishvt).\n\n*Breaking Change* – The structure of change records for differences below an array element has changed. Array indexes are now reported as numeric elements in the `path` if the changes is merely edited (an `E` kind). Changes of kind `A` (array) are only reported for changes in the terminal array itself and will have a nested `N` (new) item or a nested `D` (deleted) item.\n\n`0.1.7` - [Enhancement #11](https://github.com/flitbit/diff/issues/11) Added the ability to filter properties that should not be analyzed while calculating differences. Makes `deep-diff` more usable with frameworks that attach housekeeping properties to existing objects. AngularJS does this, and the new filter ability should ease working with it.\n\n`0.1.6` - Changed objects within nested arrays can now be applied. They were previously recording the changes appropriately but `applyDiff` would error. Comparison of `NaN` works more sanely - comparison to number shows difference, comparison to another `Nan` does not.\n\n## Installation\n```\nnpm install deep-diff\n```\n\nFor the browser, you can install with [bower](http://bower.io/):\n\n```\nbower install deep-diff\n```\n\n## Tests\n\nTests use [mocha](http://visionmedia.github.io/mocha/) and [expect.js](https://github.com/LearnBoost/expect.js/), so if you clone the [github repository](https://github.com/flitbit/json-ptr) you'll need to run:\n\n```bash\nnpm install\n```\n\n... followed by ...\n\n```bash\nnpm test\n```\n\n... or ...\n\n```bash\nmocha -R spec\n```\n\n### Importing\n\n**nodejs**\n```javascript\nvar deep = require('deep-diff')\n```\n\n**browser**\n```html\n<script src=\"deep-diff-0.3.1.min.js\"></script>\n```\n> Minified, browser release of the current version of the module is under the `releases` folder.\n> In a browser, `deep-diff` defines a global variable `DeepDiff`. If there is a conflict in the global namesapce you can restore the conflicting definition and assign `deep-diff` to another variable like this: `var deep = DeepDiff.noConflict();`.\n\n## Simple Examples\n\nIn order to describe differences, change revolves around an `origin` object. For consistency, the `origin` object is always the operand on the `left-hand-side` of operations. The `comparand`, which may contain changes, is always on the `right-hand-side` of operations.\n\n``` javascript\nvar diff = require('deep-diff').diff;\n\nvar lhs = {\n\tname: 'my object',\n\tdescription: 'it\\'
|
||
|
"readmeFilename": "Readme.md",
|
||
|
"repository": {
|
||
|
"type": "git",
|
||
|
"url": "git://github.com/flitbit/diff.git"
|
||
|
},
|
||
|
"scripts": {
|
||
|
"pretest": "jscs index.js test/ && jshint index.js test/",
|
||
|
"release": "uglifyjs index.js -o releases/deep-diff-$npm_package_version.min.js -r '$,require,exports,module,window,global' -m --comments '/^!/'",
|
||
|
"test": "mocha"
|
||
|
},
|
||
|
"version": "0.3.4"
|
||
|
}
|