@thatopen/services 0.3.4 → 0.3.5

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/cli.js CHANGED
@@ -10981,9 +10981,15 @@ function buildEngineScript(bundleCode, accessToken, apiUrl, executionParams) {
10981
10981
  return `/* eslint-disable */
10982
10982
  const { EngineServicesClient } = require('@thatopen/services');
10983
10983
 
10984
- const OBC = require('@thatopen/components');
10985
- const THREE = require('three');
10986
- let WEBIFC; try { WEBIFC = require('web-ifc'); } catch {}
10984
+ // Engine globals are BEST-EFFORT: a cloud component that doesn't touch the 3D
10985
+ // engine (e.g. one that only uses thatOpenServices) must still run. Each is
10986
+ // optional, and @thatopen/components also resolves the beta package — under
10987
+ // --beta the dep is installed as @thatopen-platform/components-beta, so a hard
10988
+ // require('@thatopen/components') would throw before main() runs.
10989
+ const tryRequire = (...names) => { for (const n of names) { try { return require(n); } catch {} } return undefined; };
10990
+ const OBC = tryRequire('@thatopen/components', '@thatopen-platform/components-beta');
10991
+ const THREE = tryRequire('three');
10992
+ const WEBIFC = tryRequire('web-ifc');
10987
10993
  const fs = require('fs');
10988
10994
 
10989
10995
  const executionReporter = {
@@ -114,6 +114,11 @@ Builds, zips (`dist/bundle.zip`), and uploads a new version to the platform —
114
114
  or a **component** (a component also ships its `declarations.json`). Re-run it any time to
115
115
  push a new version.
116
116
 
117
+ Once published, it shows up at **https://platform.thatopen.com/dashboard/data** — an **app**
118
+ under **Apps**, a **cloud component** under **Components**. Either way it isn't running
119
+ anywhere yet: to actually use it, **add it to one of your projects** from there. (A cloud
120
+ component, once added to a project, is then triggered by an app or an automation in it.)
121
+
117
122
  ---
118
123
 
119
124
  ## Rules for you, the assistant
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "access": "public"
16
16
  },
17
17
  "private": false,
18
- "version": "0.3.4",
18
+ "version": "0.3.5",
19
19
  "main": "dist/index.cjs.js",
20
20
  "module": "dist/index.es.js",
21
21
  "types": "dist/index.d.ts",