@rohal12/twee-ts 1.1.2 → 1.2.0
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/bin/twee-ts.js +214 -142
- package/dist/bin/twee-ts.js.map +1 -1
- package/dist/{chunk-QTXRKA4T.js → chunk-S4SWCQLW.js} +211 -136
- package/dist/chunk-S4SWCQLW.js.map +1 -0
- package/dist/index.cjs +244 -171
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -2
- package/dist/index.d.ts +3 -2
- package/dist/index.js +213 -140
- package/dist/index.js.map +1 -1
- package/dist/plugins/rollup.d.ts +7 -1
- package/dist/plugins/rollup.js +2 -2
- package/dist/plugins/rollup.js.map +1 -1
- package/dist/plugins/vite.d.ts +7 -1
- package/dist/plugins/vite.js +2 -2
- package/dist/plugins/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-QTXRKA4T.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -248,9 +248,10 @@ declare function storyInspect(story: Story): StoryMap;
|
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
250
|
* Apply tag aliases: for each passage carrying an alias tag, add the canonical
|
|
251
|
-
* tag if not already present.
|
|
251
|
+
* tag if not already present. Returns new passage objects where tags changed;
|
|
252
|
+
* unchanged passages are returned as-is. Idempotent — safe to call multiple times.
|
|
252
253
|
*/
|
|
253
|
-
declare function applyTagAliases(passages: Passage[], aliases: Record<string, string>):
|
|
254
|
+
declare function applyTagAliases(passages: readonly Passage[], aliases: Record<string, string>): Passage[];
|
|
254
255
|
|
|
255
256
|
/**
|
|
256
257
|
* Twee 3 state-machine lexer implemented as a synchronous generator.
|
package/dist/index.d.ts
CHANGED
|
@@ -248,9 +248,10 @@ declare function storyInspect(story: Story): StoryMap;
|
|
|
248
248
|
|
|
249
249
|
/**
|
|
250
250
|
* Apply tag aliases: for each passage carrying an alias tag, add the canonical
|
|
251
|
-
* tag if not already present.
|
|
251
|
+
* tag if not already present. Returns new passage objects where tags changed;
|
|
252
|
+
* unchanged passages are returned as-is. Idempotent — safe to call multiple times.
|
|
252
253
|
*/
|
|
253
|
-
declare function applyTagAliases(passages: Passage[], aliases: Record<string, string>):
|
|
254
|
+
declare function applyTagAliases(passages: readonly Passage[], aliases: Record<string, string>): Passage[];
|
|
254
255
|
|
|
255
256
|
/**
|
|
256
257
|
* Twee 3 state-machine lexer implemented as a synchronous generator.
|