gscdump 3.3.0 → 3.4.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/dist/bing/client.mjs +4 -1
- package/package.json +2 -2
package/dist/bing/client.mjs
CHANGED
|
@@ -58,6 +58,9 @@ function parseNullable(parser) {
|
|
|
58
58
|
function parseEmpty(value) {
|
|
59
59
|
return value === null ? ok(void 0) : err("invalid-payload");
|
|
60
60
|
}
|
|
61
|
+
function parseBooleanAcknowledgement(value) {
|
|
62
|
+
return typeof value === "boolean" ? ok(void 0) : err("invalid-payload");
|
|
63
|
+
}
|
|
61
64
|
function parseList(parser) {
|
|
62
65
|
return (value) => {
|
|
63
66
|
if (!Array.isArray(value)) return err("invalid-payload");
|
|
@@ -230,7 +233,7 @@ function bingWebmaster(options) {
|
|
|
230
233
|
query: { siteUrl },
|
|
231
234
|
signal: callOptions?.signal
|
|
232
235
|
}),
|
|
233
|
-
verifySite: (siteUrl, callOptions) => request("VerifySite",
|
|
236
|
+
verifySite: (siteUrl, callOptions) => request("VerifySite", parseBooleanAcknowledgement, {
|
|
234
237
|
body: { siteUrl },
|
|
235
238
|
method: "POST",
|
|
236
239
|
signal: callOptions?.signal
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gscdump",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.4.1",
|
|
5
5
|
"description": "Direct Google Search Console and Bing Webmaster clients with typed queries and Indexing Evidence",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Harlan Wilton",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"node": ">=22"
|
|
114
114
|
},
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@gscdump/contracts": "^3.
|
|
116
|
+
"@gscdump/contracts": "^3.4.1",
|
|
117
117
|
"ofetch": "^1.5.1"
|
|
118
118
|
},
|
|
119
119
|
"scripts": {
|