objdiff-wasm 3.0.0-beta.3 → 3.0.0-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/config-schema.json
CHANGED
|
@@ -104,8 +104,12 @@ export interface ContextItemSeparator {
|
|
|
104
104
|
* ## `"emphasized"`
|
|
105
105
|
*
|
|
106
106
|
* ## `"special"`
|
|
107
|
+
*
|
|
108
|
+
* ## `"delete"`
|
|
109
|
+
*
|
|
110
|
+
* ## `"insert"`
|
|
107
111
|
*/
|
|
108
|
-
export type HoverItemColor = 'normal' | 'emphasized' | 'special';
|
|
112
|
+
export type HoverItemColor = 'normal' | 'emphasized' | 'special' | 'delete' | 'insert';
|
|
109
113
|
export interface HoverItemText {
|
|
110
114
|
label: string,
|
|
111
115
|
value: string,
|
package/dist/objdiff.core.wasm
CHANGED
|
Binary file
|
package/dist/objdiff.js
CHANGED
|
@@ -345,6 +345,14 @@ Object$1.parse = function(arg0, arg1) {
|
|
|
345
345
|
if ('object' == typeof retVal && 'err' === retVal.tag) throw new ComponentError(retVal.val);
|
|
346
346
|
return retVal.val;
|
|
347
347
|
};
|
|
348
|
+
let diffMethodObjectHash;
|
|
349
|
+
Object$1.prototype.hash = function() {
|
|
350
|
+
var handle1 = this[symbolRscHandle];
|
|
351
|
+
if (!handle1 || (handleTable1[(handle1 << 1) + 1] & T_FLAG) === 0) throw new TypeError('Resource error: Not a valid "Object" resource.');
|
|
352
|
+
var handle0 = handleTable1[(handle1 << 1) + 1] & ~T_FLAG;
|
|
353
|
+
const ret = diffMethodObjectHash(handle0);
|
|
354
|
+
return BigInt.asUintN(64, ret);
|
|
355
|
+
};
|
|
348
356
|
let diffMethodObjectDiffFindSymbol;
|
|
349
357
|
class ObjectDiff {
|
|
350
358
|
constructor(){
|
|
@@ -1043,6 +1051,12 @@ function symbolHover(arg0, arg1) {
|
|
|
1043
1051
|
case 2:
|
|
1044
1052
|
enum5 = 'special';
|
|
1045
1053
|
break;
|
|
1054
|
+
case 3:
|
|
1055
|
+
enum5 = 'delete';
|
|
1056
|
+
break;
|
|
1057
|
+
case 4:
|
|
1058
|
+
enum5 = 'insert';
|
|
1059
|
+
break;
|
|
1046
1060
|
default:
|
|
1047
1061
|
throw new TypeError('invalid discriminant specified for HoverItemColor');
|
|
1048
1062
|
}
|
|
@@ -1215,6 +1229,12 @@ function instructionHover(arg0, arg1, arg2, arg3) {
|
|
|
1215
1229
|
case 2:
|
|
1216
1230
|
enum7 = 'special';
|
|
1217
1231
|
break;
|
|
1232
|
+
case 3:
|
|
1233
|
+
enum7 = 'delete';
|
|
1234
|
+
break;
|
|
1235
|
+
case 4:
|
|
1236
|
+
enum7 = 'insert';
|
|
1237
|
+
break;
|
|
1218
1238
|
default:
|
|
1219
1239
|
throw new TypeError('invalid discriminant specified for HoverItemColor');
|
|
1220
1240
|
}
|
|
@@ -1303,6 +1323,7 @@ const $init = (()=>{
|
|
|
1303
1323
|
diffMethodDiffConfigSetProperty = exports1['objdiff:core/diff#[method]diff-config.set-property'];
|
|
1304
1324
|
diffMethodDiffConfigGetProperty = exports1['objdiff:core/diff#[method]diff-config.get-property'];
|
|
1305
1325
|
diffStaticObjectParse = exports1['objdiff:core/diff#[static]object.parse'];
|
|
1326
|
+
diffMethodObjectHash = exports1['objdiff:core/diff#[method]object.hash'];
|
|
1306
1327
|
diffMethodObjectDiffFindSymbol = exports1['objdiff:core/diff#[method]object-diff.find-symbol'];
|
|
1307
1328
|
diffRunDiff = exports1['objdiff:core/diff#run-diff'];
|
|
1308
1329
|
displayDisplaySections = exports1['objdiff:core/display#display-sections'];
|