Skip to content

Commit

Permalink
fix: SOE when validating
Browse files Browse the repository at this point in the history
  • Loading branch information
tpluscode committed Aug 17, 2022
1 parent 9f7ba4d commit adbddaa
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 26 deletions.
5 changes: 5 additions & 0 deletions .changeset/chilled-meals-happen.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"express-middleware-shacl": patch
---

Updated rdf-validate-shacl to 0.4.4
5 changes: 5 additions & 0 deletions .changeset/unlucky-tigers-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"express-middleware-shacl": patch
---

A Stack Overflow exception could be thrown when validating certain complex shapes
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"http-problem-details": "^0.1.5",
"middleware-async": "^1.3.1",
"rdf-ext": "^1.3.1",
"rdf-validate-shacl": "^0.2.6",
"rdf-validate-shacl": "^0.4.4",
"set-link": "^1.0.0"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,6 @@ describe('express-middleware-shacl', () => {
.set('content-type', 'text/turtle')

// then
await response.expect(200)
await response.expect(400)
})
})
62 changes: 38 additions & 24 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1257,7 +1257,7 @@
dependencies:
"@rdfjs/types" ">=1.0.1"

"@rdfjs/dataset@^1.0.0", "@rdfjs/dataset@^1.0.1", "@rdfjs/dataset@^1.1.1":
"@rdfjs/dataset@^1.0.1", "@rdfjs/dataset@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@rdfjs/dataset/-/dataset-1.1.1.tgz#0a91746284c517eba360a966939161f500392107"
integrity sha512-BNwCSvG0cz0srsG5esq6CQKJc1m8g/M0DZpLuiEp0MMpfwguXX7VeS8TCg4UUG3DV/DqEvhy83ZKSEjdsYseeA==
Expand Down Expand Up @@ -1354,18 +1354,23 @@
dependencies:
"@rdfjs/to-ntriples" "^1.0.2"

"@rdfjs/term-set@^1.0.0", "@rdfjs/term-set@^1.0.1":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@rdfjs/term-set/-/term-set-1.0.1.tgz#f753f37c495e85ab91e62ec93ab7c6adea4b507b"
integrity sha512-7+pSdm8R1nhSyP1xEqcQYFTARD/2iLr98tiAsSUfykCg0T0LrZ6j/3EEKmcKTWLMazMA9deRfmjPvzqMFwLBig==
"@rdfjs/term-set@^1.0.1", "@rdfjs/term-set@^1.1.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@rdfjs/term-set/-/term-set-1.1.0.tgz#36adb73683262e94f135f0bb0cdf71d983e70960"
integrity sha512-QQ4yzVe1Rvae/GN9SnOhweHNpaxQtnAjeOVciP/yJ0Gfxtbphy2tM56ZsRLV04Qq5qMcSclZIe6irYyEzx/UwQ==
dependencies:
"@rdfjs/to-ntriples" "^1.0.2"
"@rdfjs/to-ntriples" "^2.0.0"

"@rdfjs/to-ntriples@^1.0.1", "@rdfjs/to-ntriples@^1.0.2":
version "1.0.2"
resolved "https://registry.yarnpkg.com/@rdfjs/to-ntriples/-/to-ntriples-1.0.2.tgz#c2fe8f6e8d8010c2315c0a816d1cd42a4447965e"
integrity sha512-ngw5XAaGHjgGiwWWBPGlfdCclHftonmbje5lMys4G2j4NvfExraPIuRZgjSnd5lg4dnulRVUll8tRbgKO+7EDA==

"@rdfjs/to-ntriples@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@rdfjs/to-ntriples/-/to-ntriples-2.0.0.tgz#ad70822e2ddf068fd1291b505e5c678c17af7a30"
integrity sha512-nDhpfhx6W6HKsy4HjyLp3H1nbrX1CiUCWhWQwKcYZX1s9GOjcoQTwY7GUUbVec0hzdJDQBR6gnjxtENBDt482Q==

"@rdfjs/types@*", "@rdfjs/types@>=1.0.1":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@rdfjs/types/-/types-1.1.0.tgz#098f180b7cccb03bb416c7b4d03baaa9d480e36b"
Expand Down Expand Up @@ -2315,10 +2320,10 @@ clownface-shacl-path@^1.3.2:
"@tpluscode/rdf-ns-builders" "^2.0.0"
"@tpluscode/rdf-string" "^0.2.26"

clownface@^1, clownface@^1.0.0, clownface@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/clownface/-/clownface-1.2.0.tgz#a53139e3c2bcc8638d7eb0c339ac31fa3ed12255"
integrity sha512-01iluBG+GPzFFFvFPhZxuWf8gU8mQVdm6gkvI71xl4fJyJSX7VpX3US4LbMC+0D6+KK75C+Q9AFtYpzv3fKvmg==
clownface@^1, clownface@^1.2.0, clownface@^1.4.0:
version "1.5.1"
resolved "https://registry.yarnpkg.com/clownface/-/clownface-1.5.1.tgz#5471f462aa8a5945ad878305b832361214424759"
integrity sha512-Ko8N/UFsnhEGmPlyE1bUFhbRhVgDbxqlIjcqxtLysc4dWaY0A7iCdg3savhAxs7Lheb7FCygIyRh7ADYZWVIng==
dependencies:
"@rdfjs/data-model" "^1.1.0"
"@rdfjs/namespace" "^1.0.0"
Expand Down Expand Up @@ -2523,7 +2528,7 @@ debug@^3.2.7:
dependencies:
ms "^2.1.1"

debug@^4.0.0, debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.2.0, debug@^4.3.2, debug@^4.3.4:
debug@^4.0.1, debug@^4.1.0, debug@^4.1.1, debug@^4.2.0, debug@^4.3.2, debug@^4.3.4:
version "4.3.4"
resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865"
integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==
Expand Down Expand Up @@ -5058,6 +5063,14 @@ rdf-js@^4.0.2:
dependencies:
"@rdfjs/types" "*"

rdf-literal@^1.3.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/rdf-literal/-/rdf-literal-1.3.0.tgz#7524f09e51ae25ca03b1d600260a0f6834fe0baf"
integrity sha512-5u5L4kPYNZANie5AE4gCXqwpNO/p9E/nUcDurk05XAOJT/pt9rQlDk6+BX7j3dNSee3h9GS4xlLoWxQDj7sXtg==
dependencies:
"@rdfjs/types" "*"
rdf-data-factory "^1.1.0"

rdf-normalize@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/rdf-normalize/-/rdf-normalize-1.0.0.tgz#53496baf362cce9d9fca1f2216c6c30007f99cca"
Expand All @@ -5079,25 +5092,26 @@ rdf-utils-fs@^2.2.0:
"@rdfjs/formats-common" "^2.2.0"
readable-stream "^3.6.0"

rdf-validate-datatype@^0.1.1:
version "0.1.3"
resolved "https://registry.yarnpkg.com/rdf-validate-datatype/-/rdf-validate-datatype-0.1.3.tgz#b6ec3302360b1193a907ad50ab3a5e29d4508aef"
integrity sha512-/ySE6+Z7Hj7Qc74aosMg59HeKoHtcKkYCqYME4v+xYWWLpHGNICwrRzOBatPvwB+790J58otMDBd7XMAu7cbFg==
rdf-validate-datatype@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/rdf-validate-datatype/-/rdf-validate-datatype-0.1.4.tgz#bef7267a84d56344b75b91135254285842674b0d"
integrity sha512-NA2Nv2mf3nGDr9eaefHfSkaTEDh68PPPbylgvXXeAxoU5uKCP1siJjIRzeVD2+IfUfNqTCUrO6F/6Os0YVLFiw==
dependencies:
"@rdfjs/namespace" "^1.1.0"
"@rdfjs/to-ntriples" "^1.0.2"

rdf-validate-shacl@^0.2.6:
version "0.2.6"
resolved "https://registry.yarnpkg.com/rdf-validate-shacl/-/rdf-validate-shacl-0.2.6.tgz#47cea1a2fc01cc8de31ffb95dfa369734c88f013"
integrity sha512-u+5hJ8hsxgd54Ll+yWrjLBiXmsDWsBoQCx180fkJSOfmfwqugRQqRyLpFv3c5k38MhAJS+vVTz+me4hwpe7ENw==
rdf-validate-shacl@^0.4.4:
version "0.4.4"
resolved "https://registry.yarnpkg.com/rdf-validate-shacl/-/rdf-validate-shacl-0.4.4.tgz#6f3d8b0bb30539a0f7575dc4f98a8bb7ea44c520"
integrity sha512-LuayoHFEN0VYv2YASBaHW2cAQVkFZS9FHZYY1QZPq0NmNQPff6v0vLWqnX32T2zPpz0CXu5I/iRrfsnO9nSL5A==
dependencies:
"@rdfjs/dataset" "^1.0.0"
"@rdfjs/dataset" "^1.1.1"
"@rdfjs/namespace" "^1.0.0"
"@rdfjs/term-set" "^1.0.0"
clownface "^1.0.0"
debug "^4.0.0"
rdf-validate-datatype "^0.1.1"
"@rdfjs/term-set" "^1.1.0"
clownface "^1.4.0"
debug "^4.3.2"
rdf-literal "^1.3.0"
rdf-validate-datatype "^0.1.4"

rdfxml-streaming-parser@^1.4.0:
version "1.5.0"
Expand Down

0 comments on commit adbddaa

Please sign in to comment.