openvibers/openvibe.vision Commits
openvibe-shared v4.163.0 (was v4.159.0) (#122)
Changes
@@@ -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 -->@@@ -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",@@@ -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",@@@ -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"},@@@ -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);
@@ -324,5 +324,5 @@ Offer discovery is configured by `VISION_DEALS_SEARCH_URL` and `VISION_SHOES_SEA
@@ -324,5 +324,5 @@ Offer discovery is configured by `VISION_DEALS_SEARCH_URL` and `VISION_SHOES_SEA
<!-- versions:start -->
<!-- versions:start -->
- openvibe-contracts: v0.338.0
- openvibe-contracts: v0.338.0
- openvibe-sdk: v0.94.0
- openvibe-sdk: v0.94.0
-- openvibe-shared: v4.159.0
+- openvibe-shared: v4.163.0
<!-- versions:end -->
<!-- versions:end -->
@@ -10,11 +10,11 @@
@@ -10,11 +10,11 @@
"domain": "openvibe.vision",
"domain": "openvibe.vision",
"contracts": "openvibe-contracts v0.338.0",
"contracts": "openvibe-contracts v0.338.0",
"sdk": "openvibe-sdk v0.94.0",
"sdk": "openvibe-sdk v0.94.0",
- "shared": "openvibe-shared v4.159.0",
+ "shared": "openvibe-shared v4.163.0",
"packages": [
"packages": [
"openvibe-contracts v0.338.0",
"openvibe-contracts v0.338.0",
"openvibe-sdk v0.94.0",
"openvibe-sdk v0.94.0",
- "openvibe-shared v4.159.0"
+ "openvibe-shared v4.163.0"
],
],
"capabilities": [
"capabilities": [
"vision.image.ask",
"vision.image.ask",
@@ -20,7 +20,7 @@
@@ -20,7 +20,7 @@
"onnxruntime-node": "^1.31.1",
"onnxruntime-node": "^1.31.1",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
"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-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",
"pg": "^8.23.0",
"sharp": "^0.33.5"
"sharp": "^0.33.5"
},
},
@@ -2669,9 +2669,9 @@
@@ -2669,9 +2669,9 @@
}
}
},
},
"node_modules/openvibe-shared": {
"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",
"license": "MIT",
"dependencies": {
"dependencies": {
"jsonwebtoken": "^9.0.0",
"jsonwebtoken": "^9.0.0",
@@ -30,7 +30,7 @@
@@ -30,7 +30,7 @@
"onnxruntime-node": "^1.31.1",
"onnxruntime-node": "^1.31.1",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.338.0",
"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-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",
"pg": "^8.23.0",
"sharp": "^0.33.5"
"sharp": "^0.33.5"
},
},
@@ -78,7 +78,9 @@ function foldScript(id) {
@@ -78,7 +78,9 @@ function foldScript(id) {
* fold. { start, end, html } — the section that holds the needle.
* fold. { start, end, html } — the section that holds the needle.
*/
*/
function part(html, 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;
if (at < 0) return null;
const start = html.lastIndexOf('<section', at);
const start = html.lastIndexOf('<section', at);
const close = html.indexOf('</section>', at);
const close = html.indexOf('</section>', at);