ngx-deep-equals-pure 1.0.0 → 2.0.0
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 +321 -320
- package/esm2022/lib/ngx-deep-equals-pure.module.mjs +18 -18
- package/esm2022/lib/ngx-deep-equals-pure.service.mjs +177 -177
- package/esm2022/ngx-deep-equals-pure.mjs +4 -4
- package/esm2022/public-api.mjs +6 -6
- package/fesm2022/ngx-deep-equals-pure.mjs +179 -203
- package/fesm2022/ngx-deep-equals-pure.mjs.map +7 -1
- package/index.d.ts +5 -5
- package/lib/ngx-deep-equals-pure.module.d.ts +6 -6
- package/lib/ngx-deep-equals-pure.service.d.ts +4 -4
- package/package.json +3 -3
- package/public-api.d.ts +2 -2
|
@@ -1,205 +1,181 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
// lib/ngx-deep-equals-pure.service.mjs
|
|
2
|
+
var NgxDeepEqualsPureService = class {
|
|
3
|
+
constructor() {
|
|
4
|
+
}
|
|
5
|
+
deepEquals(firstObject, secondObject) {
|
|
6
|
+
if (firstObject === null && secondObject !== null) {
|
|
7
|
+
return false;
|
|
8
|
+
} else if (secondObject === null && firstObject !== null) {
|
|
9
|
+
return false;
|
|
10
|
+
} else if (Array.isArray(firstObject) === true) {
|
|
11
|
+
if (Array.isArray(secondObject) === false) {
|
|
12
|
+
return false;
|
|
13
|
+
} else if (firstObject.length !== secondObject.length) {
|
|
14
|
+
return false;
|
|
15
|
+
} else {
|
|
16
|
+
const firstArrays = /* @__PURE__ */ new Set();
|
|
17
|
+
const firstObjects = /* @__PURE__ */ new Set();
|
|
18
|
+
const firstValues = /* @__PURE__ */ new Set();
|
|
19
|
+
const firstFunctions = /* @__PURE__ */ new Set();
|
|
20
|
+
for (const value of firstObject) {
|
|
21
|
+
if (Array.isArray(value) === true) {
|
|
22
|
+
firstArrays.add(value);
|
|
23
|
+
} else if (typeof value === "object") {
|
|
24
|
+
firstObjects.add(value);
|
|
25
|
+
} else if (typeof value === "function") {
|
|
26
|
+
firstFunctions.add(JSON.stringify("" + value));
|
|
27
|
+
} else {
|
|
28
|
+
firstValues.add(value);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
const secondArrays = /* @__PURE__ */ new Set();
|
|
32
|
+
const secondObjects = /* @__PURE__ */ new Set();
|
|
33
|
+
const secondValues = /* @__PURE__ */ new Set();
|
|
34
|
+
const secondFunctions = /* @__PURE__ */ new Set();
|
|
35
|
+
for (const value of secondObject) {
|
|
36
|
+
if (Array.isArray(value) === true) {
|
|
37
|
+
secondArrays.add(value);
|
|
38
|
+
} else if (typeof value === "object") {
|
|
39
|
+
secondObjects.add(value);
|
|
40
|
+
} else if (typeof value === "function") {
|
|
41
|
+
secondFunctions.add(JSON.stringify("" + value));
|
|
42
|
+
} else {
|
|
43
|
+
secondValues.add(value);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
if (firstValues.size !== secondValues.size) {
|
|
47
|
+
return false;
|
|
48
|
+
} else {
|
|
49
|
+
let match = true;
|
|
50
|
+
for (const value of firstValues) {
|
|
51
|
+
if (secondValues.has(value) === false) {
|
|
52
|
+
match = false;
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
if (match === false) {
|
|
57
|
+
return false;
|
|
58
|
+
} else if (firstObjects.size === secondObjects.size) {
|
|
59
|
+
match = true;
|
|
60
|
+
for (const value of firstObjects) {
|
|
61
|
+
let hasMatch = false;
|
|
62
|
+
for (const secondValue of secondObjects) {
|
|
63
|
+
if (this.deepEquals(value, secondValue) === true) {
|
|
64
|
+
hasMatch = true;
|
|
65
|
+
break;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
if (hasMatch === false) {
|
|
69
|
+
match = false;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
if (match === false) {
|
|
74
|
+
return false;
|
|
75
|
+
} else if (firstArrays.size === secondArrays.size) {
|
|
76
|
+
match = true;
|
|
77
|
+
for (const value of firstArrays) {
|
|
78
|
+
let hasMatch = false;
|
|
79
|
+
for (const secondValue of secondArrays) {
|
|
80
|
+
if (this.deepEquals(value, secondValue) === true) {
|
|
81
|
+
hasMatch = true;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
if (hasMatch === false) {
|
|
86
|
+
match = false;
|
|
87
|
+
break;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
if (match === false) {
|
|
91
|
+
return false;
|
|
92
|
+
} else if (firstFunctions.size === secondFunctions.size) {
|
|
93
|
+
match = true;
|
|
94
|
+
for (const value of firstFunctions) {
|
|
95
|
+
if (secondFunctions.has(value) === false) {
|
|
96
|
+
match = false;
|
|
97
|
+
break;
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
if (match === false) {
|
|
101
|
+
return false;
|
|
102
|
+
} else {
|
|
103
|
+
return true;
|
|
104
|
+
}
|
|
105
|
+
} else {
|
|
106
|
+
return false;
|
|
107
|
+
}
|
|
108
|
+
} else {
|
|
109
|
+
return false;
|
|
110
|
+
}
|
|
111
|
+
} else {
|
|
112
|
+
return false;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
} else if (typeof firstObject === "object" && firstObject !== null) {
|
|
117
|
+
if (typeof secondObject !== "object") {
|
|
118
|
+
return false;
|
|
119
|
+
} else {
|
|
120
|
+
let match = true;
|
|
121
|
+
if (Object.keys(firstObject).length === Object.keys(secondObject).length) {
|
|
122
|
+
for (const [key, value] of Object.entries(firstObject)) {
|
|
123
|
+
const secondValue = secondObject[key];
|
|
124
|
+
match = this.deepEquals(value, secondValue);
|
|
125
|
+
if (match === false) {
|
|
126
|
+
break;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
} else {
|
|
130
|
+
match = false;
|
|
131
|
+
}
|
|
132
|
+
return match;
|
|
133
|
+
}
|
|
134
|
+
} else {
|
|
135
|
+
if (Array.isArray(secondObject) === true) {
|
|
136
|
+
return false;
|
|
137
|
+
} else if (typeof secondObject === "object" && secondObject !== null) {
|
|
138
|
+
return false;
|
|
139
|
+
} else {
|
|
140
|
+
if (typeof firstObject === "function") {
|
|
141
|
+
if (typeof secondObject === "function") {
|
|
142
|
+
return JSON.stringify("" + firstObject) === JSON.stringify("" + secondObject);
|
|
143
|
+
} else {
|
|
144
|
+
return false;
|
|
145
|
+
}
|
|
146
|
+
} else {
|
|
147
|
+
return JSON.stringify(firstObject) === JSON.stringify(secondObject);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
};
|
|
3
153
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
else if (typeof value === 'function') {
|
|
33
|
-
firstFunctions.add(JSON.stringify('' + value));
|
|
34
|
-
}
|
|
35
|
-
else {
|
|
36
|
-
firstValues.add(value);
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
const secondArrays = new Set();
|
|
40
|
-
const secondObjects = new Set();
|
|
41
|
-
const secondValues = new Set();
|
|
42
|
-
const secondFunctions = new Set();
|
|
43
|
-
for (const value of secondObject) {
|
|
44
|
-
if (Array.isArray(value) === true) {
|
|
45
|
-
secondArrays.add(value);
|
|
46
|
-
}
|
|
47
|
-
else if (typeof value === 'object') {
|
|
48
|
-
secondObjects.add(value);
|
|
49
|
-
}
|
|
50
|
-
else if (typeof value === 'function') {
|
|
51
|
-
secondFunctions.add(JSON.stringify('' + value));
|
|
52
|
-
}
|
|
53
|
-
else {
|
|
54
|
-
secondValues.add(value);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
if (firstValues.size !== secondValues.size) {
|
|
58
|
-
return false;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
let match = true;
|
|
62
|
-
for (const value of firstValues) {
|
|
63
|
-
if (secondValues.has(value) === false) {
|
|
64
|
-
match = false;
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
if (match === false) {
|
|
69
|
-
return false;
|
|
70
|
-
}
|
|
71
|
-
else if (firstObjects.size === secondObjects.size) {
|
|
72
|
-
match = true;
|
|
73
|
-
for (const value of firstObjects) {
|
|
74
|
-
let hasMatch = false;
|
|
75
|
-
for (const secondValue of secondObjects) {
|
|
76
|
-
if (this.deepEquals(value, secondValue) === true) {
|
|
77
|
-
hasMatch = true;
|
|
78
|
-
break;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
if (hasMatch === false) {
|
|
82
|
-
match = false;
|
|
83
|
-
break;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
if (match === false) {
|
|
87
|
-
return false;
|
|
88
|
-
}
|
|
89
|
-
else if (firstArrays.size === secondArrays.size) {
|
|
90
|
-
match = true;
|
|
91
|
-
for (const value of firstArrays) {
|
|
92
|
-
let hasMatch = false;
|
|
93
|
-
for (const secondValue of secondArrays) {
|
|
94
|
-
if (this.deepEquals(value, secondValue) === true) {
|
|
95
|
-
hasMatch = true;
|
|
96
|
-
break;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
if (hasMatch === false) {
|
|
100
|
-
match = false;
|
|
101
|
-
break;
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
if (match === false) {
|
|
105
|
-
return false;
|
|
106
|
-
}
|
|
107
|
-
else if (firstFunctions.size === secondFunctions.size) {
|
|
108
|
-
match = true;
|
|
109
|
-
for (const value of firstFunctions) {
|
|
110
|
-
if (secondFunctions.has(value) === false) {
|
|
111
|
-
match = false;
|
|
112
|
-
break;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
if (match === false) {
|
|
116
|
-
return false;
|
|
117
|
-
}
|
|
118
|
-
else {
|
|
119
|
-
return true;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
return false;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return false;
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
else {
|
|
131
|
-
return false;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
else if (typeof firstObject === 'object' && firstObject !== null) {
|
|
137
|
-
if (typeof secondObject !== 'object') {
|
|
138
|
-
return false;
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
let match = true;
|
|
142
|
-
if (Object.keys(firstObject).length === Object.keys(secondObject).length) {
|
|
143
|
-
for (const [key, value] of Object.entries(firstObject)) {
|
|
144
|
-
const secondValue = secondObject[key];
|
|
145
|
-
match = this.deepEquals(value, secondValue);
|
|
146
|
-
if (match === false) {
|
|
147
|
-
break;
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
else {
|
|
152
|
-
match = false;
|
|
153
|
-
}
|
|
154
|
-
return match;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
else {
|
|
158
|
-
if (Array.isArray(secondObject) === true) {
|
|
159
|
-
return false;
|
|
160
|
-
}
|
|
161
|
-
else if (typeof secondObject === 'object' && secondObject !== null) {
|
|
162
|
-
return false;
|
|
163
|
-
}
|
|
164
|
-
else {
|
|
165
|
-
if (typeof firstObject === 'function') {
|
|
166
|
-
if (typeof secondObject === 'function') {
|
|
167
|
-
return JSON.stringify('' + firstObject) === JSON.stringify('' + secondObject);
|
|
168
|
-
}
|
|
169
|
-
else {
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
else {
|
|
174
|
-
return JSON.stringify(firstObject) === JSON.stringify(secondObject);
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
class NgxDeepEqualsPureModule {
|
|
182
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NgxDeepEqualsPureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
183
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.0-next.2", ngImport: i0, type: NgxDeepEqualsPureModule }); }
|
|
184
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NgxDeepEqualsPureModule, providers: [NgxDeepEqualsPureService] }); }
|
|
185
|
-
}
|
|
186
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.0-next.2", ngImport: i0, type: NgxDeepEqualsPureModule, decorators: [{
|
|
187
|
-
type: NgModule,
|
|
188
|
-
args: [{
|
|
189
|
-
declarations: [],
|
|
190
|
-
imports: [],
|
|
191
|
-
exports: [],
|
|
192
|
-
providers: [NgxDeepEqualsPureService]
|
|
193
|
-
}]
|
|
194
|
-
}] });
|
|
195
|
-
|
|
196
|
-
/*
|
|
197
|
-
* Public API Surface of ngx-deep-equals-pure
|
|
198
|
-
*/
|
|
199
|
-
|
|
200
|
-
/**
|
|
201
|
-
* Generated bundle index. Do not edit.
|
|
202
|
-
*/
|
|
203
|
-
|
|
204
|
-
export { NgxDeepEqualsPureModule, NgxDeepEqualsPureService };
|
|
154
|
+
// lib/ngx-deep-equals-pure.module.mjs
|
|
155
|
+
import { NgModule } from "@angular/core";
|
|
156
|
+
import * as i0 from "@angular/core";
|
|
157
|
+
var NgxDeepEqualsPureModule = class _NgxDeepEqualsPureModule {
|
|
158
|
+
static {
|
|
159
|
+
this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: _NgxDeepEqualsPureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
160
|
+
}
|
|
161
|
+
static {
|
|
162
|
+
this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.0.0-next.1", ngImport: i0, type: _NgxDeepEqualsPureModule });
|
|
163
|
+
}
|
|
164
|
+
static {
|
|
165
|
+
this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: _NgxDeepEqualsPureModule, providers: [NgxDeepEqualsPureService] });
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.1", ngImport: i0, type: NgxDeepEqualsPureModule, decorators: [{
|
|
169
|
+
type: NgModule,
|
|
170
|
+
args: [{
|
|
171
|
+
declarations: [],
|
|
172
|
+
imports: [],
|
|
173
|
+
exports: [],
|
|
174
|
+
providers: [NgxDeepEqualsPureService]
|
|
175
|
+
}]
|
|
176
|
+
}] });
|
|
177
|
+
export {
|
|
178
|
+
NgxDeepEqualsPureModule,
|
|
179
|
+
NgxDeepEqualsPureService
|
|
180
|
+
};
|
|
205
181
|
//# sourceMappingURL=ngx-deep-equals-pure.mjs.map
|
|
@@ -1 +1,7 @@
|
|
|
1
|
-
{"version":3,"file":"ngx-deep-equals-pure.mjs","sources":["../../../projects/ngx-deep-equals-pure/src/lib/ngx-deep-equals-pure.service.ts","../../../projects/ngx-deep-equals-pure/src/lib/ngx-deep-equals-pure.module.ts","../../../projects/ngx-deep-equals-pure/src/public-api.ts","../../../projects/ngx-deep-equals-pure/src/ngx-deep-equals-pure.ts"],"sourcesContent":["export class NgxDeepEqualsPureService {\n\n constructor() { }\n\n public deepEquals(firstObject: any, secondObject: any): boolean {\n if (firstObject === null && secondObject !== null) {\n return false;\n } else if (secondObject === null && firstObject !== null) {\n return false;\n } else if (Array.isArray(firstObject) === true) {\n if (Array.isArray(secondObject) === false) {\n return false;\n } else if (firstObject.length !== secondObject.length) {\n return false;\n } else {\n const firstArrays: Set<any> = new Set<any>();\n const firstObjects: Set<any> = new Set<any>();\n const firstValues: Set<any> = new Set<any>();\n const firstFunctions: Set<any> = new Set<any>();\n\n for (const value of firstObject) {\n if (Array.isArray(value) === true) {\n firstArrays.add(value);\n } else if (typeof value === 'object') {\n firstObjects.add(value);\n } else if (typeof value === 'function') {\n firstFunctions.add(JSON.stringify('' + value));\n } else {\n firstValues.add(value);\n }\n }\n\n const secondArrays: Set<any> = new Set<any>();\n const secondObjects: Set<any> = new Set<any>();\n const secondValues: Set<any> = new Set<any>();\n const secondFunctions: Set<any> = new Set<any>();\n\n for (const value of secondObject) {\n if (Array.isArray(value) === true) {\n secondArrays.add(value);\n } else if (typeof value === 'object') {\n secondObjects.add(value);\n } else if (typeof value === 'function') {\n secondFunctions.add(JSON.stringify('' + value));\n } else {\n secondValues.add(value);\n }\n }\n\n if (firstValues.size !== secondValues.size) {\n return false;\n } else {\n let match = true;\n for (const value of firstValues) {\n if (secondValues.has(value) === false) {\n match = false;\n break;\n }\n }\n\n if (match === false) {\n return false;\n } else if (firstObjects.size === secondObjects.size) {\n match = true;\n for (const value of firstObjects) {\n let hasMatch = false;\n for (const secondValue of secondObjects) {\n if (this.deepEquals(value, secondValue) === true) {\n hasMatch = true;\n break;\n }\n }\n\n if (hasMatch === false) {\n match = false;\n break;\n }\n }\n\n if (match === false) {\n return false;\n } else if (firstArrays.size === secondArrays.size) {\n match = true;\n for (const value of firstArrays) {\n let hasMatch = false;\n for (const secondValue of secondArrays) {\n if (this.deepEquals(value, secondValue) === true) {\n hasMatch = true;\n break;\n }\n }\n\n if (hasMatch === false) {\n match = false;\n break;\n }\n }\n\n if (match === false) {\n return false;\n } else if (firstFunctions.size === secondFunctions.size) {\n match = true;\n for (const value of firstFunctions) {\n if (secondFunctions.has(value) === false) {\n match = false;\n break;\n }\n }\n\n if (match === false) {\n return false;\n } else {\n return true;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n } else {\n return false;\n }\n }\n }\n } else if (typeof firstObject === 'object' && firstObject !== null) {\n if (typeof secondObject !== 'object') {\n return false;\n } else {\n let match = true;\n\n if (Object.keys(firstObject).length === Object.keys(secondObject).length) {\n for (const [key, value] of Object.entries(firstObject)) {\n const secondValue = secondObject[key];\n\n match = this.deepEquals(value, secondValue);\n\n if (match === false) {\n break;\n }\n }\n } else {\n match = false;\n }\n\n return match;\n }\n } else {\n if (Array.isArray(secondObject) === true) {\n return false;\n } else if (typeof secondObject === 'object' && secondObject !== null) {\n return false;\n } else {\n if (typeof firstObject === 'function') {\n if (typeof secondObject === 'function') {\n return JSON.stringify('' + firstObject) === JSON.stringify('' + secondObject);\n } else {\n return false;\n }\n } else {\n return JSON.stringify(firstObject) === JSON.stringify(secondObject);\n }\n }\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { NgxDeepEqualsPureService } from './ngx-deep-equals-pure.service';\n\n@NgModule({\n declarations: [],\n imports: [],\n exports: [],\n providers: [NgxDeepEqualsPureService]\n})\nexport class NgxDeepEqualsPureModule { }\n","/*\n * Public API Surface of ngx-deep-equals-pure\n */\n\nexport * from './lib/ngx-deep-equals-pure.service';\nexport * from './lib/ngx-deep-equals-pure.module';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAAa,wBAAwB,CAAA;AAEnC,IAAA,WAAA,GAAA,GAAiB;IAEV,UAAU,CAAC,WAAgB,EAAE,YAAiB,EAAA;AACnD,QAAA,IAAI,WAAW,KAAK,IAAI,IAAI,YAAY,KAAK,IAAI,EAAE;AACjD,YAAA,OAAO,KAAK,CAAC;AACd,SAAA;AAAM,aAAA,IAAI,YAAY,KAAK,IAAI,IAAI,WAAW,KAAK,IAAI,EAAE;A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 3,
|
|
3
|
+
"sources": ["../../../projects/ngx-deep-equals-pure/src/lib/ngx-deep-equals-pure.service.ts", "../../../projects/ngx-deep-equals-pure/src/lib/ngx-deep-equals-pure.module.ts"],
|
|
4
|
+
"sourcesContent": ["export class NgxDeepEqualsPureService {\r\n\r\n constructor() { }\r\n\r\n public deepEquals(firstObject: any, secondObject: any): boolean {\r\n if (firstObject === null && secondObject !== null) {\r\n return false;\r\n } else if (secondObject === null && firstObject !== null) {\r\n return false;\r\n } else if (Array.isArray(firstObject) === true) {\r\n if (Array.isArray(secondObject) === false) {\r\n return false;\r\n } else if (firstObject.length !== secondObject.length) {\r\n return false;\r\n } else {\r\n const firstArrays: Set<any> = new Set<any>();\r\n const firstObjects: Set<any> = new Set<any>();\r\n const firstValues: Set<any> = new Set<any>();\r\n const firstFunctions: Set<any> = new Set<any>();\r\n\r\n for (const value of firstObject) {\r\n if (Array.isArray(value) === true) {\r\n firstArrays.add(value);\r\n } else if (typeof value === 'object') {\r\n firstObjects.add(value);\r\n } else if (typeof value === 'function') {\r\n firstFunctions.add(JSON.stringify('' + value));\r\n } else {\r\n firstValues.add(value);\r\n }\r\n }\r\n\r\n const secondArrays: Set<any> = new Set<any>();\r\n const secondObjects: Set<any> = new Set<any>();\r\n const secondValues: Set<any> = new Set<any>();\r\n const secondFunctions: Set<any> = new Set<any>();\r\n\r\n for (const value of secondObject) {\r\n if (Array.isArray(value) === true) {\r\n secondArrays.add(value);\r\n } else if (typeof value === 'object') {\r\n secondObjects.add(value);\r\n } else if (typeof value === 'function') {\r\n secondFunctions.add(JSON.stringify('' + value));\r\n } else {\r\n secondValues.add(value);\r\n }\r\n }\r\n\r\n if (firstValues.size !== secondValues.size) {\r\n return false;\r\n } else {\r\n let match = true;\r\n for (const value of firstValues) {\r\n if (secondValues.has(value) === false) {\r\n match = false;\r\n break;\r\n }\r\n }\r\n\r\n if (match === false) {\r\n return false;\r\n } else if (firstObjects.size === secondObjects.size) {\r\n match = true;\r\n for (const value of firstObjects) {\r\n let hasMatch = false;\r\n for (const secondValue of secondObjects) {\r\n if (this.deepEquals(value, secondValue) === true) {\r\n hasMatch = true;\r\n break;\r\n }\r\n }\r\n\r\n if (hasMatch === false) {\r\n match = false;\r\n break;\r\n }\r\n }\r\n\r\n if (match === false) {\r\n return false;\r\n } else if (firstArrays.size === secondArrays.size) {\r\n match = true;\r\n for (const value of firstArrays) {\r\n let hasMatch = false;\r\n for (const secondValue of secondArrays) {\r\n if (this.deepEquals(value, secondValue) === true) {\r\n hasMatch = true;\r\n break;\r\n }\r\n }\r\n\r\n if (hasMatch === false) {\r\n match = false;\r\n break;\r\n }\r\n }\r\n\r\n if (match === false) {\r\n return false;\r\n } else if (firstFunctions.size === secondFunctions.size) {\r\n match = true;\r\n for (const value of firstFunctions) {\r\n if (secondFunctions.has(value) === false) {\r\n match = false;\r\n break;\r\n }\r\n }\r\n\r\n if (match === false) {\r\n return false;\r\n } else {\r\n return true;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return false;\r\n }\r\n }\r\n }\r\n } else if (typeof firstObject === 'object' && firstObject !== null) {\r\n if (typeof secondObject !== 'object') {\r\n return false;\r\n } else {\r\n let match = true;\r\n\r\n if (Object.keys(firstObject).length === Object.keys(secondObject).length) {\r\n for (const [key, value] of Object.entries(firstObject)) {\r\n const secondValue = secondObject[key];\r\n\r\n match = this.deepEquals(value, secondValue);\r\n\r\n if (match === false) {\r\n break;\r\n }\r\n }\r\n } else {\r\n match = false;\r\n }\r\n\r\n return match;\r\n }\r\n } else {\r\n if (Array.isArray(secondObject) === true) {\r\n return false;\r\n } else if (typeof secondObject === 'object' && secondObject !== null) {\r\n return false;\r\n } else {\r\n if (typeof firstObject === 'function') {\r\n if (typeof secondObject === 'function') {\r\n return JSON.stringify('' + firstObject) === JSON.stringify('' + secondObject);\r\n } else {\r\n return false;\r\n }\r\n } else {\r\n return JSON.stringify(firstObject) === JSON.stringify(secondObject);\r\n }\r\n }\r\n }\r\n }\r\n}\r\n", "import { NgModule } from '@angular/core';\r\nimport { NgxDeepEqualsPureService } from './ngx-deep-equals-pure.service';\r\n\r\n@NgModule({\r\n declarations: [],\r\n imports: [],\r\n exports: [],\r\n providers: [NgxDeepEqualsPureService]\r\n})\r\nexport class NgxDeepEqualsPureModule { }\r\n"],
|
|
5
|
+
"mappings": ";AAAM,IAAO,2BAAP,MAA+B;EAEnC,cAAA;EAAgB;EAET,WAAW,aAAkB,cAAiB;AACnD,QAAI,gBAAgB,QAAQ,iBAAiB,MAAM;AACjD,aAAO;IACT,WAAW,iBAAiB,QAAQ,gBAAgB,MAAM;AACxD,aAAO;IACT,WAAW,MAAM,QAAQ,WAAW,MAAM,MAAM;AAC9C,UAAI,MAAM,QAAQ,YAAY,MAAM,OAAO;AACzC,eAAO;MACT,WAAW,YAAY,WAAW,aAAa,QAAQ;AACrD,eAAO;MACT,OAAO;AACL,cAAM,cAAwB,oBAAI,IAAG;AACrC,cAAM,eAAyB,oBAAI,IAAG;AACtC,cAAM,cAAwB,oBAAI,IAAG;AACrC,cAAM,iBAA2B,oBAAI,IAAG;AAExC,mBAAW,SAAS,aAAa;AAC/B,cAAI,MAAM,QAAQ,KAAK,MAAM,MAAM;AACjC,wBAAY,IAAI,KAAK;UACvB,WAAW,OAAO,UAAU,UAAU;AACpC,yBAAa,IAAI,KAAK;UACxB,WAAW,OAAO,UAAU,YAAY;AACtC,2BAAe,IAAI,KAAK,UAAU,KAAK,KAAK,CAAC;UAC/C,OAAO;AACL,wBAAY,IAAI,KAAK;UACvB;QACF;AAEA,cAAM,eAAyB,oBAAI,IAAG;AACtC,cAAM,gBAA0B,oBAAI,IAAG;AACvC,cAAM,eAAyB,oBAAI,IAAG;AACtC,cAAM,kBAA4B,oBAAI,IAAG;AAEzC,mBAAW,SAAS,cAAc;AAChC,cAAI,MAAM,QAAQ,KAAK,MAAM,MAAM;AACjC,yBAAa,IAAI,KAAK;UACxB,WAAW,OAAO,UAAU,UAAU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,5 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Generated bundle index. Do not edit.
|
|
3
|
-
*/
|
|
4
|
-
/// <amd-module name="ngx-deep-equals-pure" />
|
|
5
|
-
export * from './public-api';
|
|
1
|
+
/**
|
|
2
|
+
* Generated bundle index. Do not edit.
|
|
3
|
+
*/
|
|
4
|
+
/// <amd-module name="ngx-deep-equals-pure" />
|
|
5
|
+
export * from './public-api';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class NgxDeepEqualsPureModule {
|
|
3
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDeepEqualsPureModule, never>;
|
|
4
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDeepEqualsPureModule, never, never, never>;
|
|
5
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<NgxDeepEqualsPureModule>;
|
|
6
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class NgxDeepEqualsPureModule {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgxDeepEqualsPureModule, never>;
|
|
4
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NgxDeepEqualsPureModule, never, never, never>;
|
|
5
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NgxDeepEqualsPureModule>;
|
|
6
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare class NgxDeepEqualsPureService {
|
|
2
|
-
constructor();
|
|
3
|
-
deepEquals(firstObject: any, secondObject: any): boolean;
|
|
4
|
-
}
|
|
1
|
+
export declare class NgxDeepEqualsPureService {
|
|
2
|
+
constructor();
|
|
3
|
+
deepEquals(firstObject: any, secondObject: any): boolean;
|
|
4
|
+
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ngx-deep-equals-pure",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
-
"@angular/common": ">=
|
|
6
|
-
"@angular/core": ">=
|
|
5
|
+
"@angular/common": ">=18.0.0 || >=18.0.0-next.0",
|
|
6
|
+
"@angular/core": ">=18.0.0 || >=18.0.0-next.0"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"tslib": ">=2.3.0"
|
package/public-api.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './lib/ngx-deep-equals-pure.service';
|
|
2
|
-
export * from './lib/ngx-deep-equals-pure.module';
|
|
1
|
+
export * from './lib/ngx-deep-equals-pure.service';
|
|
2
|
+
export * from './lib/ngx-deep-equals-pure.module';
|