spec-up-t 1.0.82 → 1.0.83
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.
|
@@ -21,7 +21,7 @@ function helpButtons() {
|
|
|
21
21
|
newElement.title = 'Click to see the explanation of the buttons at the documentation website, in a new tab.';
|
|
22
22
|
newElement.target = '_blank';
|
|
23
23
|
newElement.rel = 'noopener noreferrer';
|
|
24
|
-
newElement.href = 'https://
|
|
24
|
+
newElement.href = 'https://trustoverip.github.io/spec-up-t-website/docs/general/specification#explanation-buttons';
|
|
25
25
|
|
|
26
26
|
function addElementAfterLastChild(newElement) {
|
|
27
27
|
const elements = document.querySelectorAll('#content dl dt');
|
|
@@ -85,7 +85,7 @@ function fetchCommitHashes() {
|
|
|
85
85
|
|
|
86
86
|
// B: Debounced “GitHub rate limit exceeded” error message
|
|
87
87
|
const debouncedError = debounce(() => {
|
|
88
|
-
notyf.error('GitHub rate limit exceeded. See <a target="_blank" rel="noopener" href="https://
|
|
88
|
+
notyf.error('GitHub rate limit exceeded. See <a target="_blank" rel="noopener" href="https://trustoverip.github.io/spec-up-t-website/docs/github-token/">documentation</a> for more info.');
|
|
89
89
|
}, 3000); // Delay in milliseconds
|
|
90
90
|
|
|
91
91
|
// Fetch the content of a term-file from GitHub
|
|
@@ -100,13 +100,13 @@ function fetchCommitHashes() {
|
|
|
100
100
|
.then(response => {
|
|
101
101
|
if (response.status === 403 && response.headers.get('X-RateLimit-Remaining') === '0') {
|
|
102
102
|
const resetTime = new Date(response.headers.get('X-RateLimit-Reset') * 1000);
|
|
103
|
-
console.error(`\n SPEC-UP-T: Github API rate limit exceeded. Try again after ${resetTime}. See https://
|
|
103
|
+
console.error(`\n SPEC-UP-T: Github API rate limit exceeded. Try again after ${resetTime}. See https://trustoverip.github.io/spec-up-t-website/docs/github-token/ for more info.` + "\n");
|
|
104
104
|
|
|
105
105
|
// Call the debounced error function
|
|
106
106
|
debouncedError();
|
|
107
107
|
return true;
|
|
108
108
|
} else {
|
|
109
|
-
console.log(`\n SPEC-UP-T: Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://
|
|
109
|
+
console.log(`\n SPEC-UP-T: Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://trustoverip.github.io/spec-up-t-website/docs/github-token/ for more info.` + "\n");
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
return response.json();
|
|
@@ -174,12 +174,12 @@ function fetchCommitHashes() {
|
|
|
174
174
|
|
|
175
175
|
if (response.status === 403 && response.headers.get('X-RateLimit-Remaining') === '0') {
|
|
176
176
|
const resetTime = new Date(response.headers.get('X-RateLimit-Reset') * 1000);
|
|
177
|
-
console.error(`\n SPEC-UP-T: Github API rate limit exceeded. Try again after ${resetTime}. See https://
|
|
177
|
+
console.error(`\n SPEC-UP-T: Github API rate limit exceeded. Try again after ${resetTime}. See https://trustoverip.github.io/spec-up-t-website/docs/github-token/ for more info.` + "\n");
|
|
178
178
|
|
|
179
179
|
debouncedError();
|
|
180
180
|
return true;
|
|
181
181
|
} else {
|
|
182
|
-
console.log(`\n SPEC-UP-T: Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://
|
|
182
|
+
console.log(`\n SPEC-UP-T: Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://trustoverip.github.io/spec-up-t-website/docs/github-token/ for more info.` + "\n");
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
const data = await response.json();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "spec-up-t",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.83",
|
|
4
4
|
"description": "Technical specification drafting tool that generates rich specification documents from markdown. Forked from https://github.com/decentralized-identity/spec-up by Daniel Buchner (https://github.com/csuwildcat)",
|
|
5
5
|
"main": "./index",
|
|
6
6
|
"repository": {
|
package/readme.md
CHANGED
|
@@ -7,6 +7,4 @@
|
|
|
7
7
|
<h2 style="display: block; margin: 0 auto; text-align: center;">Markdown » Spec-Up</h2>
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
There is a [special website that documents everything regarding Spec-Up-T](https://
|
|
11
|
-
|
|
12
|
-
Important: the files in `/spec` are identical to those in https://github.com/blockchainbird/spec-up-t-starter-pack/tree/main/spec-up-t-starterpack/spec. If one of the copies is modified, it must be copied over to the other copy. Also make sure the `"markdown_paths"` in `specs.json` are still correct.
|
|
10
|
+
There is a [special website that documents everything regarding Spec-Up-T](https://trustoverip.github.io/spec-up-t-website/).
|
package/src/get-xtrefs-data.js
CHANGED
|
@@ -52,10 +52,10 @@ function setupFetchHeaders(GITHUB_API_TOKEN) {
|
|
|
52
52
|
function checkRateLimit(response) {
|
|
53
53
|
if (response.status === 403 && response.headers.get('X-RateLimit-Remaining') === '0') {
|
|
54
54
|
const resetTime = new Date(response.headers.get('X-RateLimit-Reset') * 1000);
|
|
55
|
-
console.error(`\n SPEC-UP-T: Github API rate limit exceeded. Try again after ${resetTime}. See https://
|
|
55
|
+
console.error(`\n SPEC-UP-T: Github API rate limit exceeded. Try again after ${resetTime}. See https://trustoverip.github.io/spec-up-t-website/docs/github-token/ for more info.` + "\n");
|
|
56
56
|
return true;
|
|
57
57
|
} else {
|
|
58
|
-
console.log(`\n SPEC-UP-T: Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://
|
|
58
|
+
console.log(`\n SPEC-UP-T: Github API rate limit: ${response.headers.get('X-RateLimit-Remaining')} requests remaining. See https://trustoverip.github.io/spec-up-t-website/docs/github-token/ for more info.` + "\n");
|
|
59
59
|
}
|
|
60
60
|
return false;
|
|
61
61
|
}
|
|
@@ -34,7 +34,7 @@ function checkKeysSync(object, expectedKeys, parentKey = '') {
|
|
|
34
34
|
} else if (typeof object === 'object') {
|
|
35
35
|
// If the key is missing from the object, log an error
|
|
36
36
|
if (!(key in object)) {
|
|
37
|
-
console.error(`\n SPEC-UP-T: Error: Missing key '${key}' in ${parentKey}\n We cannot guarantee that Spec-Up-T will work properly.\n Here is an example specs.json file:\n https://github.com/
|
|
37
|
+
console.error(`\n SPEC-UP-T: Error: Missing key '${key}' in ${parentKey}\n We cannot guarantee that Spec-Up-T will work properly.\n Here is an example specs.json file:\n https://github.com/trustoverip/spec-up-t-starter-pack/blob/main/spec-up-t-starterpack/specs.json` + "\n");
|
|
38
38
|
errorFound = true;
|
|
39
39
|
pauseForEnterSync(); // Pause synchronously to allow user to acknowledge the error
|
|
40
40
|
}
|