@caido-utils/backend 0.5.4 → 0.6.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/dist/crypto/index.d.ts +1 -0
- package/dist/crypto/index.js +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/requests/query.d.ts +1 -0
- package/dist/requests/query.js +8 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function sha256(content: string): string;
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/requests/query.d.ts
CHANGED
package/dist/requests/query.js
CHANGED
|
@@ -94,5 +94,13 @@ export async function queryRequests(sdk, options) {
|
|
|
94
94
|
break;
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
|
+
if (options?.deduplicate) {
|
|
98
|
+
const seen = /* @__PURE__ */ new Map();
|
|
99
|
+
for (const item of results) {
|
|
100
|
+
const key = `${item.request.getMethod()}|${item.request.getHost()}|${item.request.getPath()}`;
|
|
101
|
+
seen.set(key, item);
|
|
102
|
+
}
|
|
103
|
+
return Array.from(seen.values());
|
|
104
|
+
}
|
|
97
105
|
return results;
|
|
98
106
|
}
|