openvibers/openvibe.vision Commits

openvibe-shared v4.163.0 (was v4.159.0) (#122)

OP OpenVibers committed 4 days ago · f5433cde7d · 5 files, +11 −9

* openvibe-shared v4.163.0 (was v4.159.0)

Opened by scripts/pin-bump.js in OpenVibers/OpenVibe.Shared after the v4.163.0 release.

* Folds find their heading with Shared's section icon (">Title</span></h2>" since 4.160.0)

Changes

ddiff --git a/README.md b/README.md
iindex f2a6417..b7caaaf 100644
---- a/README.md
++++ b/README.md
@@@ -324,5 +324,5 @@ Offer discovery is configured by `VISION_DEALS_SEARCH_URL` and `VISION_SHOES_SEA
<!-- versions:start -->
- openvibe-contracts: v0.338.0
- openvibe-sdk: v0.94.0
--- openvibe-shared: v4.159.0
++- openvibe-shared: v4.163.0
<!-- versions:end -->
ddiff --git a/STATUS.json b/STATUS.json
iindex 4b77d39..8352a02 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -10,11 +10,11 @@
"domain": "openvibe.vision",
"contracts": "openvibe-contracts v0.338.0",
"sdk": "openvibe-sdk v0.94.0",
-- "shared": "openvibe-shared v4.159.0",
++ "shared": "openvibe-shared v4.163.0",
"packages": [
"openvibe-contracts v0.338.0",
"openvibe-sdk v0.94.0",
-- "openvibe-shared v4.159.0"
++ "openvibe-shared v4.163.0"
],
"capabilities": [
"vision.image.ask",
ddiff --git a/package-lock.json b/package-lock.json
iindex d696c0e..3c0ec2d 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -20,7 +20,7 @@
"onnxruntime-node": "^1.31.1",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.159.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.163.0",
"pg": "^8.23.0",
"sharp": "^0.33.5"
},
@@@ -2669,9 +2669,9 @@
}
},
"node_modules/openvibe-shared": {
-- "version": "4.159.0",
-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.159.0",
-- "integrity": "sha512-dXIQtIqyMRotrZXp82lVBQjWqV07cSiepebKU7kzHU8mb+TQXFkY/EPMHRJwusl5Ujat0dYSdY3PuJtQ7r5bUQ==",
++ "version": "4.163.0",
++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.163.0",
++ "integrity": "sha512-sQlvffOpQRrKS73GkptsSWebSQO5q2SFgUGolGFxH7Ix5NCTarPaD1VUAX6Qeru/mZaW99v+Nuu89rJ+rVaWfw==",
"license": "MIT",
"dependencies": {
"jsonwebtoken": "^9.0.0",
ddiff --git a/package.json b/package.json
iindex 2b2bf84..ea5e8d3 100644
---- a/package.json
++++ b/package.json
@@@ -30,7 +30,7 @@
"onnxruntime-node": "^1.31.1",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
"openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.94.0",
-- "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.159.0",
++ "openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.163.0",
"pg": "^8.23.0",
"sharp": "^0.33.5"
},
ddiff --git a/server/render/short.js b/server/render/short.js
iindex 7f9ca30..df4abf9 100644
---- a/server/render/short.js
++++ b/server/render/short.js
@@@ -78,7 +78,9 @@ function foldScript(id) {
* fold. { start, end, html } — the section that holds the needle.
*/
function part(html, needle) {
-- const at = html.indexOf(needle);
++ // A heading reads ">Title</h2>", or ">Title</span></h2>" since openvibe-shared 4.160.0 put an icon tile beside it.
++ let at = html.indexOf(needle);
++ if (at < 0 && /<\/h2>$/.test(needle)) at = html.indexOf(needle.replace(/<\/h2>$/, '</span></h2>'));
if (at < 0) return null;
const start = html.lastIndexOf('<section', at);
const close = html.indexOf('</section>', at);