@cheqd/sdk 3.0.1 → 3.0.2-develop.2
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/package.json +12 -6
- package/.github/ISSUE_TEMPLATE/bug-report.yml +0 -74
- package/.github/ISSUE_TEMPLATE/config.yml +0 -14
- package/.github/ISSUE_TEMPLATE/feature-request.yaml +0 -27
- package/.github/dependabot.yml +0 -43
- package/.github/linters/.commitlint.rules.cjs +0 -37
- package/.github/linters/.eslintrc.json +0 -18
- package/.github/linters/.markdown-lint.yml +0 -139
- package/.github/linters/mlc_config.json +0 -13
- package/.github/workflows/build.yml +0 -26
- package/.github/workflows/cleanup-actions.yml +0 -45
- package/.github/workflows/cleanup-cache-automatic.yml +0 -24
- package/.github/workflows/cleanup-cache-manual.yml +0 -21
- package/.github/workflows/codeql.yml +0 -40
- package/.github/workflows/dispatch.yml +0 -30
- package/.github/workflows/lint.yml +0 -51
- package/.github/workflows/pull-request.yml +0 -48
- package/.github/workflows/release.yml +0 -42
- package/.github/workflows/test.yml +0 -66
- package/.releaserc.json +0 -61
- package/CHANGELOG.md +0 -318
- package/CODE_OF_CONDUCT.md +0 -81
- package/NOTICE.md +0 -10
- package/SECURITY.md +0 -12
- package/docker/Dockerfile +0 -55
- package/docker/entrypoint.sh +0 -58
- package/docker/localnet/build-latest.env +0 -7
- package/docker/localnet/container-env/observer-0.env +0 -13
- package/docker/localnet/container-env/seed-0.env +0 -17
- package/docker/localnet/container-env/validator-0.env +0 -13
- package/docker/localnet/container-env/validator-1.env +0 -13
- package/docker/localnet/container-env/validator-2.env +0 -13
- package/docker/localnet/container-env/validator-3.env +0 -13
- package/docker/localnet/docker-compose.yml +0 -281
- package/docker/localnet/gen-network-config.sh +0 -259
- package/docker/localnet/import-keys.sh +0 -31
- package/jest.config.cjs +0 -20
- package/src/index.ts +0 -192
- package/src/modules/_.ts +0 -61
- package/src/modules/did.ts +0 -601
- package/src/modules/resource.ts +0 -247
- package/src/querier.ts +0 -36
- package/src/registry.ts +0 -13
- package/src/signer.ts +0 -297
- package/src/types.ts +0 -110
- package/src/utils.ts +0 -246
- package/tests/index.test.ts +0 -155
- package/tests/modules/did.test.ts +0 -985
- package/tests/modules/resource.test.ts +0 -991
- package/tests/signer.test.ts +0 -202
- package/tests/testutils.test.ts +0 -29
- package/tests/utils.test.ts +0 -77
- package/tsconfig.cjs.json +0 -8
- package/tsconfig.esm.json +0 -8
- package/tsconfig.json +0 -84
- package/tsconfig.types.json +0 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cheqd/sdk",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.2-develop.2",
|
|
4
4
|
"description": "A TypeScript SDK built with CosmJS to interact with cheqd network ledger",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Cheqd Foundation Limited (https://github.com/cheqd)",
|
|
@@ -44,8 +44,14 @@
|
|
|
44
44
|
"url": "https://github.com/cheqd/sdk/issues"
|
|
45
45
|
},
|
|
46
46
|
"homepage": "https://github.com/cheqd/sdk#readme",
|
|
47
|
+
"files": [
|
|
48
|
+
"build/**/*",
|
|
49
|
+
"LICENSE",
|
|
50
|
+
"package.json",
|
|
51
|
+
"README.md"
|
|
52
|
+
],
|
|
47
53
|
"dependencies": {
|
|
48
|
-
"@cheqd/ts-proto": "^3.1.
|
|
54
|
+
"@cheqd/ts-proto": "^3.1.2",
|
|
49
55
|
"@cosmjs/amino": "^0.29.5",
|
|
50
56
|
"@cosmjs/encoding": "^0.29.5",
|
|
51
57
|
"@cosmjs/math": "^0.29.5",
|
|
@@ -57,7 +63,7 @@
|
|
|
57
63
|
"cosmjs-types": "^0.5.2",
|
|
58
64
|
"did-jwt": "^6.11.1",
|
|
59
65
|
"did-resolver": "^4.0.1",
|
|
60
|
-
"file-type": "^18.2.
|
|
66
|
+
"file-type": "^18.2.1",
|
|
61
67
|
"multiformats": "^11.0.1",
|
|
62
68
|
"uuid": "^9.0.0"
|
|
63
69
|
},
|
|
@@ -66,11 +72,11 @@
|
|
|
66
72
|
"@semantic-release/commit-analyzer": "^9.0.2",
|
|
67
73
|
"@semantic-release/git": "^10.0.1",
|
|
68
74
|
"@semantic-release/github": "^8.0.7",
|
|
69
|
-
"@semantic-release/npm": "^9.0.
|
|
75
|
+
"@semantic-release/npm": "^9.0.2",
|
|
70
76
|
"@semantic-release/release-notes-generator": "^10.0.3",
|
|
71
77
|
"@types/jest": "^29.4.0",
|
|
72
|
-
"@types/node": "^18.
|
|
73
|
-
"@types/uuid": "^9.0.
|
|
78
|
+
"@types/node": "^18.14.0",
|
|
79
|
+
"@types/uuid": "^9.0.1",
|
|
74
80
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
75
81
|
"cross-env": "^7.0.3",
|
|
76
82
|
"jest": "^29.4.3",
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
name: Bug Report
|
|
2
|
-
description: File a bug report
|
|
3
|
-
title: "[Bug]: "
|
|
4
|
-
labels: ["bug"]
|
|
5
|
-
body:
|
|
6
|
-
- type: textarea
|
|
7
|
-
id: what-happened
|
|
8
|
-
attributes:
|
|
9
|
-
label: What went wrong?
|
|
10
|
-
description: Also tell us, what did you expect to happen?
|
|
11
|
-
placeholder: Tell us more about this potential bug.
|
|
12
|
-
validations:
|
|
13
|
-
required: true
|
|
14
|
-
body:
|
|
15
|
-
- type: textarea
|
|
16
|
-
id: repro
|
|
17
|
-
attributes:
|
|
18
|
-
label: How can we reproduce this bug?
|
|
19
|
-
description: "How do you trigger this bug? Please walk us through it step-by-step."
|
|
20
|
-
value: |
|
|
21
|
-
1.
|
|
22
|
-
2.
|
|
23
|
-
3.
|
|
24
|
-
...
|
|
25
|
-
validations:
|
|
26
|
-
required: true
|
|
27
|
-
- type: dropdown
|
|
28
|
-
id: environment
|
|
29
|
-
attributes:
|
|
30
|
-
label: Environment
|
|
31
|
-
description: What environment does this bug affect?
|
|
32
|
-
options:
|
|
33
|
-
- Mainnet
|
|
34
|
-
- Testnet
|
|
35
|
-
- Both mainnet/testnet
|
|
36
|
-
- Not applicable
|
|
37
|
-
validations:
|
|
38
|
-
required: true
|
|
39
|
-
- type: input
|
|
40
|
-
id: prevalence
|
|
41
|
-
attributes:
|
|
42
|
-
label: Bug prevalence
|
|
43
|
-
description: "How often do you or others encounter this bug?"
|
|
44
|
-
placeholder: "Whenever I visit the user account page (1-2 times a week)"
|
|
45
|
-
- type: dropdown
|
|
46
|
-
id: app-clients
|
|
47
|
-
attributes:
|
|
48
|
-
label: Which browser/client application did you encounter the bug in? (if applicable)
|
|
49
|
-
description: "Tell us what app/client you found the bug in. You can select multiple options if necessary."
|
|
50
|
-
multiple: true
|
|
51
|
-
options:
|
|
52
|
-
- Chrome / Chromium
|
|
53
|
-
- Brave
|
|
54
|
-
- Safari
|
|
55
|
-
- Microsoft Edge
|
|
56
|
-
- Mozilla Firefox
|
|
57
|
-
- API (RPC/REST/gRPC)
|
|
58
|
-
- Keplr/other wallet app
|
|
59
|
-
- Other
|
|
60
|
-
- Not applicable
|
|
61
|
-
- type: textarea
|
|
62
|
-
id: logs
|
|
63
|
-
attributes:
|
|
64
|
-
label: Relevant log output
|
|
65
|
-
description: Please copy-paste any relevant log output. This will be automatically formatted into code, so no need for backticks.
|
|
66
|
-
render: shell
|
|
67
|
-
- type: checkboxes
|
|
68
|
-
id: terms
|
|
69
|
-
attributes:
|
|
70
|
-
label: Code of Conduct
|
|
71
|
-
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/cheqd/.github/blob/main/CODE_OF_CONDUCT.md)
|
|
72
|
-
options:
|
|
73
|
-
- label: I agree to follow this project's Code of Conduct
|
|
74
|
-
required: true
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
blank_issues_enabled: true
|
|
2
|
-
|
|
3
|
-
contact_links:
|
|
4
|
-
- name: System Status
|
|
5
|
-
url: https://status.cheqd.net
|
|
6
|
-
about: System status reporting tool for cheqd services
|
|
7
|
-
|
|
8
|
-
- name: Technical Documentation
|
|
9
|
-
url: https://docs.cheqd.io
|
|
10
|
-
about: Technical Documentation for cheqd projects
|
|
11
|
-
|
|
12
|
-
- name: Community Slack
|
|
13
|
-
url: http://cheqd.link/join-cheqd-slack
|
|
14
|
-
about: Community Slack for Q&A and discussions
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
name: Feature Request
|
|
2
|
-
description: Request a new feature
|
|
3
|
-
title: "[feature]: "
|
|
4
|
-
labels: ["feature-request"]
|
|
5
|
-
body:
|
|
6
|
-
- type: textarea
|
|
7
|
-
id: feature-info
|
|
8
|
-
attributes:
|
|
9
|
-
label: What is the feature you'd like to see?
|
|
10
|
-
description: Also tell what prompted this idea?
|
|
11
|
-
placeholder: I would like to see...
|
|
12
|
-
validations:
|
|
13
|
-
required: true
|
|
14
|
-
- type: textarea
|
|
15
|
-
id: examples
|
|
16
|
-
attributes:
|
|
17
|
-
label: Are there any examples of where similar features are available?
|
|
18
|
-
description: Feel free to provide any links, screenshots, mockups etc that would help illustrate this idea better.
|
|
19
|
-
placeholder: An example of this feature is...
|
|
20
|
-
- type: checkboxes
|
|
21
|
-
id: terms
|
|
22
|
-
attributes:
|
|
23
|
-
label: Code of Conduct
|
|
24
|
-
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/cheqd/.github/blob/main/CODE_OF_CONDUCT.md)
|
|
25
|
-
options:
|
|
26
|
-
- label: I agree to follow this project's Code of Conduct
|
|
27
|
-
required: true
|
package/.github/dependabot.yml
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
#################################
|
|
2
|
-
# GitHub Dependabot Config info #
|
|
3
|
-
#################################
|
|
4
|
-
|
|
5
|
-
version: 2
|
|
6
|
-
updates:
|
|
7
|
-
|
|
8
|
-
# Maintain dependencies for GitHub Actions
|
|
9
|
-
- package-ecosystem: "github-actions"
|
|
10
|
-
directory: "/"
|
|
11
|
-
schedule:
|
|
12
|
-
interval: "weekly"
|
|
13
|
-
|
|
14
|
-
# Maintain dependencies for NPM
|
|
15
|
-
- package-ecosystem: "npm"
|
|
16
|
-
target-branch: "develop"
|
|
17
|
-
directory: "/"
|
|
18
|
-
schedule:
|
|
19
|
-
interval: "weekly"
|
|
20
|
-
|
|
21
|
-
# Maintain dependencies for Docker
|
|
22
|
-
- package-ecosystem: "docker"
|
|
23
|
-
directory: "/"
|
|
24
|
-
schedule:
|
|
25
|
-
interval: "weekly"
|
|
26
|
-
|
|
27
|
-
# Maintain dependencies for Golang
|
|
28
|
-
- package-ecosystem: "gomod"
|
|
29
|
-
directory: "/"
|
|
30
|
-
schedule:
|
|
31
|
-
interval: "weekly"
|
|
32
|
-
|
|
33
|
-
# Maintain dependencies for Terraform
|
|
34
|
-
- package-ecosystem: "terraform"
|
|
35
|
-
directory: "/"
|
|
36
|
-
schedule:
|
|
37
|
-
interval: "weekly"
|
|
38
|
-
|
|
39
|
-
# Maintain dependencies for Python
|
|
40
|
-
- package-ecosystem: "pip"
|
|
41
|
-
directory: "/"
|
|
42
|
-
schedule:
|
|
43
|
-
interval: "weekly"
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
rules: {
|
|
3
|
-
'type-case': [2, 'always', 'lower-case'],
|
|
4
|
-
'type-empty': [2, 'never'],
|
|
5
|
-
'type-enum': [
|
|
6
|
-
2,
|
|
7
|
-
'always',
|
|
8
|
-
[
|
|
9
|
-
'build',
|
|
10
|
-
'chore',
|
|
11
|
-
'ci',
|
|
12
|
-
'docs',
|
|
13
|
-
'feat',
|
|
14
|
-
'fix',
|
|
15
|
-
'perf',
|
|
16
|
-
'refactor',
|
|
17
|
-
'revert',
|
|
18
|
-
'style',
|
|
19
|
-
'test',
|
|
20
|
-
],
|
|
21
|
-
],
|
|
22
|
-
'scope-case': [2, 'always', 'lower-case'],
|
|
23
|
-
'scope-empty': [1, 'never'],
|
|
24
|
-
'subject-case': [
|
|
25
|
-
2,
|
|
26
|
-
'always',
|
|
27
|
-
['sentence-case'],
|
|
28
|
-
],
|
|
29
|
-
'subject-empty': [1, 'never'],
|
|
30
|
-
'subject-full-stop': [1, 'never', '.'],
|
|
31
|
-
'header-max-length': [2, 'always', 100],
|
|
32
|
-
'body-leading-blank': [1, 'always'],
|
|
33
|
-
'body-max-line-length': [2, 'always', 1000],
|
|
34
|
-
'footer-leading-blank': [1, 'always'],
|
|
35
|
-
'footer-max-line-length': [2, 'always', 100],
|
|
36
|
-
},
|
|
37
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true,
|
|
4
|
-
"jest/globals": true
|
|
5
|
-
},
|
|
6
|
-
"extends": [
|
|
7
|
-
"eslint:recommended",
|
|
8
|
-
"plugin:@typescript-eslint/recommended",
|
|
9
|
-
"plugin:prettier/recommended"
|
|
10
|
-
],
|
|
11
|
-
"parser": "@typescript-eslint/parser",
|
|
12
|
-
"parserOptions": {
|
|
13
|
-
"ecmaVersion": 2018,
|
|
14
|
-
"sourceType": "module"
|
|
15
|
-
},
|
|
16
|
-
"plugins": ["@typescript-eslint", "jest"],
|
|
17
|
-
"rules": {}
|
|
18
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
default: false # includes/excludes all rules by default
|
|
2
|
-
|
|
3
|
-
# Heading levels should only increment by one level at a time <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md001>
|
|
4
|
-
MD001: true
|
|
5
|
-
|
|
6
|
-
# Heading style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md003>
|
|
7
|
-
MD003:
|
|
8
|
-
style: 'consistent'
|
|
9
|
-
|
|
10
|
-
# Unordered list style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md004>
|
|
11
|
-
MD004:
|
|
12
|
-
style: 'consistent'
|
|
13
|
-
|
|
14
|
-
# Inconsistent indentation for list items at the same level <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md005>
|
|
15
|
-
MD005: true
|
|
16
|
-
|
|
17
|
-
# Consider starting bulleted lists at the beginning of the line <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md006>
|
|
18
|
-
MD006: true
|
|
19
|
-
|
|
20
|
-
# Unordered list indentation <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md007>
|
|
21
|
-
MD007: false
|
|
22
|
-
|
|
23
|
-
# Trailing spaces <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md009>
|
|
24
|
-
MD009: true
|
|
25
|
-
|
|
26
|
-
# Hard tabs <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md010>
|
|
27
|
-
MD010: false
|
|
28
|
-
|
|
29
|
-
# Reversed link syntax <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md011>
|
|
30
|
-
MD011: true
|
|
31
|
-
|
|
32
|
-
# Multiple consecutive blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md012>
|
|
33
|
-
MD012:
|
|
34
|
-
maximum: 2
|
|
35
|
-
|
|
36
|
-
# Line length <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013>
|
|
37
|
-
MD013: false
|
|
38
|
-
|
|
39
|
-
# Dollar signs used before commands without showing output <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md014>
|
|
40
|
-
MD014: true
|
|
41
|
-
|
|
42
|
-
# No space after hash on atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md018>
|
|
43
|
-
MD018: true
|
|
44
|
-
|
|
45
|
-
# Multiple spaces after hash on atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md019>
|
|
46
|
-
MD019: true
|
|
47
|
-
|
|
48
|
-
# No space inside hashes on closed atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md020>
|
|
49
|
-
MD020: true
|
|
50
|
-
|
|
51
|
-
# Multiple spaces inside hashes on closed atx style heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md021>
|
|
52
|
-
MD021: true
|
|
53
|
-
|
|
54
|
-
# Headings should be surrounded by blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md022>
|
|
55
|
-
MD022: true
|
|
56
|
-
|
|
57
|
-
# Headings must start at the beginning of the line <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md023>
|
|
58
|
-
MD023: true
|
|
59
|
-
|
|
60
|
-
# Multiple headings with the same content <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md024>
|
|
61
|
-
MD024:
|
|
62
|
-
allow_different_nesting: true
|
|
63
|
-
|
|
64
|
-
# Multiple top level headings in the same document <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md025>
|
|
65
|
-
MD025: false
|
|
66
|
-
|
|
67
|
-
# Trailing punctuation in heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md026>
|
|
68
|
-
MD026: true
|
|
69
|
-
|
|
70
|
-
# Multiple spaces after blockquote symbol <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md027>
|
|
71
|
-
MD027: true
|
|
72
|
-
|
|
73
|
-
# Blank line inside blockquote <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md028>
|
|
74
|
-
MD028: false
|
|
75
|
-
|
|
76
|
-
# Ordered list item prefix <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md029>
|
|
77
|
-
MD029:
|
|
78
|
-
style: 'one_or_ordered'
|
|
79
|
-
|
|
80
|
-
# Spaces after list markers <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md030>
|
|
81
|
-
MD030: true
|
|
82
|
-
|
|
83
|
-
# Fenced code blocks should be surrounded by blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md031>
|
|
84
|
-
MD031: true
|
|
85
|
-
|
|
86
|
-
# Lists should be surrounded by blank lines <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md032>
|
|
87
|
-
MD032: true
|
|
88
|
-
|
|
89
|
-
# Inline HTML <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033>
|
|
90
|
-
MD033:
|
|
91
|
-
allowed_elements: ['a']
|
|
92
|
-
|
|
93
|
-
# Bare URL used <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md034>
|
|
94
|
-
MD034: true
|
|
95
|
-
|
|
96
|
-
# Horizontal rule style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md035>
|
|
97
|
-
MD035:
|
|
98
|
-
style: 'consistent'
|
|
99
|
-
|
|
100
|
-
# Emphasis used instead of a heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md036>
|
|
101
|
-
MD036: true
|
|
102
|
-
|
|
103
|
-
# Spaces inside emphasis markers <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md037>
|
|
104
|
-
MD037: true
|
|
105
|
-
|
|
106
|
-
# Spaces inside code span elements <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md038>
|
|
107
|
-
MD038: true
|
|
108
|
-
|
|
109
|
-
# Spaces inside link text <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md039>
|
|
110
|
-
MD039: true
|
|
111
|
-
|
|
112
|
-
# Fenced code blocks should have a language specified <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md040>
|
|
113
|
-
MD040: true
|
|
114
|
-
|
|
115
|
-
# First line in file should be a top level heading <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md041>
|
|
116
|
-
MD041: true
|
|
117
|
-
|
|
118
|
-
# No empty links <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md042>
|
|
119
|
-
MD042: true
|
|
120
|
-
|
|
121
|
-
# Required heading structure <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md043>
|
|
122
|
-
MD043: false
|
|
123
|
-
|
|
124
|
-
# Proper names should have the correct capitalization <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md044>
|
|
125
|
-
MD044: false
|
|
126
|
-
|
|
127
|
-
# Images should have alternate text (alt text) <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md045>
|
|
128
|
-
MD045: true
|
|
129
|
-
|
|
130
|
-
# Code block style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md046>
|
|
131
|
-
MD046:
|
|
132
|
-
style: 'consistent'
|
|
133
|
-
|
|
134
|
-
# Files should end with a single newline character <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md047>
|
|
135
|
-
MD047: true
|
|
136
|
-
|
|
137
|
-
# Code fence style <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md048>
|
|
138
|
-
MD048:
|
|
139
|
-
style: 'consistent'
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
name: "Build & Test"
|
|
2
|
-
on:
|
|
3
|
-
workflow_call:
|
|
4
|
-
defaults:
|
|
5
|
-
run:
|
|
6
|
-
shell: bash
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
build:
|
|
10
|
-
name: "Build Node.js"
|
|
11
|
-
runs-on: ubuntu-latest
|
|
12
|
-
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v3
|
|
15
|
-
|
|
16
|
-
- uses: actions/setup-node@v3
|
|
17
|
-
with:
|
|
18
|
-
node-version: 18
|
|
19
|
-
cache: 'npm'
|
|
20
|
-
cache-dependency-path: '**/package-lock.json'
|
|
21
|
-
|
|
22
|
-
- name: "Clean install dependencies"
|
|
23
|
-
run: npm ci
|
|
24
|
-
|
|
25
|
-
- name: "Run npm build"
|
|
26
|
-
run: npm run build
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
name: "Cleanup - Actions"
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
inputs:
|
|
5
|
-
days:
|
|
6
|
-
description: 'Retain days'
|
|
7
|
-
required: true
|
|
8
|
-
type: string
|
|
9
|
-
default: "30"
|
|
10
|
-
minimum_runs:
|
|
11
|
-
description: 'Minimum runs to keep for each workflow'
|
|
12
|
-
required: true
|
|
13
|
-
type: string
|
|
14
|
-
default: "0"
|
|
15
|
-
delete_workflow_pattern:
|
|
16
|
-
description: 'Name/filename of workflow. Default is all.'
|
|
17
|
-
required: false
|
|
18
|
-
type: string
|
|
19
|
-
delete_workflow_by_state_pattern:
|
|
20
|
-
description: 'Remove workflow by state: active, deleted, disabled_fork, disabled_inactivity, disabled_manually'
|
|
21
|
-
required: true
|
|
22
|
-
default: All
|
|
23
|
-
type: choice
|
|
24
|
-
options:
|
|
25
|
-
- All
|
|
26
|
-
- active
|
|
27
|
-
- deleted
|
|
28
|
-
- disabled_inactivity
|
|
29
|
-
- disabled_manually
|
|
30
|
-
|
|
31
|
-
jobs:
|
|
32
|
-
|
|
33
|
-
delete-runs:
|
|
34
|
-
name: "Delete old workflow runs"
|
|
35
|
-
runs-on: ubuntu-latest
|
|
36
|
-
|
|
37
|
-
steps:
|
|
38
|
-
- uses: Mattraks/delete-workflow-runs@v2
|
|
39
|
-
with:
|
|
40
|
-
token: ${{ github.token }}
|
|
41
|
-
repository: ${{ github.repository }}
|
|
42
|
-
retain_days: ${{ github.event.inputs.days }}
|
|
43
|
-
keep_minimum_runs: ${{ github.event.inputs.minimum_runs }}
|
|
44
|
-
delete_workflow_pattern: ${{ github.event.inputs.delete_workflow_pattern }}
|
|
45
|
-
delete_workflow_by_state_pattern: ${{ github.event.inputs.delete_workflow_by_state_pattern }}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
name: "Cache Cleanup - Automatic"
|
|
2
|
-
on:
|
|
3
|
-
pull_request:
|
|
4
|
-
types:
|
|
5
|
-
- closed
|
|
6
|
-
defaults:
|
|
7
|
-
run:
|
|
8
|
-
shell: bash
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
|
|
13
|
-
cache-purge:
|
|
14
|
-
name: "Purge Actions cache"
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
|
|
19
|
-
- name: "Delete Branch Cache Action"
|
|
20
|
-
uses: snnaplab/delete-branch-cache-action@v1.0.0
|
|
21
|
-
with:
|
|
22
|
-
# Specify explicitly because the ref at the time of merging will be a branch name such as 'main', 'develop'
|
|
23
|
-
ref: refs/pull/${{ github.event.number }}/merge
|
|
24
|
-
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
name: "Cache Cleanup - Manual"
|
|
2
|
-
on:
|
|
3
|
-
workflow_dispatch:
|
|
4
|
-
inputs:
|
|
5
|
-
dry-run:
|
|
6
|
-
description: "Dry run only?"
|
|
7
|
-
required: true
|
|
8
|
-
type: boolean
|
|
9
|
-
default: false
|
|
10
|
-
|
|
11
|
-
jobs:
|
|
12
|
-
|
|
13
|
-
delete-caches:
|
|
14
|
-
name: "Delete Actions caches"
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
|
|
17
|
-
steps:
|
|
18
|
-
- name: "Wipe Github Actions cache"
|
|
19
|
-
uses: easimon/wipe-cache@v2
|
|
20
|
-
with:
|
|
21
|
-
dry-run: ${{ github.event.inputs.dry-run }}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
name: "CodeQL"
|
|
2
|
-
on:
|
|
3
|
-
push:
|
|
4
|
-
branches:
|
|
5
|
-
- main
|
|
6
|
-
- develop
|
|
7
|
-
concurrency:
|
|
8
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
9
|
-
cancel-in-progress: true
|
|
10
|
-
defaults:
|
|
11
|
-
run:
|
|
12
|
-
shell: bash
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
jobs:
|
|
16
|
-
|
|
17
|
-
codeql-analysis:
|
|
18
|
-
name: "CodeQL Analysis"
|
|
19
|
-
runs-on: ubuntu-latest
|
|
20
|
-
permissions:
|
|
21
|
-
security-events: write
|
|
22
|
-
|
|
23
|
-
steps:
|
|
24
|
-
- uses: actions/checkout@v3
|
|
25
|
-
with:
|
|
26
|
-
fetch-depth: 0
|
|
27
|
-
|
|
28
|
-
- name: Initialise CodeQL
|
|
29
|
-
uses: github/codeql-action/init@v2
|
|
30
|
-
with:
|
|
31
|
-
languages: 'javascript'
|
|
32
|
-
queries: security-and-quality
|
|
33
|
-
|
|
34
|
-
- name: Build
|
|
35
|
-
run: |
|
|
36
|
-
npm ci
|
|
37
|
-
npm run build
|
|
38
|
-
|
|
39
|
-
- name: Perform CodeQL Analysis
|
|
40
|
-
uses: github/codeql-action/analyze@v2
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
name: "Workflow Dispatch"
|
|
2
|
-
on: push
|
|
3
|
-
concurrency:
|
|
4
|
-
group: ${{ github.workflow }}-${{ github.ref }}
|
|
5
|
-
cancel-in-progress: true
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
|
|
10
|
-
call-lint:
|
|
11
|
-
name: "Lint"
|
|
12
|
-
uses: ./.github/workflows/lint.yml
|
|
13
|
-
|
|
14
|
-
call-build:
|
|
15
|
-
name: "Build & Test"
|
|
16
|
-
needs: call-lint
|
|
17
|
-
uses: ./.github/workflows/build.yml
|
|
18
|
-
|
|
19
|
-
call-test:
|
|
20
|
-
name: "Tests"
|
|
21
|
-
needs: call-build
|
|
22
|
-
uses: ./.github/workflows/test.yml
|
|
23
|
-
secrets: inherit
|
|
24
|
-
|
|
25
|
-
call-release:
|
|
26
|
-
name: "Release"
|
|
27
|
-
needs: call-test
|
|
28
|
-
if: ${{ github.ref_protected == true }}
|
|
29
|
-
uses: ./.github/workflows/release.yml
|
|
30
|
-
secrets: inherit
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
name: "Lint"
|
|
2
|
-
on:
|
|
3
|
-
workflow_call:
|
|
4
|
-
defaults:
|
|
5
|
-
run:
|
|
6
|
-
shell: bash
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
jobs:
|
|
10
|
-
|
|
11
|
-
md-link-check:
|
|
12
|
-
name: "Broken Markdown links"
|
|
13
|
-
runs-on: ubuntu-latest
|
|
14
|
-
|
|
15
|
-
steps:
|
|
16
|
-
- uses: actions/checkout@v3
|
|
17
|
-
|
|
18
|
-
- name: Run Markdown link check
|
|
19
|
-
uses: gaurav-nelson/github-action-markdown-link-check@v1
|
|
20
|
-
with:
|
|
21
|
-
config-file: '.github/linters/mlc_config.json'
|
|
22
|
-
use-quiet-mode: 'yes'
|
|
23
|
-
|
|
24
|
-
super-lint:
|
|
25
|
-
name: "Super Linter"
|
|
26
|
-
runs-on: ubuntu-latest
|
|
27
|
-
|
|
28
|
-
steps:
|
|
29
|
-
- uses: actions/checkout@v3
|
|
30
|
-
with:
|
|
31
|
-
fetch-depth: 0 # Required to fetch version
|
|
32
|
-
|
|
33
|
-
- name: Run Super Linter
|
|
34
|
-
uses: github/super-linter/slim@v4
|
|
35
|
-
env:
|
|
36
|
-
IGNORE_GITIGNORED_FILES: true
|
|
37
|
-
DEFAULT_BRANCH: main
|
|
38
|
-
LINTER_RULES_PATH: '.github/linters'
|
|
39
|
-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
40
|
-
LOG_LEVEL: WARN
|
|
41
|
-
VALIDATE_ALL_CODEBASE: true
|
|
42
|
-
MULTI_STATUS: true
|
|
43
|
-
|
|
44
|
-
VALIDATE_GITHUB_ACTIONS: true
|
|
45
|
-
VALIDATE_JAVASCRIPT_ES: true
|
|
46
|
-
VALIDATE_JSONC: true
|
|
47
|
-
VALIDATE_JSX: true
|
|
48
|
-
VALIDATE_MARKDOWN: true
|
|
49
|
-
VALIDATE_TSX: true
|
|
50
|
-
VALIDATE_TYPESCRIPT_ES: true
|
|
51
|
-
VALIDATE_YAML: true
|