eligius 2.3.0 → 2.3.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/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -70,9 +70,10 @@ function findMatchingOperationIndex(operation) {
|
|
|
70
70
|
*/
|
|
71
71
|
function getPropertyChainValue(propertyChain, sourceObject) {
|
|
72
72
|
let suffix = null;
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
if (
|
|
73
|
+
const chain = propertyChain.flatMap((segment) => segment.replace(/\[(\d+)\]/g, ".$1").split(".").filter((part) => part.length > 0));
|
|
74
|
+
const result = chain.reduce((currentInstance, prop, index) => {
|
|
75
|
+
if (!currentInstance) throw new Error(`Property chain '${chain.join(".")}' cannot be resolved.`);
|
|
76
|
+
if (index === chain.length - 1) {
|
|
76
77
|
const parts = prop.split("+");
|
|
77
78
|
if (parts.length > 1) {
|
|
78
79
|
prop = parts[0];
|
|
@@ -9426,7 +9427,9 @@ var EligiusEngine = class EligiusEngine {
|
|
|
9426
9427
|
if (isSeekable$1(this._activePositionSource)) await this._activePositionSource.seek(position);
|
|
9427
9428
|
await this._executeSeekActions(position);
|
|
9428
9429
|
});
|
|
9430
|
+
else this._lastPosition = -1;
|
|
9429
9431
|
if (this._activePlaylist) this._activePlaylist.selectItem(uri);
|
|
9432
|
+
await this._activePositionSource.activate();
|
|
9430
9433
|
}
|
|
9431
9434
|
/**
|
|
9432
9435
|
* Initializes the engine by creating the HTML layout and the first time line
|