@hardlydifficult/text 1.0.10 → 1.0.12
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/README.md +96 -62
- package/dist/formatYaml.d.ts +9 -0
- package/dist/formatYaml.d.ts.map +1 -0
- package/dist/formatYaml.js +25 -0
- package/dist/formatYaml.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# @hardlydifficult/text
|
|
2
2
|
|
|
3
|
-
Text utilities for error formatting, template replacement, chunking, and line numbering.
|
|
3
|
+
Text utilities for error formatting, template replacement, chunking, slugification, duration formatting, YAML/JSON conversion, linkification, and line numbering.
|
|
4
4
|
|
|
5
5
|
## Installation
|
|
6
6
|
|
|
@@ -8,25 +8,35 @@ Text utilities for error formatting, template replacement, chunking, and line nu
|
|
|
8
8
|
npm install @hardlydifficult/text
|
|
9
9
|
```
|
|
10
10
|
|
|
11
|
-
##
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import * as text from "@hardlydifficult/text";
|
|
15
|
+
|
|
16
|
+
// Quick example
|
|
17
|
+
const output = text.replaceTemplate("Hello {{name}}!", { name: "World" });
|
|
18
|
+
console.log(output); // "Hello World!"
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Error Handling
|
|
12
22
|
|
|
13
23
|
### `getErrorMessage(err: unknown): string`
|
|
14
24
|
|
|
15
|
-
Extract a message string from an unknown error.
|
|
25
|
+
Extract a message string from an unknown error.
|
|
16
26
|
|
|
17
27
|
```typescript
|
|
18
28
|
import { getErrorMessage } from "@hardlydifficult/text";
|
|
19
29
|
|
|
20
30
|
try {
|
|
21
|
-
|
|
31
|
+
throw new Error("Something went wrong");
|
|
22
32
|
} catch (err) {
|
|
23
|
-
console.error(getErrorMessage(err));
|
|
33
|
+
console.error(getErrorMessage(err)); // "Something went wrong"
|
|
24
34
|
}
|
|
25
35
|
```
|
|
26
36
|
|
|
27
37
|
### `formatError(err: unknown, context?: string): string`
|
|
28
38
|
|
|
29
|
-
Format an error
|
|
39
|
+
Format an error with an optional context prefix.
|
|
30
40
|
|
|
31
41
|
```typescript
|
|
32
42
|
import { formatError } from "@hardlydifficult/text";
|
|
@@ -37,11 +47,19 @@ formatError(new Error("not found")); // "not found"
|
|
|
37
47
|
|
|
38
48
|
### `formatErrorForLog(err: unknown): string`
|
|
39
49
|
|
|
40
|
-
Format an error for logging. Returns
|
|
50
|
+
Format an error for logging. Returns `err.message` for `Error` instances, `String(err)` otherwise.
|
|
51
|
+
|
|
52
|
+
```typescript
|
|
53
|
+
import { formatErrorForLog } from "@hardlydifficult/text";
|
|
54
|
+
|
|
55
|
+
formatErrorForLog(new Error("Database error")); // "Database error"
|
|
56
|
+
```
|
|
57
|
+
|
|
58
|
+
## Template Replacement
|
|
41
59
|
|
|
42
60
|
### `replaceTemplate(template: string, values: Record<string, string>): string`
|
|
43
61
|
|
|
44
|
-
Replace `{{variable}}` placeholders with provided values.
|
|
62
|
+
Replace `{{variable}}` placeholders with provided values.
|
|
45
63
|
|
|
46
64
|
```typescript
|
|
47
65
|
import { replaceTemplate } from "@hardlydifficult/text";
|
|
@@ -55,7 +73,7 @@ replaceTemplate("Hello {{name}}, welcome to {{place}}!", {
|
|
|
55
73
|
|
|
56
74
|
### `extractPlaceholders(template: string): string[]`
|
|
57
75
|
|
|
58
|
-
Extract all unique placeholder names from a template.
|
|
76
|
+
Extract all unique placeholder names from a template string.
|
|
59
77
|
|
|
60
78
|
```typescript
|
|
61
79
|
import { extractPlaceholders } from "@hardlydifficult/text";
|
|
@@ -63,33 +81,49 @@ import { extractPlaceholders } from "@hardlydifficult/text";
|
|
|
63
81
|
extractPlaceholders("{{name}} is in {{place}}"); // ["name", "place"]
|
|
64
82
|
```
|
|
65
83
|
|
|
84
|
+
## Text Processing
|
|
85
|
+
|
|
66
86
|
### `chunkText(text: string, maxLength: number): string[]`
|
|
67
87
|
|
|
68
|
-
Split text into chunks of at most `maxLength` characters
|
|
88
|
+
Split text into chunks of at most `maxLength` characters, preferring line breaks and spaces.
|
|
69
89
|
|
|
70
90
|
```typescript
|
|
71
91
|
import { chunkText } from "@hardlydifficult/text";
|
|
72
92
|
|
|
73
|
-
const
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
93
|
+
const text = "Line 1\nLine 2\nThis is a very long line that needs to be chunked.";
|
|
94
|
+
const chunks = chunkText(text, 20);
|
|
95
|
+
// ["Line 1\nLine 2", "This is a very", "long line that", "needs to be", "chunked."]
|
|
77
96
|
```
|
|
78
97
|
|
|
79
98
|
### `slugify(input: string, maxLength?: number): string`
|
|
80
99
|
|
|
81
|
-
Convert a string to a URL/filename-safe slug.
|
|
100
|
+
Convert a string to a URL/filename-safe slug.
|
|
82
101
|
|
|
83
102
|
```typescript
|
|
84
103
|
import { slugify } from "@hardlydifficult/text";
|
|
85
104
|
|
|
86
105
|
slugify("My Feature Name!"); // "my-feature-name"
|
|
87
106
|
slugify("My Feature Name!", 10); // "my-feature"
|
|
107
|
+
slugify(" spaces & symbols! "); // "spaces-symbols"
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
### `formatWithLineNumbers(content: string, startLine?: number): string`
|
|
111
|
+
|
|
112
|
+
Format text content with right-aligned line numbers.
|
|
113
|
+
|
|
114
|
+
```typescript
|
|
115
|
+
import { formatWithLineNumbers } from "@hardlydifficult/text";
|
|
116
|
+
|
|
117
|
+
formatWithLineNumbers("foo\nbar\nbaz");
|
|
118
|
+
// " 1: foo\n 2: bar\n 3: baz"
|
|
119
|
+
|
|
120
|
+
formatWithLineNumbers("hello\nworld", 10);
|
|
121
|
+
// "10: hello\n11: world"
|
|
88
122
|
```
|
|
89
123
|
|
|
90
124
|
### `formatDuration(ms: number): string`
|
|
91
125
|
|
|
92
|
-
Format milliseconds as a
|
|
126
|
+
Format milliseconds as a human-readable duration string.
|
|
93
127
|
|
|
94
128
|
```typescript
|
|
95
129
|
import { formatDuration } from "@hardlydifficult/text";
|
|
@@ -100,9 +134,11 @@ formatDuration(500); // "<1s"
|
|
|
100
134
|
formatDuration(90_000_000); // "1d 1h"
|
|
101
135
|
```
|
|
102
136
|
|
|
103
|
-
|
|
137
|
+
## Format Conversion
|
|
104
138
|
|
|
105
|
-
|
|
139
|
+
### `convertFormat(content: string, to: "json" | "yaml"): string`
|
|
140
|
+
|
|
141
|
+
Convert between JSON and YAML string formats with automatic input detection.
|
|
106
142
|
|
|
107
143
|
```typescript
|
|
108
144
|
import { convertFormat } from "@hardlydifficult/text";
|
|
@@ -120,74 +156,72 @@ convertFormat("name: Alice\nage: 30", "json");
|
|
|
120
156
|
// }
|
|
121
157
|
```
|
|
122
158
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
### `formatWithLineNumbers(content: string, startLine?: number): string`
|
|
159
|
+
### `formatYaml(data: any): string`
|
|
126
160
|
|
|
127
|
-
|
|
161
|
+
Serialize data to clean YAML, using block literals for long strings containing colons.
|
|
128
162
|
|
|
129
163
|
```typescript
|
|
130
|
-
import {
|
|
164
|
+
import { formatYaml } from "@hardlydifficult/text";
|
|
131
165
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
// 2: bar
|
|
136
|
-
// 3: baz
|
|
166
|
+
formatYaml({ message: "Hello: World" });
|
|
167
|
+
// "message: >\n Hello: World"
|
|
168
|
+
```
|
|
137
169
|
|
|
138
|
-
|
|
139
|
-
formatWithLineNumbers("hello\nworld", 10);
|
|
140
|
-
// 10: hello
|
|
141
|
-
// 11: world
|
|
170
|
+
### `healYaml(dirtyYaml: string): string`
|
|
142
171
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
//
|
|
172
|
+
Clean malformed YAML by stripping code fences and quoting problematic scalars containing colons.
|
|
173
|
+
|
|
174
|
+
```typescript
|
|
175
|
+
import { healYaml } from "@hardlydifficult/text";
|
|
176
|
+
|
|
177
|
+
healYaml('message: "Hello: World"'); // "message: >\n Hello: World"
|
|
149
178
|
```
|
|
150
179
|
|
|
151
|
-
|
|
180
|
+
## Link Generation
|
|
152
181
|
|
|
153
|
-
### `createLinker(rules
|
|
182
|
+
### `createLinker(rules?: LinkRule[]): { linkText(text: string, options?: LinkOptions): string; apply: typeof linkText }`
|
|
154
183
|
|
|
155
|
-
Create a
|
|
184
|
+
Create a configurable linker to transform text patterns into platform-specific links.
|
|
156
185
|
|
|
157
186
|
Supports:
|
|
158
|
-
|
|
159
|
-
-
|
|
160
|
-
-
|
|
161
|
-
-
|
|
162
|
-
- deterministic conflict handling (priority, then longest match, then rule order)
|
|
187
|
+
- Plain strings
|
|
188
|
+
- Idempotent re-runs
|
|
189
|
+
- Automatic skipping of code spans and existing links
|
|
190
|
+
- Deterministic conflict resolution (priority, then longest match, then rule order)
|
|
163
191
|
|
|
164
192
|
```typescript
|
|
165
193
|
import { createLinker } from "@hardlydifficult/text";
|
|
166
194
|
|
|
167
195
|
const linker = createLinker()
|
|
168
196
|
.linear("fairmint")
|
|
169
|
-
.githubPr("Fairmint/api")
|
|
170
|
-
.custom(/\bINC-\d+\b/g, ({ match }) => `https://incident.io/${match}`);
|
|
197
|
+
.githubPr("Fairmint/api");
|
|
171
198
|
|
|
172
|
-
|
|
199
|
+
linker.linkText("Fix ENG-533 and PR#42", { format: "slack" });
|
|
173
200
|
// "Fix <https://linear.app/fairmint/issue/ENG-533|ENG-533> and <https://github.com/Fairmint/api/pull/42|PR#42>"
|
|
201
|
+
|
|
202
|
+
linker.linkText("Fix ENG-533 and PR#42", { format: "markdown" });
|
|
203
|
+
// "[ENG-533](https://linear.app/fairmint/issue/ENG-533) and [PR#42](https://github.com/Fairmint/api/pull/42)"
|
|
174
204
|
```
|
|
175
205
|
|
|
176
|
-
|
|
206
|
+
Supported formats: `slack` (`<url|text>`), `markdown`/`discord` (`[text](url)`), `plaintext` (raw URL).
|
|
207
|
+
|
|
208
|
+
## File Tree Rendering
|
|
209
|
+
|
|
210
|
+
### `buildFileTree(files: string[], options?: FileTreeOptions): string`
|
|
211
|
+
|
|
212
|
+
Build and render a hierarchical file tree with depth-based truncation and directory collapsing.
|
|
177
213
|
|
|
178
214
|
```typescript
|
|
179
|
-
|
|
180
|
-
{
|
|
181
|
-
pattern: /\b([A-Z]{2,6}-\d+)\b/g,
|
|
182
|
-
href: "https://linear.app/fairmint/issue/$1",
|
|
183
|
-
},
|
|
184
|
-
]);
|
|
185
|
-
```
|
|
215
|
+
import { buildFileTree } from "@hardlydifficult/text";
|
|
186
216
|
|
|
187
|
-
|
|
217
|
+
const files = [
|
|
218
|
+
"src/index.ts",
|
|
219
|
+
"src/utils.ts",
|
|
220
|
+
"src/components/Button.tsx",
|
|
221
|
+
];
|
|
188
222
|
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
223
|
+
buildFileTree(files);
|
|
224
|
+
// "src/\n├── index.ts\n├── utils.ts\n└── components/\n └── Button.tsx"
|
|
225
|
+
```
|
|
192
226
|
|
|
193
|
-
`
|
|
227
|
+
Options include `maxDepth`, `maxDirectories`, and `collapseDirectories` for controlling tree rendering behavior.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Serialize data to clean YAML with minimal quoting.
|
|
3
|
+
*
|
|
4
|
+
* Long strings containing `: ` are rendered as block-literal (`|`) scalars
|
|
5
|
+
* instead of double-quoted strings, improving readability for descriptive text.
|
|
6
|
+
* Short strings, numbers, booleans, and other values use default styling.
|
|
7
|
+
*/
|
|
8
|
+
export declare function formatYaml(data: unknown): string;
|
|
9
|
+
//# sourceMappingURL=formatYaml.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatYaml.d.ts","sourceRoot":"","sources":["../src/formatYaml.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,OAAO,GAAG,MAAM,CAgBhD"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.formatYaml = formatYaml;
|
|
4
|
+
const yaml_1 = require("yaml");
|
|
5
|
+
/**
|
|
6
|
+
* Serialize data to clean YAML with minimal quoting.
|
|
7
|
+
*
|
|
8
|
+
* Long strings containing `: ` are rendered as block-literal (`|`) scalars
|
|
9
|
+
* instead of double-quoted strings, improving readability for descriptive text.
|
|
10
|
+
* Short strings, numbers, booleans, and other values use default styling.
|
|
11
|
+
*/
|
|
12
|
+
function formatYaml(data) {
|
|
13
|
+
const doc = new yaml_1.Document(data);
|
|
14
|
+
(0, yaml_1.visit)(doc, {
|
|
15
|
+
Scalar(_key, node) {
|
|
16
|
+
if (typeof node.value === "string" &&
|
|
17
|
+
node.value.includes(": ") &&
|
|
18
|
+
node.value.length > 60) {
|
|
19
|
+
node.type = yaml_1.Scalar.BLOCK_LITERAL;
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
});
|
|
23
|
+
return doc.toString({ lineWidth: 0 });
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=formatYaml.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formatYaml.js","sourceRoot":"","sources":["../src/formatYaml.ts"],"names":[],"mappings":";;AASA,gCAgBC;AAzBD,+BAA+C;AAE/C;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,IAAa;IACtC,MAAM,GAAG,GAAG,IAAI,eAAQ,CAAC,IAAI,CAAC,CAAC;IAE/B,IAAA,YAAK,EAAC,GAAG,EAAE;QACT,MAAM,CAAC,IAAI,EAAE,IAAI;YACf,IACE,OAAO,IAAI,CAAC,KAAK,KAAK,QAAQ;gBAC9B,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC,IAAI,CAAC;gBACzB,IAAI,CAAC,KAAK,CAAC,MAAM,GAAG,EAAE,EACtB,CAAC;gBACD,IAAI,CAAC,IAAI,GAAG,aAAM,CAAC,aAAa,CAAC;YACnC,CAAC;QACH,CAAC;KACF,CAAC,CAAC;IAEH,OAAO,GAAG,CAAC,QAAQ,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC,CAAC;AACxC,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export type { BuildTreeOptions } from "./buildFileTree.js";
|
|
|
8
8
|
export { convertFormat } from "./convertFormat.js";
|
|
9
9
|
export type { TextFormat } from "./convertFormat.js";
|
|
10
10
|
export { formatWithLineNumbers } from "./formatWithLineNumbers.js";
|
|
11
|
+
export { formatYaml } from "./formatYaml.js";
|
|
11
12
|
export { healYaml } from "./healYaml.js";
|
|
12
13
|
export { Linker, createLinker, type LinkRule, type LinkHrefBuilder, type LinkMatchContext, type LinkerApplyOptions, type LinkerPlatform, } from "./linker.js";
|
|
13
14
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,MAAM,EACN,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAC9E,OAAO,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AACvE,YAAY,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EACL,MAAM,EACN,YAAY,EACZ,KAAK,QAAQ,EACb,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,cAAc,GACpB,MAAM,aAAa,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createLinker = exports.Linker = exports.healYaml = exports.formatWithLineNumbers = exports.convertFormat = exports.FILE_TREE_DEFAULTS = exports.buildFileTree = exports.formatDuration = exports.slugify = exports.chunkText = exports.extractPlaceholders = exports.replaceTemplate = exports.formatErrorForLog = exports.formatError = exports.getErrorMessage = void 0;
|
|
3
|
+
exports.createLinker = exports.Linker = exports.healYaml = exports.formatYaml = exports.formatWithLineNumbers = exports.convertFormat = exports.FILE_TREE_DEFAULTS = exports.buildFileTree = exports.formatDuration = exports.slugify = exports.chunkText = exports.extractPlaceholders = exports.replaceTemplate = exports.formatErrorForLog = exports.formatError = exports.getErrorMessage = void 0;
|
|
4
4
|
var errors_js_1 = require("./errors.js");
|
|
5
5
|
Object.defineProperty(exports, "getErrorMessage", { enumerable: true, get: function () { return errors_js_1.getErrorMessage; } });
|
|
6
6
|
Object.defineProperty(exports, "formatError", { enumerable: true, get: function () { return errors_js_1.formatError; } });
|
|
@@ -21,6 +21,8 @@ var convertFormat_js_1 = require("./convertFormat.js");
|
|
|
21
21
|
Object.defineProperty(exports, "convertFormat", { enumerable: true, get: function () { return convertFormat_js_1.convertFormat; } });
|
|
22
22
|
var formatWithLineNumbers_js_1 = require("./formatWithLineNumbers.js");
|
|
23
23
|
Object.defineProperty(exports, "formatWithLineNumbers", { enumerable: true, get: function () { return formatWithLineNumbers_js_1.formatWithLineNumbers; } });
|
|
24
|
+
var formatYaml_js_1 = require("./formatYaml.js");
|
|
25
|
+
Object.defineProperty(exports, "formatYaml", { enumerable: true, get: function () { return formatYaml_js_1.formatYaml; } });
|
|
24
26
|
var healYaml_js_1 = require("./healYaml.js");
|
|
25
27
|
Object.defineProperty(exports, "healYaml", { enumerable: true, get: function () { return healYaml_js_1.healYaml; } });
|
|
26
28
|
var linker_js_1 = require("./linker.js");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAA8E;AAArE,4GAAA,eAAe,OAAA;AAAE,wGAAA,WAAW,OAAA;AAAE,8GAAA,iBAAiB,OAAA;AACxD,6CAAqE;AAA5D,8GAAA,eAAe,OAAA;AAAE,kHAAA,mBAAmB,OAAA;AAC7C,+CAA2C;AAAlC,yGAAA,SAAS,OAAA;AAClB,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,uDAAuE;AAA9D,iHAAA,aAAa,OAAA;AAAE,sHAAA,kBAAkB,OAAA;AAE1C,uDAAmD;AAA1C,iHAAA,aAAa,OAAA;AAEtB,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,6CAAyC;AAAhC,uGAAA,QAAQ,OAAA;AACjB,yCAQqB;AAPnB,mGAAA,MAAM,OAAA;AACN,yGAAA,YAAY,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yCAA8E;AAArE,4GAAA,eAAe,OAAA;AAAE,wGAAA,WAAW,OAAA;AAAE,8GAAA,iBAAiB,OAAA;AACxD,6CAAqE;AAA5D,8GAAA,eAAe,OAAA;AAAE,kHAAA,mBAAmB,OAAA;AAC7C,+CAA2C;AAAlC,yGAAA,SAAS,OAAA;AAClB,2CAAuC;AAA9B,qGAAA,OAAO,OAAA;AAChB,yDAAqD;AAA5C,mHAAA,cAAc,OAAA;AACvB,uDAAuE;AAA9D,iHAAA,aAAa,OAAA;AAAE,sHAAA,kBAAkB,OAAA;AAE1C,uDAAmD;AAA1C,iHAAA,aAAa,OAAA;AAEtB,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA;AAC9B,iDAA6C;AAApC,2GAAA,UAAU,OAAA;AACnB,6CAAyC;AAAhC,uGAAA,QAAQ,OAAA;AACjB,yCAQqB;AAPnB,mGAAA,MAAM,OAAA;AACN,yGAAA,YAAY,OAAA"}
|