Skip to content

Commit 9fdbfdd

Browse files
authored
Merge pull request #39 from advanced-rest-client/develop
feat: security namespace updates
2 parents 96c4f21 + 01a9457 commit 9fdbfdd

File tree

8 files changed

+1415
-1492
lines changed

8 files changed

+1415
-1492
lines changed

.github/workflows/deployment.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,18 @@ env:
33
FORCE_COLOR: 1
44
on:
55
push:
6+
branches:
7+
- master
8+
- main
9+
- develop
610
pull_request:
711
branches:
812
- master
913
- main
1014
jobs:
1115
test_linux:
12-
name: ${{ matrix.os }}
13-
strategy:
14-
fail-fast: false
15-
matrix:
16-
os: [ubuntu-20.04]
17-
# os: [ubuntu-18.04, ubuntu-20.04]
18-
runs-on: ${{ matrix.os }}
16+
name: Ubuntu
17+
runs-on: ubuntu-latest
1918
steps:
2019
- uses: actions/checkout@v2
2120
- uses: actions/setup-node@v1
@@ -87,6 +86,7 @@ jobs:
8786
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8887
with:
8988
tag_name: v${{ steps.package-node-version.outputs.version }}
89+
release_name: v${{ steps.package-node-version.outputs.version }}
9090
body: |
9191
${{ steps.Changelog.outputs.changelog }}
9292
draft: false

package-lock.json

Lines changed: 1069 additions & 1192 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@api-components/amf-helper-mixin",
33
"description": "A mixin with common functions user by most AMF components to compute AMF values",
4-
"version": "4.3.9",
4+
"version": "4.3.10",
55
"license": "Apache-2.0",
66
"main": "index.js",
77
"module": "index.js",
@@ -10,13 +10,15 @@
1010
"amf",
1111
"transformer"
1212
],
13-
"authors": [
14-
"Pawel Psztyc"
15-
],
13+
"author": {
14+
"name": "Pawel Uchida-Psztyc",
15+
"email": "[email protected]"
16+
},
1617
"contributors": [
1718
"Leandro Bauret",
1819
"Francisco Di Giandomenico",
19-
"Carolina Wright"
20+
"Carolina Wright",
21+
"Your name can be here!"
2022
],
2123
"repository": {
2224
"type": "git",
@@ -27,20 +29,20 @@
2729
"email": "[email protected]"
2830
},
2931
"devDependencies": {
30-
"@api-components/api-model-generator": "^0.2.10",
32+
"@api-components/api-model-generator": "^0.2.11",
3133
"@open-wc/eslint-config": "^4.3.0",
3234
"@open-wc/testing": "^2.5.33",
33-
"@web/dev-server": "^0.1.15",
34-
"@web/test-runner": "^0.13.1",
35-
"@web/test-runner-playwright": "^0.8.5",
36-
"eslint": "^7.24.0",
37-
"eslint-config-prettier": "^8.2.0",
35+
"@web/dev-server": "^0.1.17",
36+
"@web/test-runner": "^0.13.5",
37+
"@web/test-runner-playwright": "^0.8.6",
38+
"eslint": "^7.28.0",
39+
"eslint-config-prettier": "^8.3.0",
3840
"husky": "^6.0.0",
39-
"lint-staged": "^10.5.4",
40-
"lit-element": "^2.4.0",
41-
"lit-html": "^1.3.0",
42-
"sinon": "^10.0.0",
43-
"typescript": "^4.2.4",
41+
"lint-staged": "^11.0.0",
42+
"lit-element": "^2.5.1",
43+
"lit-html": "^1.4.1",
44+
"sinon": "^11.1.1",
45+
"typescript": "^4.3.2",
4446
"typescript-lit-html-plugin": "^0.9.0"
4547
},
4648
"scripts": {

src/AmfHelperMixin.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ interface AmfHelperMixin {
6363
* It is only useful for the element to resolve references.
6464
*/
6565
amf: object|object[]|undefined;
66+
_amf: object|object[]|undefined;
6667

6768
/**
6869
* This is an abstract method to be implemented by the components.

src/Namespace.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ interface Security {
5454
OAuth2Settings: string;
5555
OAuth2Flow: string;
5656
Scope: string;
57+
Settings: string;
58+
HttpSettings: string;
59+
ApiKeySettings: string;
60+
OpenIdConnectSettings: string;
5761
security: string;
5862
scheme: string;
5963
schemes: string;
@@ -70,6 +74,8 @@ interface Security {
7074
tokenCredentialsUri: string;
7175
requestTokenUri: string;
7276
securityRequirement: string;
77+
openIdConnectUrl: string;
78+
bearerFormat: string;
7379
in: string;
7480
}
7581

src/Namespace.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,10 @@ ns.aml.vocabularies.security.OAuth1Settings = `${secKey}OAuth1Settings`;
7070
ns.aml.vocabularies.security.OAuth2Settings = `${secKey}OAuth2Settings`;
7171
ns.aml.vocabularies.security.OAuth2Flow = `${secKey}OAuth2Flow`;
7272
ns.aml.vocabularies.security.Scope = `${secKey}Scope`;
73+
ns.aml.vocabularies.security.Settings = `${secKey}Settings`;
74+
ns.aml.vocabularies.security.HttpSettings = `${secKey}HttpSettings`;
75+
ns.aml.vocabularies.security.ApiKeySettings = `${secKey}ApiKeySettings`;
76+
ns.aml.vocabularies.security.OpenIdConnectSettings = `${secKey}OpenIdConnectSettings`;
7377
ns.aml.vocabularies.security.security = `${secKey}security`;
7478
ns.aml.vocabularies.security.scheme = `${secKey}scheme`;
7579
ns.aml.vocabularies.security.schemes = `${secKey}schemes`;
@@ -86,6 +90,8 @@ ns.aml.vocabularies.security.signature = `${secKey}signature`;
8690
ns.aml.vocabularies.security.tokenCredentialsUri = `${secKey}tokenCredentialsUri`;
8791
ns.aml.vocabularies.security.requestTokenUri = `${secKey}requestTokenUri`;
8892
ns.aml.vocabularies.security.securityRequirement = `${secKey}SecurityRequirement`;
93+
ns.aml.vocabularies.security.openIdConnectUrl = `${secKey}openIdConnectUrl`;
94+
ns.aml.vocabularies.security.bearerFormat = `${secKey}bearerFormat`;
8995
ns.aml.vocabularies.security.in = `${secKey}in`;
9096
ns.aml.vocabularies.apiContract = {};
9197
ns.aml.vocabularies.http = ns.aml.vocabularies.apiContract;
@@ -222,7 +228,7 @@ ns.w3.key = 'http://www.w3.org/';
222228
ns.w3.rdfSyntax = {};
223229
ns.w3.rdfSyntax.key = `${ns.w3.key}1999/02/22-rdf-syntax-ns#`;
224230
ns.w3.rdfSyntax.toString = () => ns.w3.rdfSyntax.key;
225-
// TODO: is this unescesary?
231+
// TODO: is this unnecessary?
226232
ns.w3.rdfSyntax.member = `${ns.w3.rdfSyntax.key}member`;
227233
ns.w3.rdfSyntax.Seq = `${ns.w3.rdfSyntax.key}Seq`;
228234
ns.w3.rdfSchema = {};

0 commit comments

Comments
 (0)