@digipair/engine 0.0.9 → 0.0.11

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/index.esm.js CHANGED
@@ -12457,10 +12457,10 @@ const executePins = async (settingsOrigin, context = {}, options = {
12457
12457
  const version = options.libraries[settings.library] || 'latest';
12458
12458
  const library = _config.LIBRARIES[settings.library] || await import(`${_config.BASE_URL}/${settings.library}@${version}/index.js`);
12459
12459
  const pins = library == null ? void 0 : library[settings.element];
12460
- return pins ? await pins(settings.properties, settings.pins, context) : {
12461
- command: 'error',
12462
- message: `[CommandService:executePins] pins "${settings.library}:${settings.element}" not found`
12463
- };
12460
+ if (!pins) {
12461
+ throw new Error(`Element ${settings.element} not found in library ${settings.library}`);
12462
+ }
12463
+ return await pins(settings.properties, settings.pins, context);
12464
12464
  };
12465
12465
  const generateElementFromPins = async (pinsSettings, context, options = {
12466
12466
  libraries: {}
@@ -1,3 +1,2 @@
1
1
  export * from './lib/engine';
2
2
  export * from './lib/pins-settings.interface';
3
- export * from './lib/experience.interface';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@digipair/engine",
3
- "version": "0.0.9",
3
+ "version": "0.0.11",
4
4
  "dependencies": {},
5
5
  "type": "module",
6
6
  "main": "./index.esm.js",
@@ -1,14 +0,0 @@
1
- import { PinsSettings } from './pins-settings.interface';
2
- export interface Experience {
3
- _id?: string;
4
- name: string;
5
- version: number;
6
- variables: {
7
- [key: string]: any;
8
- };
9
- libraries: {
10
- [key: string]: string;
11
- };
12
- scenes: PinsSettings[];
13
- environment?: PinsSettings;
14
- }