@diffson/core 1.0.0 → 1.0.1
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/README.md +264 -0
- package/package.json +5 -1
- package/.turbo/turbo-build.log +0 -1
- package/.turbo/turbo-test.log +0 -96
- package/.turbo/turbo-typecheck.log +0 -2
- package/src/contract/constant/DiffConstants.ts +0 -10
- package/src/contract/constant/PresetName.ts +0 -6
- package/src/contract/constant/index.ts +0 -2
- package/src/contract/index.ts +0 -2
- package/src/contract/type/ArrayComparator.ts +0 -15
- package/src/contract/type/ComparatorOrchestrator.ts +0 -16
- package/src/contract/type/DiffService.ts +0 -31
- package/src/contract/type/JsonTypes.ts +0 -3
- package/src/contract/type/NullComparator.ts +0 -9
- package/src/contract/type/ObjectComparator.ts +0 -15
- package/src/contract/type/OtherComparator.ts +0 -14
- package/src/contract/type/PrimitiveComparator.ts +0 -13
- package/src/contract/type/Result.ts +0 -7
- package/src/contract/type/SingleNodeDifference.ts +0 -13
- package/src/contract/type/index.ts +0 -10
- package/src/index.ts +0 -17
- package/src/service/comparator/ComparatorOrchestrator.ts +0 -50
- package/src/service/comparator/array/AbstractArray.ts +0 -34
- package/src/service/comparator/array/SequentialArrayComparator.test.ts +0 -46
- package/src/service/comparator/array/SequentialArrayComparator.ts +0 -48
- package/src/service/comparator/array/SimilarArrayComparator.test.ts +0 -37
- package/src/service/comparator/array/SimilarArrayComparator.ts +0 -211
- package/src/service/comparator/array/index.ts +0 -3
- package/src/service/comparator/index.ts +0 -6
- package/src/service/comparator/nulls/DefaultNullComparator.test.ts +0 -38
- package/src/service/comparator/nulls/DefaultNullComparator.ts +0 -9
- package/src/service/comparator/nulls/index.ts +0 -1
- package/src/service/comparator/object/AbstractObject.ts +0 -102
- package/src/service/comparator/object/LeftJoinObjectComparator.test.ts +0 -71
- package/src/service/comparator/object/LeftJoinObjectComparator.ts +0 -18
- package/src/service/comparator/object/UnionKeyObjectComparator.test.ts +0 -20
- package/src/service/comparator/object/UnionKeyObjectComparator.ts +0 -19
- package/src/service/comparator/object/index.ts +0 -3
- package/src/service/comparator/other/DefaultOtherComparator.test.ts +0 -48
- package/src/service/comparator/other/DefaultOtherComparator.ts +0 -23
- package/src/service/comparator/other/index.ts +0 -1
- package/src/service/comparator/primitive/DefaultPrimitiveComparator.test.ts +0 -50
- package/src/service/comparator/primitive/DefaultPrimitiveComparator.ts +0 -27
- package/src/service/comparator/primitive/index.ts +0 -1
- package/src/service/diff/Diff.test.ts +0 -113
- package/src/service/diff/DiffContext.ts +0 -37
- package/src/service/diff/DiffService.test.ts +0 -292
- package/src/service/diff/DiffService.ts +0 -245
- package/src/service/diff/PathTracker.ts +0 -71
- package/src/service/diff/index.ts +0 -1
- package/src/service/index.ts +0 -2
- package/src/util/TypeGuards.test.ts +0 -90
- package/src/util/TypeGuards.ts +0 -33
- package/src/util/index.ts +0 -1
- package/tsconfig.json +0 -11
- package/tsconfig.tsbuildinfo +0 -1
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
import isJSON from "is-json";
|
|
2
|
-
import { Injector } from "@wendellhu/redi";
|
|
3
|
-
import {
|
|
4
|
-
type JsonValue,
|
|
5
|
-
Result,
|
|
6
|
-
SingleNodeDifference,
|
|
7
|
-
type IDiffService,
|
|
8
|
-
IComparatorOrchestrator,
|
|
9
|
-
IObjectComparator,
|
|
10
|
-
IArrayComparator,
|
|
11
|
-
IPrimitiveComparator,
|
|
12
|
-
INullComparator,
|
|
13
|
-
IOtherComparator,
|
|
14
|
-
type IComparatorOrchestrator as IComparatorOrchestratorType,
|
|
15
|
-
PresetName,
|
|
16
|
-
} from "#contract";
|
|
17
|
-
import { SPLIT_PATH, OBJECT_NULL, TYPE_MODIFY, TYPE_ADD, TYPE_DELETE } from "#contract";
|
|
18
|
-
import { DiffContext } from "./DiffContext";
|
|
19
|
-
import { PathTracker } from "./PathTracker";
|
|
20
|
-
import { ComparatorOrchestrator } from "../comparator/ComparatorOrchestrator";
|
|
21
|
-
import { UnionKeyObjectComparator } from "../comparator/object/UnionKeyObjectComparator";
|
|
22
|
-
import { LeftJoinObjectComparator } from "../comparator/object/LeftJoinObjectComparator";
|
|
23
|
-
import { SimilarArrayComparator } from "../comparator/array/SimilarArrayComparator";
|
|
24
|
-
import { SequentialArrayComparator } from "../comparator/array/SequentialArrayComparator";
|
|
25
|
-
import { DefaultPrimitiveComparator } from "../comparator/primitive/DefaultPrimitiveComparator";
|
|
26
|
-
import { DefaultNullComparator } from "../comparator/nulls/DefaultNullComparator";
|
|
27
|
-
import { DefaultOtherComparator } from "../comparator/other/DefaultOtherComparator";
|
|
28
|
-
|
|
29
|
-
export class DiffService implements IDiffService {
|
|
30
|
-
private config: {
|
|
31
|
-
objectComparator: new (orchestrator: IComparatorOrchestrator) => IObjectComparator;
|
|
32
|
-
arrayComparator: new (orchestrator: IComparatorOrchestrator) => IArrayComparator;
|
|
33
|
-
primitiveComparator: new () => IPrimitiveComparator;
|
|
34
|
-
nullComparator: new () => INullComparator;
|
|
35
|
-
otherComparator: new () => IOtherComparator;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
constructor(preset: PresetName = PresetName.FullSmart) {
|
|
39
|
-
this.config = {
|
|
40
|
-
objectComparator: UnionKeyObjectComparator,
|
|
41
|
-
arrayComparator: SimilarArrayComparator,
|
|
42
|
-
primitiveComparator: DefaultPrimitiveComparator,
|
|
43
|
-
nullComparator: DefaultNullComparator,
|
|
44
|
-
otherComparator: DefaultOtherComparator,
|
|
45
|
-
};
|
|
46
|
-
|
|
47
|
-
switch (preset) {
|
|
48
|
-
case PresetName.FullOrdered:
|
|
49
|
-
this.config.arrayComparator = SequentialArrayComparator;
|
|
50
|
-
break;
|
|
51
|
-
case PresetName.LeftSmart:
|
|
52
|
-
this.config.objectComparator = LeftJoinObjectComparator;
|
|
53
|
-
break;
|
|
54
|
-
case PresetName.LeftOrdered:
|
|
55
|
-
this.config.objectComparator = LeftJoinObjectComparator;
|
|
56
|
-
this.config.arrayComparator = SequentialArrayComparator;
|
|
57
|
-
break;
|
|
58
|
-
case PresetName.FullSmart:
|
|
59
|
-
default:
|
|
60
|
-
this.config.objectComparator = UnionKeyObjectComparator;
|
|
61
|
-
this.config.arrayComparator = SimilarArrayComparator;
|
|
62
|
-
break;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
withObjectComparator(cls: new (orchestrator: IComparatorOrchestrator) => IObjectComparator): this {
|
|
67
|
-
this.config.objectComparator = cls;
|
|
68
|
-
return this;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
withArrayComparator(cls: new (orchestrator: IComparatorOrchestrator) => IArrayComparator): this {
|
|
72
|
-
this.config.arrayComparator = cls;
|
|
73
|
-
return this;
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
withPrimitiveComparator(cls: new () => IPrimitiveComparator): this {
|
|
77
|
-
this.config.primitiveComparator = cls;
|
|
78
|
-
return this;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
withNullComparator(cls: new () => INullComparator): this {
|
|
82
|
-
this.config.nullComparator = cls;
|
|
83
|
-
return this;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
withOtherComparator(cls: new () => IOtherComparator): this {
|
|
87
|
-
this.config.otherComparator = cls;
|
|
88
|
-
return this;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
diffJson(leftJson: string, rightJson: string, options?: {
|
|
92
|
-
noisePath?: string[];
|
|
93
|
-
specialPath?: string[];
|
|
94
|
-
parseNestedJson?: boolean;
|
|
95
|
-
}): Result[] {
|
|
96
|
-
let left: JsonValue;
|
|
97
|
-
let right: JsonValue;
|
|
98
|
-
|
|
99
|
-
try {
|
|
100
|
-
left = JSON.parse(leftJson);
|
|
101
|
-
} catch (error) {
|
|
102
|
-
throw new Error(`Failed to parse left JSON string: ${error instanceof Error ? error.message : String(error)}`);
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
try {
|
|
106
|
-
right = JSON.parse(rightJson);
|
|
107
|
-
} catch (error) {
|
|
108
|
-
throw new Error(`Failed to parse right JSON string: ${error instanceof Error ? error.message : String(error)}`);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
// 将解析后的对象和选项传递给 diffElement
|
|
112
|
-
return this.diffElement(left, right, options);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
diffElement(
|
|
116
|
-
left: JsonValue,
|
|
117
|
-
right: JsonValue,
|
|
118
|
-
options?: {
|
|
119
|
-
noisePath?: string[];
|
|
120
|
-
specialPath?: string[];
|
|
121
|
-
parseNestedJson?: boolean;
|
|
122
|
-
}
|
|
123
|
-
): Result[] {
|
|
124
|
-
// 如果启用递归解析嵌套 JSON
|
|
125
|
-
if (options?.parseNestedJson) {
|
|
126
|
-
left = this.parseNestedJsonStrings(left);
|
|
127
|
-
right = this.parseNestedJsonStrings(right);
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
const orchestrator = this.getOrCreateOrchestrator();
|
|
131
|
-
const diffContext = this.compareInternal(left, right, orchestrator, options);
|
|
132
|
-
return this.constructResult(diffContext);
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
private getOrCreateOrchestrator(): IComparatorOrchestratorType {
|
|
136
|
-
const injector = new Injector([
|
|
137
|
-
[IComparatorOrchestrator, { useClass: ComparatorOrchestrator, lazy: true }],
|
|
138
|
-
[IObjectComparator, { useClass: this.config.objectComparator }],
|
|
139
|
-
[IArrayComparator, { useClass: this.config.arrayComparator }],
|
|
140
|
-
[IPrimitiveComparator, { useClass: this.config.primitiveComparator }],
|
|
141
|
-
[INullComparator, { useClass: this.config.nullComparator }],
|
|
142
|
-
[IOtherComparator, { useClass: this.config.otherComparator }],
|
|
143
|
-
]);
|
|
144
|
-
return injector.get(IComparatorOrchestrator);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
private constructResult(diffContext: DiffContext): Result[] {
|
|
148
|
-
const list: Result[] = [];
|
|
149
|
-
|
|
150
|
-
for (const resultModel of diffContext.getDiffResultModels()) {
|
|
151
|
-
const printModel = this.convert(resultModel);
|
|
152
|
-
const leftAndRightBothNull =
|
|
153
|
-
resultModel.left === OBJECT_NULL && resultModel.right === OBJECT_NULL;
|
|
154
|
-
|
|
155
|
-
if (leftAndRightBothNull) {
|
|
156
|
-
printModel.diffType = TYPE_MODIFY;
|
|
157
|
-
} else if (resultModel.left === OBJECT_NULL) {
|
|
158
|
-
printModel.diffType = TYPE_ADD;
|
|
159
|
-
printModel.leftPath = null;
|
|
160
|
-
} else if (resultModel.right === OBJECT_NULL) {
|
|
161
|
-
printModel.diffType = TYPE_DELETE;
|
|
162
|
-
printModel.rightPath = null;
|
|
163
|
-
} else {
|
|
164
|
-
printModel.diffType = TYPE_MODIFY;
|
|
165
|
-
}
|
|
166
|
-
list.push(printModel);
|
|
167
|
-
}
|
|
168
|
-
return list;
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
private convert(resultModel: SingleNodeDifference): Result {
|
|
172
|
-
const printModel = new Result();
|
|
173
|
-
printModel.left = resultModel.left;
|
|
174
|
-
printModel.right = resultModel.right;
|
|
175
|
-
printModel.leftPath = resultModel.leftPath;
|
|
176
|
-
printModel.rightPath = resultModel.rightPath;
|
|
177
|
-
return printModel;
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
private compareInternal(
|
|
181
|
-
left: JsonValue,
|
|
182
|
-
right: JsonValue,
|
|
183
|
-
orchestrator: IComparatorOrchestratorType,
|
|
184
|
-
options?: {
|
|
185
|
-
noisePath?: string[];
|
|
186
|
-
specialPath?: string[];
|
|
187
|
-
}
|
|
188
|
-
): DiffContext {
|
|
189
|
-
const pathTracker = new PathTracker(null, null);
|
|
190
|
-
|
|
191
|
-
if (options?.noisePath) {
|
|
192
|
-
pathTracker.setNoisePahList(this.splitPath(options.noisePath));
|
|
193
|
-
}
|
|
194
|
-
if (options?.specialPath) {
|
|
195
|
-
pathTracker.setSpecialPath(this.splitPath(options.specialPath));
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
return orchestrator.diffElement(left, right, pathTracker);
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
private splitPath(pathList: string[]): string[] {
|
|
202
|
-
const result: string[] = [];
|
|
203
|
-
for (const path of pathList) {
|
|
204
|
-
const parts = path.split(SPLIT_PATH);
|
|
205
|
-
result.push(parts.join("."));
|
|
206
|
-
}
|
|
207
|
-
return result;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
private parseNestedJsonStrings(value: JsonValue): JsonValue {
|
|
211
|
-
// 如果是字符串,尝试解析为 JSON
|
|
212
|
-
if (typeof value === "string") {
|
|
213
|
-
if (isJSON(value)) {
|
|
214
|
-
try {
|
|
215
|
-
const parsed = JSON.parse(value);
|
|
216
|
-
// 递归处理解析后的值
|
|
217
|
-
return this.parseNestedJsonStrings(parsed);
|
|
218
|
-
} catch {
|
|
219
|
-
// 如果解析失败,返回原字符串
|
|
220
|
-
return value;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
return value;
|
|
224
|
-
}
|
|
225
|
-
|
|
226
|
-
// 如果是数组,递归处理每个元素
|
|
227
|
-
if (Array.isArray(value)) {
|
|
228
|
-
return value.map(item => this.parseNestedJsonStrings(item));
|
|
229
|
-
}
|
|
230
|
-
|
|
231
|
-
// 如果是对象,递归处理每个属性值
|
|
232
|
-
if (typeof value === "object" && value !== null) {
|
|
233
|
-
const result: Record<string, JsonValue> = {};
|
|
234
|
-
for (const key in value) {
|
|
235
|
-
if (Object.prototype.hasOwnProperty.call(value, key)) {
|
|
236
|
-
result[key] = this.parseNestedJsonStrings(value[key]);
|
|
237
|
-
}
|
|
238
|
-
}
|
|
239
|
-
return result;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
// 其他类型(number, boolean, null)直接返回
|
|
243
|
-
return value;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
export class PathTracker {
|
|
2
|
-
private leftPath: string[];
|
|
3
|
-
private rightPath: string[];
|
|
4
|
-
private specialPath: string[] | null;
|
|
5
|
-
private noisePahList: string[] | null;
|
|
6
|
-
|
|
7
|
-
constructor(noisePahList: string[] | null = null, specialPath: string[] | null = null) {
|
|
8
|
-
this.leftPath = [];
|
|
9
|
-
this.rightPath = [];
|
|
10
|
-
this.noisePahList = noisePahList;
|
|
11
|
-
this.specialPath = specialPath;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
getNoisePahList(): string[] | null {
|
|
15
|
-
return this.noisePahList;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
setNoisePahList(noisePahList: string[]): void {
|
|
19
|
-
this.noisePahList = noisePahList;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
getSpecialPath(): string[] | null {
|
|
23
|
-
return this.specialPath;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
setSpecialPath(specialPath: string[]): void {
|
|
27
|
-
this.specialPath = specialPath;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
getLeftPath(): string[] {
|
|
31
|
-
return this.leftPath;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
setLeftPath(leftPath: string[]): void {
|
|
35
|
-
this.leftPath = leftPath;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
getRightPath(): string[] {
|
|
39
|
-
return this.rightPath;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
setRightPath(rightPath: string[]): void {
|
|
43
|
-
this.rightPath = rightPath;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
addAllpath(lastPath: string): void {
|
|
47
|
-
this.leftPath.push(lastPath);
|
|
48
|
-
this.rightPath.push(lastPath);
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
addLeftPath(lastPath: string): void {
|
|
52
|
-
this.leftPath.push(lastPath);
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
addRightPath(lastPath: string): void {
|
|
56
|
-
this.rightPath.push(lastPath);
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
removeAllLastPath(): void {
|
|
60
|
-
this.leftPath.pop();
|
|
61
|
-
this.rightPath.pop();
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
removeLastLeftPath(): void {
|
|
65
|
-
this.leftPath.pop();
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
removeLastRightPath(): void {
|
|
69
|
-
this.rightPath.pop();
|
|
70
|
-
}
|
|
71
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./DiffService";
|
package/src/service/index.ts
DELETED
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { describe, it, expect } from "bun:test";
|
|
2
|
-
import {
|
|
3
|
-
isJsonObject,
|
|
4
|
-
isJsonArray,
|
|
5
|
-
isJsonPrimitive,
|
|
6
|
-
isJsonNull,
|
|
7
|
-
jsonElement2Str,
|
|
8
|
-
} from "./TypeGuards";
|
|
9
|
-
|
|
10
|
-
describe("TypeGuards", () => {
|
|
11
|
-
describe("isJsonObject", () => {
|
|
12
|
-
it("should return true for objects", () => {
|
|
13
|
-
expect(isJsonObject({ a: 1 })).toBe(true);
|
|
14
|
-
expect(isJsonObject({})).toBe(true);
|
|
15
|
-
});
|
|
16
|
-
|
|
17
|
-
it("should return false for non-objects", () => {
|
|
18
|
-
expect(isJsonObject(null)).toBe(false);
|
|
19
|
-
expect(isJsonObject(undefined)).toBe(false);
|
|
20
|
-
expect(isJsonObject([1, 2])).toBe(false);
|
|
21
|
-
expect(isJsonObject("string")).toBe(false);
|
|
22
|
-
expect(isJsonObject(123)).toBe(false);
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
|
-
|
|
26
|
-
describe("isJsonArray", () => {
|
|
27
|
-
it("should return true for arrays", () => {
|
|
28
|
-
expect(isJsonArray([1, 2, 3])).toBe(true);
|
|
29
|
-
expect(isJsonArray([])).toBe(true);
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
it("should return false for non-arrays", () => {
|
|
33
|
-
expect(isJsonArray({ a: 1 })).toBe(false);
|
|
34
|
-
expect(isJsonArray(null)).toBe(false);
|
|
35
|
-
expect(isJsonArray("string")).toBe(false);
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
describe("isJsonPrimitive", () => {
|
|
40
|
-
it("should return true for primitives", () => {
|
|
41
|
-
expect(isJsonPrimitive("string")).toBe(true);
|
|
42
|
-
expect(isJsonPrimitive(123)).toBe(true);
|
|
43
|
-
expect(isJsonPrimitive(true)).toBe(true);
|
|
44
|
-
expect(isJsonPrimitive(false)).toBe(true);
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
it("should return false for non-primitives", () => {
|
|
48
|
-
expect(isJsonPrimitive(null)).toBe(false);
|
|
49
|
-
expect(isJsonPrimitive(undefined)).toBe(false);
|
|
50
|
-
expect(isJsonPrimitive({ a: 1 })).toBe(false);
|
|
51
|
-
expect(isJsonPrimitive([1, 2])).toBe(false);
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
describe("isJsonNull", () => {
|
|
56
|
-
it("should return true for null", () => {
|
|
57
|
-
expect(isJsonNull(null)).toBe(true);
|
|
58
|
-
});
|
|
59
|
-
|
|
60
|
-
it("should return false for non-null", () => {
|
|
61
|
-
expect(isJsonNull(undefined)).toBe(false);
|
|
62
|
-
expect(isJsonNull(0)).toBe(false);
|
|
63
|
-
expect(isJsonNull("")).toBe(false);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
describe("jsonElement2Str", () => {
|
|
68
|
-
it("should convert primitives to strings", () => {
|
|
69
|
-
expect(jsonElement2Str("hello")).toBe("hello");
|
|
70
|
-
expect(jsonElement2Str(123)).toBe("123");
|
|
71
|
-
expect(jsonElement2Str(true)).toBe("true");
|
|
72
|
-
});
|
|
73
|
-
|
|
74
|
-
it("should return null for undefined", () => {
|
|
75
|
-
expect(jsonElement2Str(undefined)).toBe(null);
|
|
76
|
-
});
|
|
77
|
-
|
|
78
|
-
it("should return 'null' for null", () => {
|
|
79
|
-
expect(jsonElement2Str(null)).toBe("null");
|
|
80
|
-
});
|
|
81
|
-
|
|
82
|
-
it("should return placeholder for objects", () => {
|
|
83
|
-
expect(jsonElement2Str({ a: 1 })).toBe("{省略对象内部字段}");
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
it("should return placeholder for arrays", () => {
|
|
87
|
-
expect(jsonElement2Str([1, 2, 3])).toBe("[省略数组内部元素]");
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
});
|
package/src/util/TypeGuards.ts
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import type { JsonValue, JsonObject, JsonArray } from "../contract/type";
|
|
2
|
-
|
|
3
|
-
export function isJsonObject(value: JsonValue | undefined): value is JsonObject {
|
|
4
|
-
return value !== null && value !== undefined && typeof value === "object" && !Array.isArray(value);
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
export function isJsonArray(value: JsonValue | undefined): value is JsonArray {
|
|
8
|
-
return Array.isArray(value);
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
export function isJsonPrimitive(value: JsonValue | undefined): value is string | number | boolean {
|
|
12
|
-
return typeof value === "string" || typeof value === "number" || typeof value === "boolean";
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export function isJsonNull(value: JsonValue | undefined): value is null {
|
|
16
|
-
return value === null;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
export function jsonElement2Str(element: JsonValue | undefined): string | null {
|
|
20
|
-
if (element === undefined) {
|
|
21
|
-
return null;
|
|
22
|
-
} else if (isJsonObject(element)) {
|
|
23
|
-
return "{省略对象内部字段}";
|
|
24
|
-
} else if (isJsonArray(element)) {
|
|
25
|
-
return "[省略数组内部元素]";
|
|
26
|
-
} else if (isJsonPrimitive(element)) {
|
|
27
|
-
return String(element);
|
|
28
|
-
} else if (isJsonNull(element)) {
|
|
29
|
-
return "null";
|
|
30
|
-
} else {
|
|
31
|
-
throw new Error("异常");
|
|
32
|
-
}
|
|
33
|
-
}
|
package/src/util/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./TypeGuards";
|
package/tsconfig.json
DELETED
package/tsconfig.tsbuildinfo
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"fileNames":["../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.date.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.array.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.date.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2020.number.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2021.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.array.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.error.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2022.regexp.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.array.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.collection.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2023.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.collection.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.object.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.regexp.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.es2024.string.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.array.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.collection.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.disposable.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.promise.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.decorators.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.iterator.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.float16.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.error.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.d.ts","../../node_modules/.bun/typescript@5.9.3/node_modules/typescript/lib/lib.decorators.legacy.d.ts","./src/contract/type/jsontypes.ts","./src/contract/type/result.ts","../../node_modules/.bun/@wendellhu+redi@1.1.0+83d5fd7b249dbeef/node_modules/@wendellhu/redi/dist/esm/index.d.ts","./src/contract/type/diffservice.ts","./src/contract/constant/diffconstants.ts","./src/contract/constant/presetname.ts","./src/contract/constant/index.ts","./src/contract/type/singlenodedifference.ts","./src/service/diff/diffcontext.ts","./src/service/diff/pathtracker.ts","./src/contract/type/arraycomparator.ts","./src/contract/type/comparatororchestrator.ts","./src/contract/type/objectcomparator.ts","./src/contract/type/primitivecomparator.ts","./src/contract/type/nullcomparator.ts","./src/contract/type/othercomparator.ts","./src/contract/type/index.ts","./src/contract/index.ts","./src/util/typeguards.ts","./src/util/index.ts","./src/service/comparator/comparatororchestrator.ts","./src/service/comparator/object/abstractobject.ts","./src/service/comparator/object/unionkeyobjectcomparator.ts","./src/service/comparator/object/leftjoinobjectcomparator.ts","./src/service/comparator/array/abstractarray.ts","./src/service/comparator/array/similararraycomparator.ts","./src/service/comparator/array/sequentialarraycomparator.ts","./src/service/comparator/primitive/defaultprimitivecomparator.ts","./src/service/comparator/nulls/defaultnullcomparator.ts","./src/service/comparator/other/defaultothercomparator.ts","./src/service/diff/diffservice.ts","./src/service/diff/index.ts","./src/service/comparator/array/index.ts","./src/service/comparator/object/index.ts","./src/service/comparator/primitive/index.ts","./src/service/comparator/nulls/index.ts","./src/service/comparator/other/index.ts","./src/service/comparator/index.ts","./src/service/index.ts","./src/index.ts","../../types/is-json.d.ts"],"fileIdsList":[[86,87],[88,98],[82,84,90,91],[82,84,90,91,92],[82,83,84],[82,83,85,89,92,93,94,95,96,97],[84,90,91],[82,83,85,87,88,120],[84,88,90,91,98],[106,107,108],[84,90,91,98,106],[84,90,91,98,101],[102,114,115,116,117,118],[90,91,98],[110],[103,104,105],[84,90,91,99,103],[84,90,91,98,103],[88,90,91,98,101],[111],[109],[98],[84,90,91,99,102,104,105,107,108,109,110,111,122],[112],[113,119],[100]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","impliedFormat":1},{"version":"feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","impliedFormat":1},{"version":"ee7bad0c15b58988daa84371e0b89d313b762ab83cb5b31b8a2d1162e8eb41c2","impliedFormat":1},{"version":"27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","impliedFormat":1},{"version":"8fd575e12870e9944c7e1d62e1f5a73fcf23dd8d3a321f2a2c74c20d022283fe","impliedFormat":1},{"version":"2ab096661c711e4a81cc464fa1e6feb929a54f5340b46b0a07ac6bbf857471f0","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6d7ae4d1f1f3772e2a3cde568ed08991a8ae34a080ff1151af28b7f798e22ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true,"impliedFormat":1},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true,"impliedFormat":1},{"version":"52ada8e0b6e0482b728070b7639ee42e83a9b1c22d205992756fe020fd9f4a47","affectsGlobalScope":true,"impliedFormat":1},{"version":"3bdefe1bfd4d6dee0e26f928f93ccc128f1b64d5d501ff4a8cf3c6371200e5e6","affectsGlobalScope":true,"impliedFormat":1},{"version":"59fb2c069260b4ba00b5643b907ef5d5341b167e7d1dbf58dfd895658bda2867","affectsGlobalScope":true,"impliedFormat":1},{"version":"639e512c0dfc3fad96a84caad71b8834d66329a1f28dc95e3946c9b58176c73a","affectsGlobalScope":true,"impliedFormat":1},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true,"impliedFormat":1},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true,"impliedFormat":1},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true,"impliedFormat":1},{"version":"959d36cddf5e7d572a65045b876f2956c973a586da58e5d26cde519184fd9b8a","affectsGlobalScope":true,"impliedFormat":1},{"version":"965f36eae237dd74e6cca203a43e9ca801ce38824ead814728a2807b1910117d","affectsGlobalScope":true,"impliedFormat":1},{"version":"3925a6c820dcb1a06506c90b1577db1fdbf7705d65b62b99dce4be75c637e26b","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a3d63ef2b853447ec4f749d3f368ce642264246e02911fcb1590d8c161b8005","affectsGlobalScope":true,"impliedFormat":1},{"version":"8cdf8847677ac7d20486e54dd3fcf09eda95812ac8ace44b4418da1bbbab6eb8","affectsGlobalScope":true,"impliedFormat":1},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true,"impliedFormat":1},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true,"impliedFormat":1},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"df83c2a6c73228b625b0beb6669c7ee2a09c914637e2d35170723ad49c0f5cd4","affectsGlobalScope":true,"impliedFormat":1},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true,"impliedFormat":1},{"version":"87dc0f382502f5bbce5129bdc0aea21e19a3abbc19259e0b43ae038a9fc4e326","affectsGlobalScope":true,"impliedFormat":1},{"version":"b1cb28af0c891c8c96b2d6b7be76bd394fddcfdb4709a20ba05a7c1605eea0f9","affectsGlobalScope":true,"impliedFormat":1},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true,"impliedFormat":1},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ece9f17b3866cc077099c73f4983bddbcb1dc7ddb943227f1ec070f529dedd1","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true,"impliedFormat":1},{"version":"1c9319a09485199c1f7b0498f2988d6d2249793ef67edda49d1e584746be9032","affectsGlobalScope":true,"impliedFormat":1},{"version":"e3a2a0cee0f03ffdde24d89660eba2685bfbdeae955a6c67e8c4c9fd28928eeb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true,"impliedFormat":1},{"version":"51ad4c928303041605b4d7ae32e0c1ee387d43a24cd6f1ebf4a2699e1076d4fa","affectsGlobalScope":true,"impliedFormat":1},{"version":"60037901da1a425516449b9a20073aa03386cce92f7a1fd902d7602be3a7c2e9","affectsGlobalScope":true,"impliedFormat":1},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true,"impliedFormat":1},{"version":"22adec94ef7047a6c9d1af3cb96be87a335908bf9ef386ae9fd50eeb37f44c47","affectsGlobalScope":true,"impliedFormat":1},{"version":"196cb558a13d4533a5163286f30b0509ce0210e4b316c56c38d4c0fd2fb38405","affectsGlobalScope":true,"impliedFormat":1},{"version":"73f78680d4c08509933daf80947902f6ff41b6230f94dd002ae372620adb0f60","affectsGlobalScope":true,"impliedFormat":1},{"version":"c5239f5c01bcfa9cd32f37c496cf19c61d69d37e48be9de612b541aac915805b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"05868155d82f8529c519efaf2ad8470a30cb1d98282d12081c1ac8ceadd25dfe","signature":"52ce6e207034dccec85d7adb1db89923220269ddc3ce0e4f894560b0a8671cf4"},{"version":"09ecce4c203d4cff42a84ce595da8b71fa9aa9f206eb1fc455527938f1e44ed8","signature":"1bf7822d7a61a9a8f620f397d5b2e10c130bb89d4df508aaa64778a1662ba1d0"},{"version":"384d40ed49f8d7183e208d680b690d1d4c9c3dd00cbda3c1155185bc631d11e4","impliedFormat":1},{"version":"e52bf015781eedac3805ec38d61d1197fc2e7e49cb202fb9b2ad9d69290c9c53","signature":"cbd85ece2c79dac17ea2f21b26e0b9cbf84f9e32d408083b3e74f0ccfe12ebed"},{"version":"325896c51696ce862d43fbab32ffbbcd61476503a9b95ee57d38af67ec289690","signature":"d23526754bedacc7fdecb73174edb423b14b57330a036ecf0d059cc49df71831"},{"version":"9a9264077222f1260d43b281b780aa5a8dcba5c655347f6ac42efcd95c221b56","signature":"a835f263690070e1414cb75c71db5c48e610d6bcaeaeb6482f9280bab9843160"},"24786f51c19e39ff58c29a69bae3413a38f6bad7f6b493f46c239a4e55517e29",{"version":"129e58557eb9d34f8ab656932c7c7c847afffb9c832f8697246438078f19ba04","signature":"2aed533b3682421fdac527e0b4abed2bab227a2a89d8ec5e3f1dbe7081115959"},{"version":"e684aeaa13a141a3466b37d7fda311198c80d230911595b57e2c96874220f03b","signature":"567d052bd67bc3bdc1f9526e5ba1f236a079dfac37d239e12cb82f83ad5040c9"},{"version":"65df8de04bc10a2120561ba735216a0f7ca648f5bba13a467070cd483b683429","signature":"abc473f489736f9d2e88fe26932e42c6e7c1c8193bf5322b3ee14fe8d9c709ad"},{"version":"388e54bd0c60e277b7c2f6e43a4d389a57ca320b28c36f727624e54ba0facc0b","signature":"810e5e2472109360a7a06881ba7f107b3c725d80d279e4539de6266c9123d118"},{"version":"f714216bbb76087cb5f4b6064c8f7050e0c8db1e0a007fcdb85d6330de73d247","signature":"7bce66585323ffc2d242989fb42a20e01474d314241f4af28f30484eacc44b68"},{"version":"e5322aa7d0d47cef9ae16e2a7dc68b117efe545c90c1055d91a554eae6351a64","signature":"9ab7fce526e2d9e0d3835db2de4ebb40c9557c57fa2871379a9d755242570170"},{"version":"88763db3a6fb9fff28b64a93ca947a6330988b77a344f90fc18a181eacaf25d8","signature":"12ab7963e353d3d719e24a3509e7c9753e749ef872f4fcacd877c7a1d02fd006"},{"version":"37fb766d1221b506aea79da088d57b791558eb95f1e24c7ca1abc377a3907277","signature":"5708c346401aae597f8e290dca0f48a662e0364828a5bd28a8bcdaa2fe6f1a1d"},{"version":"4314cc7fe0f177f348f0974a4a230ccbce1ef6af960e4ed3f8d806d8d6f0a5a9","signature":"26d652cd409d59133414e0fe3dc1753081bb00c06658f2dd368894799f7ba5e8"},"83e5de515da5b4df29e7d0d737cd63ffbc8444860cc635f0f819971b57f990f2","d3b04ca3e1a7fe349c46c54921dfd58b0c1725c72b87ea3a5f8ca681d8673415",{"version":"9b38c03bb51816476512d8169e70d20190eaac9ad819a44f056b4aa27b826dc9","signature":"bf7e3c7720292806e8285328ba69bfa268c4231f894ef1093b193cf15524847f"},"6717170ba746d282e6e56c694bdf4f22aa1e7c93d49a214678b1eea509b6fc9e",{"version":"0a3a90075d5cb6f59ec3c783b6961984a5a84fe3d2c9f17c54b98e9b97891c16","signature":"d7f3675bbb519bf61a3385ff013567abe574700764b468be4f8d3437b1ca73bf"},{"version":"ea9c954189f5de9b4c36118fb591c2a3440b9cd488454c687d2494dc70e8c07d","signature":"0c61396477442814cd1ec8fa44f44e926f4cf05cf1bafbbb1590c83b0f0849ad"},{"version":"e475acaffa8c9743ebbe48aa6a46f2c69fb00702b7b53918d08771850ddebf44","signature":"9a1bdca20d6e2fae16878888ce18774f6824e2a5dd18565a436f5786be43c14a"},{"version":"1e49e9ae6928ac3786de89ea57772fba0ea6b5c60120f7251d0ae58ae293a125","signature":"6a5f117d8976afb6c2975d9dd446e6b5e4709934c9e9f855e19b29ad389247c8"},{"version":"09e5a6f3078eba59ff75173fceddf0a03ffec24c3394c15fba7ff706e093041b","signature":"542c45e2048dd22fc42c78f6e035febf497215d5dfc35533b9ac3d4507116cbe"},{"version":"106de1772d91ed25d071dea6aec3867ca5e9daa6432ef1ec0d96276cb65a8c8c","signature":"62b87795d87d25848c1ce1942a386bb3b8860643e52f8e0a86f9d6130e63fc72"},{"version":"bb4de1d681b2603a3103a1191a995e59cbab243e3eca6a9f102c6ec2fa99b785","signature":"2b602fdae0cdb056dfb78f5edd0847a5c9d5278dacaa7688882878e998584e02"},{"version":"718d10301f03d036609dafdecd578af23e3993696aa7864251adc7312ba31bcb","signature":"1def836a6ff36cc99edb408b17679db461fafc7867fc00e964dd3a0161bd5546"},{"version":"c6ca4102a48c1bcf5f275dfd4bc961b753ef0cac5712250dbda7dd5cd4593017","signature":"1ece9cd987a77ee3f12da98729031c6cf2a45d08cdd79beb075f0ccf01507a34"},{"version":"9de4c84f977c8c91c1816e97c1baab8659d9780de24fb67b94a55ccb2befab17","signature":"808bce516779f97c5d64cac223a07566f40c10be18bdeba2fb0758a1c7f0fb9b"},{"version":"6ee3ca2d91bcaf414b7f5109ae6b14d67b102a63119e0ab0d1ee9b21b77ca181","signature":"afd34e5173d06a2b96dfe778d176774283ec3919de93bc836e5b2556aae48f81"},"4e01673ccddfa9b3fafc4f3dfd8d8b435243151c8450ee8fa33cef9e6f882e94","2b9c367c71ee9b9735e764ff78447864649eaa5fec9444fc299b09ea87576566","380e5ae0586b32144bf3dadbd2569de783d43712c1a308f0bfdbdd46e97c63e1","b4bbfe596cd14829305006810302f71e29be1100e4cf659df8f78490e6a7cb27","ebd6532e44d7819126d8975f901883d7e96084b59fb479fcbe7481d3d903828d","5af7929d802d4915f26c739c7b97b1cb4e5b36f0b3a92df3b01156a3db2e5e9d","ad316fa8e99f6676727a5dce2532d79b1e160b6ee1cfce9bfcbf00345729b2d1","8e35495b7728cd4a73686a20f52bf60d95cd47210c75657d5415c826b3e265ac",{"version":"c240003e2a4d26fc0d419cded0c4f6de27feb7e5a25186983ec32210588f5be2","signature":"e379169bc0ef7de50173581b30d79bd7e4360a45a3c9486c9587a04a19f2cbaf"},"49ac771e2d6c2eb6f55c25da3aa453e20aee0009ceaa0e71be5a3ccddf80d03e"],"root":[82,83,[85,121]],"options":{"composite":true,"declaration":true,"declarationMap":true,"esModuleInterop":true,"experimentalDecorators":true,"module":99,"outDir":"./dist","rootDir":"./src","skipLibCheck":true,"sourceMap":true,"strict":true,"target":99,"verbatimModuleSyntax":true},"referencedMap":[[88,1],[99,2],[92,3],[93,4],[85,5],[98,6],[96,7],[94,3],[97,3],[95,7],[121,8],[106,9],[114,10],[108,11],[107,11],[102,12],[119,13],[110,14],[117,15],[103,9],[115,16],[105,17],[104,18],[111,19],[118,20],[109,19],[116,21],[90,22],[112,23],[113,24],[120,25],[101,26],[100,22]],"latestChangedDtsFile":"./dist/service/diff/DiffService.d.ts","version":"5.9.3"}
|