holosphere 1.1.15 → 1.1.17
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/compute.js +1 -1
- package/content.js +51 -33
- package/federation.js +3 -18
- package/global.js +7 -15
- package/hologram.js +39 -20
- package/holosphere-bundle.esm.js +99 -93
- package/holosphere-bundle.js +99 -93
- package/holosphere-bundle.min.js +14 -14
- package/holosphere.js +2 -2
- package/node.js +5 -8
- package/package.json +1 -1
- package/schema.js +1 -1
- package/utils.js +1 -1
package/holosphere.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @module holosphere
|
|
3
|
-
* @version 1.1.
|
|
3
|
+
* @version 1.1.17
|
|
4
4
|
* @description Holonic Geospatial Communication Infrastructure
|
|
5
5
|
* @author Roberto Valenti
|
|
6
6
|
* @license GPL-3.0-or-later
|
|
@@ -20,7 +20,7 @@ import * as ComputeOps from './compute.js';
|
|
|
20
20
|
import * as Utils from './utils.js';
|
|
21
21
|
|
|
22
22
|
// Define the version constant
|
|
23
|
-
const HOLOSPHERE_VERSION = '1.1.
|
|
23
|
+
const HOLOSPHERE_VERSION = '1.1.17';
|
|
24
24
|
|
|
25
25
|
class HoloSphere {
|
|
26
26
|
/**
|
package/node.js
CHANGED
|
@@ -39,10 +39,8 @@ export async function putNode(holoInstance, holon, lens, data) {
|
|
|
39
39
|
// Soul of the hologram that was *actually stored* at holon/lens/value
|
|
40
40
|
const storedHologramInstanceSoul = `${holoInstance.appname}/${holon}/${lens}/value`;
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
console.log(`Data (ID: ${data.id}) being put is a hologram. Added its instance soul ${storedHologramInstanceSoul} to its target ${data.value.soul}'s _holograms set.`);
|
|
45
|
-
} else {
|
|
42
|
+
targetNodeRef.get('_holograms').get(storedHologramInstanceSoul).put(true);
|
|
43
|
+
} else {
|
|
46
44
|
console.warn(`Data (ID: ${data.id}) being put is a hologram, but could not parse its soul ${data.value.soul} for tracking.`);
|
|
47
45
|
}
|
|
48
46
|
} catch (trackingError) {
|
|
@@ -204,9 +202,8 @@ export async function deleteNode(holoInstance, holon, lens, key) {
|
|
|
204
202
|
targetNodeRef.get('_holograms').get(deletedHologramSoul).put(null, (ack) => { // Remove the hologram entry completely
|
|
205
203
|
if (ack.err) {
|
|
206
204
|
console.warn(`[deleteNode] Error removing hologram ${deletedHologramSoul} from target ${targetSoul}:`, ack.err);
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
resolveTrack(); // Resolve regardless of ack error to not block main delete
|
|
205
|
+
}
|
|
206
|
+
resolveTrack(); // Resolve regardless of ack error to not block main delete
|
|
210
207
|
});
|
|
211
208
|
});
|
|
212
209
|
} else {
|
|
@@ -237,7 +234,7 @@ export async function deleteNode(holoInstance, holon, lens, key) {
|
|
|
237
234
|
console.error('Error in deleteNode:', error);
|
|
238
235
|
throw error;
|
|
239
236
|
}
|
|
240
|
-
}
|
|
237
|
+
}
|
|
241
238
|
|
|
242
239
|
// Export all node operations as default
|
|
243
240
|
export default {
|
package/package.json
CHANGED
package/schema.js
CHANGED
package/utils.js
CHANGED
|
@@ -287,7 +287,7 @@ export async function close(holoInstance) {
|
|
|
287
287
|
export function userName(holoInstance, holonId) {
|
|
288
288
|
if (!holonId) return null;
|
|
289
289
|
return `${holoInstance.appname}:${holonId}`;
|
|
290
|
-
}
|
|
290
|
+
}
|
|
291
291
|
|
|
292
292
|
// Export all utility operations as default
|
|
293
293
|
export default {
|