@inkweave/core 1.0.0 → 1.1.1
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.cjs +13 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -2
- package/dist/index.js.map +1 -1
- package/dist/types.d.ts +3 -0
- package/package.json +3 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,5 +9,5 @@ export { default as choicesStore } from './state/choices';
|
|
|
9
9
|
export { default as variablesStore } from './state/variables';
|
|
10
10
|
export { default as createSelectors } from './state/createSelectors';
|
|
11
11
|
export { createInkStory } from './create';
|
|
12
|
-
export type { InkStoryOptions, InkStoryContext, SaveData, FileHandler } from './types';
|
|
12
|
+
export type { InkStoryOptions, InkStoryContext, SaveData, FileHandler, ErrorHandler } from './types';
|
|
13
13
|
export { Choice, CHOICE_SEPARATOR, BaseFileHandler } from './types';
|
package/dist/index.js
CHANGED
|
@@ -8602,8 +8602,14 @@ function sl(o, n) {
|
|
|
8602
8602
|
if (eo(o))
|
|
8603
8603
|
a = new Wi(o);
|
|
8604
8604
|
else {
|
|
8605
|
-
const e = n != null && n.fileHandler ? new to(n.fileHandler) : null,
|
|
8606
|
-
|
|
8605
|
+
const e = (n == null ? void 0 : n.errorHandler) || null, f = n != null && n.fileHandler ? new to(n.fileHandler) : null, t = new Qa.CompilerOptions(
|
|
8606
|
+
null,
|
|
8607
|
+
[],
|
|
8608
|
+
!1,
|
|
8609
|
+
e,
|
|
8610
|
+
f
|
|
8611
|
+
);
|
|
8612
|
+
a = new Za.Compiler(o, t).Compile();
|
|
8607
8613
|
}
|
|
8608
8614
|
else
|
|
8609
8615
|
throw new Error("Invalid source type: expected string or Story");
|