@bct-app/game-engine 0.1.7 → 0.1.8

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.js CHANGED
@@ -160,7 +160,7 @@ var resolveSourceValue = (source, writableInputs, payloads, effector, snapshotSe
160
160
  }
161
161
  const characterIds = typeof payloadValue === "string" ? [payloadValue] : payloadValue;
162
162
  return characterIds.flatMap((id) => {
163
- return resolveFromCharacter ? resolveFromCharacter(id) : [];
163
+ return resolveFromCharacter ? resolveFromCharacter(id) : [id];
164
164
  });
165
165
  }
166
166
  return castOrValidate(payloadValue);
package/dist/index.mjs CHANGED
@@ -122,7 +122,7 @@ var resolveSourceValue = (source, writableInputs, payloads, effector, snapshotSe
122
122
  }
123
123
  const characterIds = typeof payloadValue === "string" ? [payloadValue] : payloadValue;
124
124
  return characterIds.flatMap((id) => {
125
- return resolveFromCharacter ? resolveFromCharacter(id) : [];
125
+ return resolveFromCharacter ? resolveFromCharacter(id) : [id];
126
126
  });
127
127
  }
128
128
  return castOrValidate(payloadValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bct-app/game-engine",
3
- "version": "0.1.7",
3
+ "version": "0.1.8",
4
4
  "description": "Game engine utilities for BCT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",