holosphere 1.1.13 → 1.1.15

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/holosphere.js CHANGED
@@ -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.12';
23
+ const HOLOSPHERE_VERSION = '1.1.15';
24
24
 
25
25
  class HoloSphere {
26
26
  /**
package/node.js CHANGED
@@ -237,4 +237,13 @@ export async function deleteNode(holoInstance, holon, lens, key) {
237
237
  console.error('Error in deleteNode:', error);
238
238
  throw error;
239
239
  }
240
- }
240
+ }
241
+
242
+ // Export all node operations as default
243
+ export default {
244
+ putNode,
245
+ getNode,
246
+ getNodeRef,
247
+ getNodeBySoul,
248
+ deleteNode
249
+ };
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "holosphere",
3
- "version": "1.1.13",
3
+ "version": "1.1.15",
4
4
  "description": "Holonic Geospatial Communication Infrastructure",
5
5
  "main": "holosphere.js",
6
+ "module": "holosphere.js",
6
7
  "types": "holosphere.d.ts",
7
8
  "type": "module",
8
9
  "scripts": {
@@ -11,7 +12,7 @@
11
12
  "prepare": "npm run build",
12
13
  "build:browser": "node build.js",
13
14
  "build:bundle": "node build.js",
14
- "prepublishOnly.disabled": "npm test && npm run build",
15
+ "prepublishOnly": "npm run build",
15
16
  "publish:cdn": "npm publish && echo 'Package published to npm and will be available on CDNs within minutes'",
16
17
  "publish:force": "npm publish --force && echo 'Package force published to npm and will be available on CDNs within minutes'",
17
18
  "prepublish:skip-tests": "npm run build"
@@ -33,7 +34,7 @@
33
34
  "testEnvironment": "node",
34
35
  "transform": {}
35
36
  },
36
- "browser": "holosphere-bundle.js",
37
+ "browser": "holosphere.js",
37
38
  "unpkg": "holosphere-bundle.js",
38
39
  "jsdelivr": "holosphere-bundle.js",
39
40
  "cdn": "holosphere-bundle.js",
@@ -58,7 +59,6 @@
58
59
  ],
59
60
  "exports": {
60
61
  ".": {
61
- "browser": "./holosphere-bundle.js",
62
62
  "import": "./holosphere.js",
63
63
  "require": "./holosphere.js",
64
64
  "default": "./holosphere.js"
package/schema.js CHANGED
@@ -129,4 +129,11 @@ export function clearSchemaCache(holoInstance, lens = null) {
129
129
  holoInstance.schemaCache.clear();
130
130
  return true;
131
131
  }
132
- }
132
+ }
133
+
134
+ // Export all schema operations as default
135
+ export default {
136
+ setSchema,
137
+ getSchema,
138
+ clearSchemaCache
139
+ };
package/utils.js CHANGED
@@ -287,4 +287,16 @@ 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
+
292
+ // Export all utility operations as default
293
+ export default {
294
+ getHolon,
295
+ getScalespace,
296
+ getHolonScalespace,
297
+ subscribe,
298
+ notifySubscribers,
299
+ generateId,
300
+ close,
301
+ userName
302
+ };