mirror of
https://github.com/peter-tanner/spacex-cli.git
synced 2024-11-30 11:00:15 +08:00
v1.0.1 - Fix bug with diff where undefined cells would cause an error.
This commit is contained in:
parent
f48cc8ec23
commit
75af4edf8a
|
@ -43,4 +43,11 @@ View raw response\
|
||||||
|
|
||||||
View differences in data (You'll be notified as well when the data changes)\
|
View differences in data (You'll be notified as well when the data changes)\
|
||||||
You can also view the differences (which includes data not in the table) in JSON form.\
|
You can also view the differences (which includes data not in the table) in JSON form.\
|
||||||
![Diff table](./preview-images/diff-table.png)
|
![Diff table](./preview-images/diff-table.png)
|
||||||
|
|
||||||
|
## Changelog
|
||||||
|
---
|
||||||
|
| Date | Version | Changes |
|
||||||
|
| --- | --- | --- |
|
||||||
|
| 2021-01-08 | 1.0.0 | Initial release. |
|
||||||
|
| 2021-02-07 | 1.0.1 | Fix bug with diff where undefined cells would cause an error. |
|
2
package-lock.json
generated
2
package-lock.json
generated
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "spacex-cli",
|
"name": "spacex-cli",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"lockfileVersion": 1,
|
"lockfileVersion": 1,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "spacex-cli",
|
"name": "spacex-cli",
|
||||||
"version": "1.0.0",
|
"version": "1.0.1",
|
||||||
"description": "SpaceX upcoming launch tracker",
|
"description": "SpaceX upcoming launch tracker",
|
||||||
"main": "spacex-cli.js",
|
"main": "spacex-cli.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -79,8 +79,8 @@ this.diffTable = ((A,B) => {
|
||||||
var row = [[''],[''],Array(B[i].length).fill('')];
|
var row = [[''],[''],Array(B[i].length).fill('')];
|
||||||
var mod = false;
|
var mod = false;
|
||||||
for ( var j = 0; j < B[i].length; j++ ) {
|
for ( var j = 0; j < B[i].length; j++ ) {
|
||||||
var a = A[i][j];
|
var a = A[i] ? (A[i][j] ? A[i][j] : "<NULL>") : "<NULL>";
|
||||||
var b = B[i][j];
|
var b = B[i] ? (B[i][j] ? B[i][j] : "<NULL>") : "<NULL>";
|
||||||
if (a !== b) {
|
if (a !== b) {
|
||||||
a = COLOR.DANGER(a);
|
a = COLOR.DANGER(a);
|
||||||
b = COLOR.SUCCESS(b);
|
b = COLOR.SUCCESS(b);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user