apiblaze 0.21.62 → 0.21.63
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/index.js +4 -2
- package/package.json +8 -2
package/dist/index.js
CHANGED
|
@@ -34,7 +34,7 @@ var __toESM = (mod, isNodeMode, target2) => (target2 = mod != null ? __create(__
|
|
|
34
34
|
var version;
|
|
35
35
|
var init_package = __esm({
|
|
36
36
|
"package.json"() {
|
|
37
|
-
version = "0.21.
|
|
37
|
+
version = "0.21.63";
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -11866,7 +11866,8 @@ async function promptForMissing(r, interactive2, defaults = { prompts: [] }, pla
|
|
|
11866
11866
|
...def ? { default: def } : {},
|
|
11867
11867
|
// The privacy page is a hard portal requirement (https + 200): check it here, before the
|
|
11868
11868
|
// report has to come back red for a typo.
|
|
11869
|
-
|
|
11869
|
+
// Wrapped: inquirer calls validate(input, answers) and the answers object must not land in fetchFn.
|
|
11870
|
+
validate: a.key === "privacyUrl" ? (v) => validatePrivacyUrl(v) : withinLimit(a)
|
|
11870
11871
|
}]);
|
|
11871
11872
|
if (value?.trim()) out[a.key] = value.trim();
|
|
11872
11873
|
}
|
|
@@ -12309,6 +12310,7 @@ async function probeConventionalUrls(apexDomain, fetchFn = headStatus) {
|
|
|
12309
12310
|
return out;
|
|
12310
12311
|
}
|
|
12311
12312
|
async function validatePrivacyUrl(input, fetchFn = headStatus) {
|
|
12313
|
+
if (typeof fetchFn !== "function") fetchFn = headStatus;
|
|
12312
12314
|
const u = (input ?? "").trim();
|
|
12313
12315
|
if (!u) return "A public privacy policy URL is required by both directories.";
|
|
12314
12316
|
if (!/^https:\/\//i.test(u)) return "The privacy URL must start with https://";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apiblaze",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.63",
|
|
4
4
|
"description": "APIblaze CLI — Chat with your APIs, Manage your API keys, users and groups with the APIblaze serverless proxy",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apiblaze",
|
|
@@ -65,7 +65,9 @@
|
|
|
65
65
|
"typecheck": "tsc --noEmit",
|
|
66
66
|
"prepublishOnly": "npm run build && npm run typecheck",
|
|
67
67
|
"release": "bash release.sh",
|
|
68
|
-
"test": "node test/tail-inspector.test.js && node test/config-missing.test.js"
|
|
68
|
+
"test": "node test/tail-inspector.test.js && node test/config-missing.test.js",
|
|
69
|
+
"version": "npm run build && git add -A dist",
|
|
70
|
+
"postversion": "git push origin HEAD --follow-tags"
|
|
69
71
|
},
|
|
70
72
|
"dependencies": {
|
|
71
73
|
"chalk": "^4.1.2",
|
|
@@ -97,5 +99,9 @@
|
|
|
97
99
|
"allowScripts": {
|
|
98
100
|
"esbuild": true,
|
|
99
101
|
"fsevents": true
|
|
102
|
+
},
|
|
103
|
+
"repository": {
|
|
104
|
+
"type": "git",
|
|
105
|
+
"url": "git+https://github.com/APIblaze/npm-apiblaze.git"
|
|
100
106
|
}
|
|
101
107
|
}
|