-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* update jsondiffpatch to 0.3.11 (https://www.npmjs.com/package/jsondiffpatch) * Allow object comparison cross the tabs #2 * comparing with an empty object #3 * Reinject console.diff api on host page reload #4
- Loading branch information
Showing
30 changed files
with
535 additions
and
1,736 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,4 +60,5 @@ typings/ | |
# os | ||
.DS_Store | ||
|
||
*.zip | ||
*.zip | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,36 @@ | ||
 | ||
 [available at chrome web-store](https://chrome.google.com/webstore/detail/jsdiff-devtool/iefeamoljhdcpigpnpggeiiabpnpgonb) | ||
--- | ||
Chrome devtools extension | ||
intended to display result of in-memory object comparisons with | ||
the help of dedicated commands invoked via console. | ||
Chrome devtools extension intended to display result of deep in-memory object | ||
comparisons with the help of dedicated console commands. | ||
|
||
[find at chrome web-store](https://chrome.google.com/webstore/detail/jsdiff-devtool/iefeamoljhdcpigpnpggeiiabpnpgonb) | ||
|
||
Example | ||
=== | ||
### API | ||
```javascript | ||
console.diff(left, right); | ||
console.diffLeft(left); | ||
console.diffRight(right); | ||
console.diffPush(next); // private case of console.diff with single argument | ||
console.diff(left, right); // compare left and right | ||
console.diff(next); // shorthand of diffPush while single argumented | ||
console.diffLeft(left); // update object on the left side only | ||
console.diffRight(right); // update object on the right side only | ||
console.diffPush(next); // shifts sides, right becomes left, next becomes right | ||
``` | ||
 | ||
|
||
Usage basics | ||
=== | ||
Left side for old state, right side for new. | ||
To track changes of the same object in timed manner you can push it with `diffPush` command, | ||
that will shift objects from right to left, showing differences with previous push state. | ||
|
||
Based on | ||
=== | ||
### Usage basics | ||
Historicly, left side represents the old state and right side the new state. | ||
Things that are present on the left side but missing on the right side are colour-coded as red (old). | ||
Things that are missing on the left side but present on the right side are colour-coded as green (new). | ||
To track changes of the same variable in timed manner you can push it with `diffPush` command, | ||
that will shift objects from right to left, showing differences with previous push state. | ||
You can compare objects from different tabs (sites). | ||
|
||
|
||
### Screenshot | ||
 | ||
|
||
|
||
### Gotcha | ||
Comparred objects shouldn't contain functions or self-recurrent references, like DOM elements or view instances have. | ||
|
||
|
||
### Based on | ||
- [jsondiffpatch](https://github.com/benjamine/jsondiffpatch) by Benjamín Eidelman | ||
- [vuejs](https://github.com/vuejs) by Evan You |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"name": "jsdiff", | ||
"version": "1.1.0", | ||
"description": " --- Chrome devtools extension intended to display result of in-memory object comparisons with the help of dedicated commands invoked via console.", | ||
"private": true, | ||
"directories": { | ||
"doc": "doc" | ||
}, | ||
"scripts": { | ||
"test": "echo \"no test\" && exit 1", | ||
"dev": "webpack --progress --watch", | ||
"prod": "webpack --progress -p" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/zendive/jsdiff.git" | ||
}, | ||
"keywords": [ | ||
"devtools", | ||
"chrome", | ||
"extension" | ||
], | ||
"author": "Block Alexander", | ||
"license": "proprietary", | ||
"bugs": { | ||
"url": "https://github.com/zendive/jsdiff/issues" | ||
}, | ||
"homepage": "https://github.com/zendive/jsdiff#readme", | ||
"devDependencies": { | ||
"clean-webpack-plugin": "~1.0.1", | ||
"css-loader": "~2.1.0", | ||
"file-loader": "^3.0.1", | ||
"node-sass": "~4.11.0", | ||
"sass-loader": "~7.1.0", | ||
"style-loader": "~0.23.1", | ||
"vue-loader": "~15.6.2", | ||
"vue-template-compiler": "~2.6.6", | ||
"webpack": "~4.29.0", | ||
"webpack-cli": "~3.2.1" | ||
}, | ||
"dependencies": { | ||
"jsondiffpatch": "~0.3.11", | ||
"moment": "~2.24.0", | ||
"vue": "~2.6.6" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.