Skip to content

Commit ff88d30

Browse files
committed
Tidied up CBOR operations
1 parent 88e3c2c commit ff88d30

File tree

4 files changed

+8
-11
lines changed

4 files changed

+8
-11
lines changed

Diff for: src/core/operations/CBORDecode.mjs

+4-5
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ class CBORDecode extends Operation {
1919
super();
2020

2121
this.name = "CBOR Decode";
22-
this.module = "Default";
23-
this.description = "Decode Concise Binary Object Representation (CBOR) data format (RFC7049) to JSON.";
24-
this.infoURL = "https://cbor.io";
22+
this.module = "Serialise";
23+
this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949.";
24+
this.infoURL = "https://wikipedia.org/wiki/CBOR";
2525
this.inputType = "ArrayBuffer";
2626
this.outputType = "JSON";
27-
this.args = [
28-
];
27+
this.args = [];
2928
}
3029

3130
/**

Diff for: src/core/operations/CBOREncode.mjs

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ class CBOREncode extends Operation {
1919
super();
2020

2121
this.name = "CBOR Encode";
22-
this.module = "Default";
23-
this.description = "2";
24-
this.infoURL = "https://cbor.io";
22+
this.module = "Serialise";
23+
this.description = "Concise Binary Object Representation (CBOR) is a binary data serialization format loosely based on JSON. Like JSON it allows the transmission of data objects that contain name–value pairs, but in a more concise manner. This increases processing and transfer speeds at the cost of human readability. It is defined in IETF RFC 8949.";
24+
this.infoURL = "https://wikipedia.org/wiki/CBOR";
2525
this.inputType = "JSON";
2626
this.outputType = "ArrayBuffer";
2727
this.args = [];

Diff for: tests/operations/tests/CBORDecode.mjs

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
/**
2-
* From Hex Tests.
2+
* CBOR Decode Tests
33
*
44
* @author Danh4 [[email protected]]
5-
*
65
* @copyright Crown Copyright 2019
76
* @license Apache-2.0
87
*/

Diff for: tests/operations/tests/CBOREncode.mjs

-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
* CBOR Encode Tests.
33
*
44
* @author Danh4 [[email protected]]
5-
*
65
* @copyright Crown Copyright 2019
76
* @license Apache-2.0
87
*/

0 commit comments

Comments
 (0)