@tokens-studio/tokenscript-interpreter 0.32.0 → 0.33.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/chunk-QP7M6WUR.js +6227 -0
- package/dist/chunk-QP7M6WUR.js.map +1 -0
- package/dist/cli.js +22 -1
- package/dist/cli.js.map +1 -1
- package/dist/lib/{chunk-QGOGK2VP.cjs → chunk-AQEJB7EO.cjs} +28 -2
- package/dist/lib/chunk-AQEJB7EO.cjs.map +1 -0
- package/dist/lib/{chunk-UYVHWJIC.js → chunk-DFN353G4.js} +27 -3
- package/dist/lib/chunk-DFN353G4.js.map +1 -0
- package/dist/lib/index.cjs +56 -48
- package/dist/lib/index.d.cts +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/lib/interpreter.cjs +32 -32
- package/dist/lib/interpreter.js +1 -1
- package/dist/lib/processor-node.cjs +3 -3
- package/dist/lib/processor-node.js +1 -1
- package/dist/lib/processor.cjs +21 -13
- package/dist/lib/processor.d.cts +14 -1
- package/dist/lib/processor.d.ts +14 -1
- package/dist/lib/processor.js +1 -1
- package/dist/lib/schema.cjs +3 -3
- package/dist/lib/schema.js +1 -1
- package/dist/processor/index.d.ts +14 -1
- package/dist/processor/index.js +22 -1
- package/dist/processor/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/lib/chunk-QGOGK2VP.cjs.map +0 -1
- package/dist/lib/chunk-UYVHWJIC.js.map +0 -1
package/dist/lib/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAQEJB7EO_cjs = require('./chunk-AQEJB7EO.cjs');
|
|
4
4
|
var chunkGKSWF7FF_cjs = require('./chunk-GKSWF7FF.cjs');
|
|
5
5
|
var chunkQYRJ6NSL_cjs = require('./chunk-QYRJ6NSL.cjs');
|
|
6
6
|
|
|
@@ -8,191 +8,199 @@ var chunkQYRJ6NSL_cjs = require('./chunk-QYRJ6NSL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ASTNodes", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkAQEJB7EO_cjs.ASTNodes; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ColorManager", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkAQEJB7EO_cjs.ColorManager; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "ColorSpecificationSchema", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkAQEJB7EO_cjs.ColorSpecificationSchema; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "Config", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkAQEJB7EO_cjs.Config; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "ConstantsSpecificationSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkAQEJB7EO_cjs.ConstantsSpecificationSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE_OPTIONS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkAQEJB7EO_cjs.DEFAULT_LANGUAGE_OPTIONS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "FunctionSpecificationSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkAQEJB7EO_cjs.FunctionSpecificationSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FunctionsManager", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkAQEJB7EO_cjs.FunctionsManager; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "IncompleteType", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkAQEJB7EO_cjs.IncompleteType; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "Interpreter", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkAQEJB7EO_cjs.Interpreter; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Lexer", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkAQEJB7EO_cjs.Lexer; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ParseState", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkAQEJB7EO_cjs.ParseState; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "Parser", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkAQEJB7EO_cjs.Parser; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PartialBinOpNode", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialBinOpNode; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PartialFunctionCallNode", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialFunctionCallNode; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "PartialParenNode", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialParenNode; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "PartialReferenceNode", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialReferenceNode; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "PartialStringNode", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialStringNode; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "PartialUnaryOpNode", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialUnaryOpNode; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "TokenResolver", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkAQEJB7EO_cjs.TokenResolver; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "UnitManager", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkAQEJB7EO_cjs.UnitManager; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "UnitSpecificationSchema", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkAQEJB7EO_cjs.UnitSpecificationSchema; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "ValidationSeverity", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkAQEJB7EO_cjs.ValidationSeverity; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "buildTokens", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkAQEJB7EO_cjs.buildTokens; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "builders", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkAQEJB7EO_cjs.builders_exports; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "collectAllReferences", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkAQEJB7EO_cjs.collectAllReferences; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "collectReferenceNodes", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkAQEJB7EO_cjs.collectReferenceNodes; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "errorClasses", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkAQEJB7EO_cjs.errorClasses; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "errorHelpers", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkAQEJB7EO_cjs.errorHelpers; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "evaluateExpression", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkAQEJB7EO_cjs.evaluateExpression; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "fetchAndRegisterSchemas", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkAQEJB7EO_cjs.fetchAndRegisterSchemas; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "fetchTokenScriptSchema", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkAQEJB7EO_cjs.fetchTokenScriptSchema; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "filterAST", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkAQEJB7EO_cjs.filterAST; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "flattenChildrenMap", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkAQEJB7EO_cjs.flattenChildrenMap; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "flattenChildrenObject", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkAQEJB7EO_cjs.flattenChildrenObject; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "getAffectedTokens", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkAQEJB7EO_cjs.getAffectedTokens; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "getBrokenReferences", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkAQEJB7EO_cjs.getBrokenReferences; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "getModifiedDependants", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkAQEJB7EO_cjs.getModifiedDependants; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "getRenamedReferences", {
|
|
162
162
|
enumerable: true,
|
|
163
|
-
get: function () { return
|
|
163
|
+
get: function () { return chunkAQEJB7EO_cjs.getRenamedReferences; }
|
|
164
164
|
});
|
|
165
165
|
Object.defineProperty(exports, "hasPartialNodes", {
|
|
166
166
|
enumerable: true,
|
|
167
|
-
get: function () { return
|
|
167
|
+
get: function () { return chunkAQEJB7EO_cjs.hasPartialNodes; }
|
|
168
168
|
});
|
|
169
169
|
Object.defineProperty(exports, "parseExpression", {
|
|
170
170
|
enumerable: true,
|
|
171
|
-
get: function () { return
|
|
171
|
+
get: function () { return chunkAQEJB7EO_cjs.parseExpression; }
|
|
172
172
|
});
|
|
173
173
|
Object.defineProperty(exports, "parseTolerantly", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkAQEJB7EO_cjs.parseTolerantly; }
|
|
176
176
|
});
|
|
177
177
|
Object.defineProperty(exports, "processTokenSets", {
|
|
178
178
|
enumerable: true,
|
|
179
|
-
get: function () { return
|
|
179
|
+
get: function () { return chunkAQEJB7EO_cjs.processTokenSets; }
|
|
180
180
|
});
|
|
181
181
|
Object.defineProperty(exports, "processTokens", {
|
|
182
182
|
enumerable: true,
|
|
183
|
-
get: function () { return
|
|
183
|
+
get: function () { return chunkAQEJB7EO_cjs.processTokens; }
|
|
184
184
|
});
|
|
185
185
|
Object.defineProperty(exports, "renameReferences", {
|
|
186
186
|
enumerable: true,
|
|
187
|
-
get: function () { return
|
|
187
|
+
get: function () { return chunkAQEJB7EO_cjs.renameReferences; }
|
|
188
188
|
});
|
|
189
189
|
Object.defineProperty(exports, "tokenizeTolerantly", {
|
|
190
190
|
enumerable: true,
|
|
191
|
-
get: function () { return
|
|
191
|
+
get: function () { return chunkAQEJB7EO_cjs.tokenizeTolerantly; }
|
|
192
|
+
});
|
|
193
|
+
Object.defineProperty(exports, "validateTokenName", {
|
|
194
|
+
enumerable: true,
|
|
195
|
+
get: function () { return chunkAQEJB7EO_cjs.validateTokenName; }
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "validateTokenPath", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function () { return chunkAQEJB7EO_cjs.validateTokenPath; }
|
|
192
200
|
});
|
|
193
201
|
Object.defineProperty(exports, "walkAST", {
|
|
194
202
|
enumerable: true,
|
|
195
|
-
get: function () { return
|
|
203
|
+
get: function () { return chunkAQEJB7EO_cjs.walkAST; }
|
|
196
204
|
});
|
|
197
205
|
Object.defineProperty(exports, "BaseSymbolType", {
|
|
198
206
|
enumerable: true,
|
package/dist/lib/index.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { P as ProcessorError, L as LanguageError, a as LexerError, b as ParserError, I as InterpreterError } from './interpreter-CP7CNwDa.cjs';
|
|
2
2
|
export { A as AllErrorCodes, C as ColorErrorCode, c as ColorErrorData, d as ConfigErrorCode, e as ConfigErrorData, E as ErrorOptions, F as FunctionsErrorCode, f as FunctionsErrorData, g as IncompleteInfo, h as IncompleteType, i as Interpreter, j as InterpreterErrorCode, k as InterpreterErrorData, l as InterpreterResult, m as Lexer, n as LexerErrorCode, o as LexerErrorData, O as OperationsErrorCode, p as OperationsErrorData, q as ParseState, r as Parser, s as ParserErrorCode, t as ParserErrorData, u as ProcessorErrorCode, v as ProcessorErrorData, S as SerializedError, w as SymbolsErrorCode, x as SymbolsErrorData, T as TolerantParseResult, U as UnitErrorCode, y as UnitErrorData, z as isInterpreterError, B as isLanguageError, D as isLexerError, G as isParserError, H as isProcessorError, J as parseExpression, K as serializeError } from './interpreter-CP7CNwDa.cjs';
|
|
3
3
|
export { ASTNodes, EvalError, EvalOptions, EvalResult, EvalSuccess, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, ReferenceInfo, collectAllReferences, evaluateExpression, getMessage, hasPartialNodes, parseTolerantly, renameReferences, tokenizeTolerantly } from './interpreter.cjs';
|
|
4
|
-
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens } from './processor.cjs';
|
|
4
|
+
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './processor.cjs';
|
|
5
5
|
export { A as ASTNode, B as BaseSymbolType, a as BooleanSymbol, C as ColorManager, b as ColorSpecification, c as ColorSpecificationSchema, d as ColorSymbol, e as Config, f as ConfigOptions, g as ConstantsSpecification, h as ConstantsSpecificationSchema, D as DEFAULT_LANGUAGE_OPTIONS, i as DictionarySymbol, F as FunctionSpecification, j as FunctionSpecificationSchema, k as FunctionsManager, I as ISymbolType, J as JsValue, L as LanguageOptions, l as ListSymbol, N as NullSymbol, m as NumberSymbol, n as NumberWithUnitSymbol, O as Operations, R as ReferenceRecord, o as ReferenceRecordValue, p as ReservedKeyword, S as StringSymbol, q as SupportedFormats, r as SymbolMetadata, T as Token, s as TokenSymbol, t as TokenType, U as UNINTERPRETED_KEYWORDS, u as UnitManager, v as UnitSpecification, w as UnitSpecificationSchema, x as collectReferenceNodes, y as filterAST, z as getResultTypeName, E as jsValueToSymbolType, G as walkAST } from './types-BimJex2v.cjs';
|
|
6
6
|
export { B as BuildTokensOptions, C as CreateTokenParams, b as CreateTokenResult, D as DeleteTokenParams, c as DeleteTokenResult, I as IssuesMap, d as ProcessorOutput, e as ProcessorResult, R as ResolveIssue, T as TokenBuilder, f as TokenData, g as TokenDataMap, h as TokenOperationResult, i as TokenResolver, U as UpdateTokenParams, j as UpdateTokenResult, V as ValidationIssue, k as ValidationSeverity, l as buildTokens } from './types-DsJuwrq3.cjs';
|
|
7
7
|
export { SchemaFetcherOptions, TokenScriptSchemaContent, TokenScriptSchemaResponse, fetchAndRegisterSchemas, fetchTokenScriptSchema } from './schema.cjs';
|
package/dist/lib/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { P as ProcessorError, L as LanguageError, a as LexerError, b as ParserError, I as InterpreterError } from './interpreter-DNmBc--s.js';
|
|
2
2
|
export { A as AllErrorCodes, C as ColorErrorCode, c as ColorErrorData, d as ConfigErrorCode, e as ConfigErrorData, E as ErrorOptions, F as FunctionsErrorCode, f as FunctionsErrorData, g as IncompleteInfo, h as IncompleteType, i as Interpreter, j as InterpreterErrorCode, k as InterpreterErrorData, l as InterpreterResult, m as Lexer, n as LexerErrorCode, o as LexerErrorData, O as OperationsErrorCode, p as OperationsErrorData, q as ParseState, r as Parser, s as ParserErrorCode, t as ParserErrorData, u as ProcessorErrorCode, v as ProcessorErrorData, S as SerializedError, w as SymbolsErrorCode, x as SymbolsErrorData, T as TolerantParseResult, U as UnitErrorCode, y as UnitErrorData, z as isInterpreterError, B as isLanguageError, D as isLexerError, G as isParserError, H as isProcessorError, J as parseExpression, K as serializeError } from './interpreter-DNmBc--s.js';
|
|
3
3
|
export { ASTNodes, EvalError, EvalOptions, EvalResult, EvalSuccess, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, ReferenceInfo, collectAllReferences, evaluateExpression, getMessage, hasPartialNodes, parseTolerantly, renameReferences, tokenizeTolerantly } from './interpreter.js';
|
|
4
|
-
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens } from './processor.js';
|
|
4
|
+
export { FlattenCallback, builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './processor.js';
|
|
5
5
|
export { A as ASTNode, B as BaseSymbolType, a as BooleanSymbol, C as ColorManager, b as ColorSpecification, c as ColorSpecificationSchema, d as ColorSymbol, e as Config, f as ConfigOptions, g as ConstantsSpecification, h as ConstantsSpecificationSchema, D as DEFAULT_LANGUAGE_OPTIONS, i as DictionarySymbol, F as FunctionSpecification, j as FunctionSpecificationSchema, k as FunctionsManager, I as ISymbolType, J as JsValue, L as LanguageOptions, l as ListSymbol, N as NullSymbol, m as NumberSymbol, n as NumberWithUnitSymbol, O as Operations, R as ReferenceRecord, o as ReferenceRecordValue, p as ReservedKeyword, S as StringSymbol, q as SupportedFormats, r as SymbolMetadata, T as Token, s as TokenSymbol, t as TokenType, U as UNINTERPRETED_KEYWORDS, u as UnitManager, v as UnitSpecification, w as UnitSpecificationSchema, x as collectReferenceNodes, y as filterAST, z as getResultTypeName, E as jsValueToSymbolType, G as walkAST } from './types-BimJex2v.js';
|
|
6
6
|
export { B as BuildTokensOptions, C as CreateTokenParams, b as CreateTokenResult, D as DeleteTokenParams, c as DeleteTokenResult, I as IssuesMap, d as ProcessorOutput, e as ProcessorResult, R as ResolveIssue, T as TokenBuilder, f as TokenData, g as TokenDataMap, h as TokenOperationResult, i as TokenResolver, U as UpdateTokenParams, j as UpdateTokenResult, V as ValidationIssue, k as ValidationSeverity, l as buildTokens } from './types-DHgmzR1Z.js';
|
|
7
7
|
export { SchemaFetcherOptions, TokenScriptSchemaContent, TokenScriptSchemaResponse, fetchAndRegisterSchemas, fetchTokenScriptSchema } from './schema.js';
|
package/dist/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, TokenResolver, UnitManager, UnitSpecificationSchema, ValidationSeverity, buildTokens, builders_exports as builders, collectAllReferences, collectReferenceNodes, errorClasses, errorHelpers, evaluateExpression, fetchAndRegisterSchemas, fetchTokenScriptSchema, filterAST, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, hasPartialNodes, parseExpression, parseTolerantly, processTokenSets, processTokens, renameReferences, tokenizeTolerantly, walkAST } from './chunk-
|
|
1
|
+
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, TokenResolver, UnitManager, UnitSpecificationSchema, ValidationSeverity, buildTokens, builders_exports as builders, collectAllReferences, collectReferenceNodes, errorClasses, errorHelpers, evaluateExpression, fetchAndRegisterSchemas, fetchTokenScriptSchema, filterAST, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, hasPartialNodes, parseExpression, parseTolerantly, processTokenSets, processTokens, renameReferences, tokenizeTolerantly, validateTokenName, validateTokenPath, walkAST } from './chunk-DFN353G4.js';
|
|
2
2
|
export { BaseSymbolType, BooleanSymbol, ColorErrorCode, ColorSymbol, ConfigErrorCode, DictionarySymbol, FunctionsErrorCode, InterpreterError, InterpreterErrorCode, LanguageError, LexerError, LexerErrorCode, ListSymbol, NullSymbol, NumberSymbol, NumberWithUnitSymbol, OperationsErrorCode, ParserError, ParserErrorCode, ProcessorError, ProcessorErrorCode, StringSymbol, SymbolsErrorCode, TokenSymbol, UnitErrorCode, getMessage, getResultTypeName, isInterpreterError, isLanguageError, isLexerError, isParserError, isProcessorError, jsValueToSymbolType, serializeError } from './chunk-LI2D53SH.js';
|
|
3
3
|
export { Operations, ReservedKeyword, SupportedFormats, TokenType, UNINTERPRETED_KEYWORDS } from './chunk-YD3MIYOO.js';
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
package/dist/lib/interpreter.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAQEJB7EO_cjs = require('./chunk-AQEJB7EO.cjs');
|
|
4
4
|
var chunkGKSWF7FF_cjs = require('./chunk-GKSWF7FF.cjs');
|
|
5
5
|
var chunkQYRJ6NSL_cjs = require('./chunk-QYRJ6NSL.cjs');
|
|
6
6
|
|
|
@@ -8,127 +8,127 @@ var chunkQYRJ6NSL_cjs = require('./chunk-QYRJ6NSL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "ASTNodes", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkAQEJB7EO_cjs.ASTNodes; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ColorManager", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkAQEJB7EO_cjs.ColorManager; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "ColorSpecificationSchema", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkAQEJB7EO_cjs.ColorSpecificationSchema; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "Config", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkAQEJB7EO_cjs.Config; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "ConstantsSpecificationSchema", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkAQEJB7EO_cjs.ConstantsSpecificationSchema; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "DEFAULT_LANGUAGE_OPTIONS", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkAQEJB7EO_cjs.DEFAULT_LANGUAGE_OPTIONS; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "FunctionSpecificationSchema", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkAQEJB7EO_cjs.FunctionSpecificationSchema; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "FunctionsManager", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkAQEJB7EO_cjs.FunctionsManager; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "IncompleteType", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkAQEJB7EO_cjs.IncompleteType; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "Interpreter", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkAQEJB7EO_cjs.Interpreter; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "Lexer", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkAQEJB7EO_cjs.Lexer; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "ParseState", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkAQEJB7EO_cjs.ParseState; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "Parser", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkAQEJB7EO_cjs.Parser; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "PartialBinOpNode", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialBinOpNode; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "PartialFunctionCallNode", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialFunctionCallNode; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "PartialParenNode", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialParenNode; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "PartialReferenceNode", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialReferenceNode; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "PartialStringNode", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialStringNode; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "PartialUnaryOpNode", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkAQEJB7EO_cjs.PartialUnaryOpNode; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "UnitManager", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkAQEJB7EO_cjs.UnitManager; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "UnitSpecificationSchema", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkAQEJB7EO_cjs.UnitSpecificationSchema; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "collectAllReferences", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkAQEJB7EO_cjs.collectAllReferences; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "collectReferenceNodes", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkAQEJB7EO_cjs.collectReferenceNodes; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "evaluateExpression", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkAQEJB7EO_cjs.evaluateExpression; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "filterAST", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkAQEJB7EO_cjs.filterAST; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "hasPartialNodes", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkAQEJB7EO_cjs.hasPartialNodes; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "parseExpression", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkAQEJB7EO_cjs.parseExpression; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "parseTolerantly", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkAQEJB7EO_cjs.parseTolerantly; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "renameReferences", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkAQEJB7EO_cjs.renameReferences; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "tokenizeTolerantly", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkAQEJB7EO_cjs.tokenizeTolerantly; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "walkAST", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkAQEJB7EO_cjs.walkAST; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "BaseSymbolType", {
|
|
134
134
|
enumerable: true,
|
package/dist/lib/interpreter.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, UnitManager, UnitSpecificationSchema, collectAllReferences, collectReferenceNodes, evaluateExpression, filterAST, hasPartialNodes, parseExpression, parseTolerantly, renameReferences, tokenizeTolerantly, walkAST } from './chunk-
|
|
1
|
+
export { ASTNodes, ColorManager, ColorSpecificationSchema, Config, ConstantsSpecificationSchema, DEFAULT_LANGUAGE_OPTIONS, FunctionSpecificationSchema, FunctionsManager, IncompleteType, Interpreter, Lexer, ParseState, Parser, PartialBinOpNode, PartialFunctionCallNode, PartialParenNode, PartialReferenceNode, PartialStringNode, PartialUnaryOpNode, UnitManager, UnitSpecificationSchema, collectAllReferences, collectReferenceNodes, evaluateExpression, filterAST, hasPartialNodes, parseExpression, parseTolerantly, renameReferences, tokenizeTolerantly, walkAST } from './chunk-DFN353G4.js';
|
|
2
2
|
export { BaseSymbolType, BooleanSymbol, ColorErrorCode, ColorSymbol, ConfigErrorCode, DictionarySymbol, FunctionsErrorCode, InterpreterError, InterpreterErrorCode, LanguageError, LexerError, LexerErrorCode, ListSymbol, NullSymbol, NumberSymbol, NumberWithUnitSymbol, OperationsErrorCode, ParserError, ParserErrorCode, ProcessorError, ProcessorErrorCode, StringSymbol, SymbolsErrorCode, TokenSymbol, UnitErrorCode, getMessage, getResultTypeName, isInterpreterError, isLanguageError, isLexerError, isParserError, isProcessorError, jsValueToSymbolType, serializeError } from './chunk-LI2D53SH.js';
|
|
3
3
|
export { Operations, ReservedKeyword, SupportedFormats, TokenType, UNINTERPRETED_KEYWORDS } from './chunk-YD3MIYOO.js';
|
|
4
4
|
//# sourceMappingURL=interpreter.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAQEJB7EO_cjs = require('./chunk-AQEJB7EO.cjs');
|
|
4
4
|
require('./chunk-GKSWF7FF.cjs');
|
|
5
5
|
var chunkQYRJ6NSL_cjs = require('./chunk-QYRJ6NSL.cjs');
|
|
6
6
|
var fs = require('fs/promises');
|
|
@@ -175,10 +175,10 @@ async function processTokensFromFiles({
|
|
|
175
175
|
activeTheme,
|
|
176
176
|
builder
|
|
177
177
|
}) {
|
|
178
|
-
await
|
|
178
|
+
await chunkAQEJB7EO_cjs.fetchAndRegisterSchemas(schemas ?? []);
|
|
179
179
|
const jsonFiles = await collectJsonFiles(inputPath);
|
|
180
180
|
const normalizedFiles = normalizeJsonFiles(jsonFiles);
|
|
181
|
-
return
|
|
181
|
+
return chunkAQEJB7EO_cjs.processTokenSets(normalizedFiles, {
|
|
182
182
|
activeSets,
|
|
183
183
|
activeTheme,
|
|
184
184
|
builder
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { fetchAndRegisterSchemas, processTokenSets } from './chunk-
|
|
1
|
+
import { fetchAndRegisterSchemas, processTokenSets } from './chunk-DFN353G4.js';
|
|
2
2
|
import './chunk-LI2D53SH.js';
|
|
3
3
|
import { __name } from './chunk-YD3MIYOO.js';
|
|
4
4
|
import fs from 'fs/promises';
|
package/dist/lib/processor.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAQEJB7EO_cjs = require('./chunk-AQEJB7EO.cjs');
|
|
4
4
|
require('./chunk-GKSWF7FF.cjs');
|
|
5
5
|
require('./chunk-QYRJ6NSL.cjs');
|
|
6
6
|
|
|
@@ -8,51 +8,59 @@ require('./chunk-QYRJ6NSL.cjs');
|
|
|
8
8
|
|
|
9
9
|
Object.defineProperty(exports, "TokenResolver", {
|
|
10
10
|
enumerable: true,
|
|
11
|
-
get: function () { return
|
|
11
|
+
get: function () { return chunkAQEJB7EO_cjs.TokenResolver; }
|
|
12
12
|
});
|
|
13
13
|
Object.defineProperty(exports, "ValidationSeverity", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkAQEJB7EO_cjs.ValidationSeverity; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "buildTokens", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkAQEJB7EO_cjs.buildTokens; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "builders", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkAQEJB7EO_cjs.builders_exports; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "flattenChildrenMap", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkAQEJB7EO_cjs.flattenChildrenMap; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "flattenChildrenObject", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkAQEJB7EO_cjs.flattenChildrenObject; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "getAffectedTokens", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkAQEJB7EO_cjs.getAffectedTokens; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "getBrokenReferences", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkAQEJB7EO_cjs.getBrokenReferences; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "getModifiedDependants", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkAQEJB7EO_cjs.getModifiedDependants; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "getRenamedReferences", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkAQEJB7EO_cjs.getRenamedReferences; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "processTokenSets", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkAQEJB7EO_cjs.processTokenSets; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "processTokens", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkAQEJB7EO_cjs.processTokens; }
|
|
56
|
+
});
|
|
57
|
+
Object.defineProperty(exports, "validateTokenName", {
|
|
58
|
+
enumerable: true,
|
|
59
|
+
get: function () { return chunkAQEJB7EO_cjs.validateTokenName; }
|
|
60
|
+
});
|
|
61
|
+
Object.defineProperty(exports, "validateTokenPath", {
|
|
62
|
+
enumerable: true,
|
|
63
|
+
get: function () { return chunkAQEJB7EO_cjs.validateTokenPath; }
|
|
56
64
|
});
|
|
57
65
|
//# sourceMappingURL=processor.cjs.map
|
|
58
66
|
//# sourceMappingURL=processor.cjs.map
|
package/dist/lib/processor.d.cts
CHANGED
|
@@ -134,4 +134,17 @@ declare function getRenamedReferences(_result: TokenOperationResult, modifiedTok
|
|
|
134
134
|
*/
|
|
135
135
|
declare function getModifiedDependants(oldTokens: Map<RefPath, any>, result: TokenOperationResult): Set<RefPath>;
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Token name validation.
|
|
139
|
+
*
|
|
140
|
+
* Must stay in sync with the Go and Ruby versions. The shared fixture
|
|
141
|
+
* at tokenscript/test-suites/token-name-validation.json proves they agree.
|
|
142
|
+
* Uses explicit whitespace chars (not \s) to ensure identical behavior
|
|
143
|
+
* across Go/JS/Ruby regex engines.
|
|
144
|
+
*/
|
|
145
|
+
/** Returns true if a single name segment is valid: non-empty and contains no whitespace, braces, or brackets. */
|
|
146
|
+
declare function validateTokenName(name: string): boolean;
|
|
147
|
+
/** Returns true if every segment of a dot-delimited token path is a valid token name. */
|
|
148
|
+
declare function validateTokenPath(path: string): boolean;
|
|
149
|
+
|
|
150
|
+
export { BuildTokensOptions, type FlattenCallback, TokenBuilder, TokenData, TokenDataMap, TokenOperationResult, buildTokens, index as builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath };
|
package/dist/lib/processor.d.ts
CHANGED
|
@@ -134,4 +134,17 @@ declare function getRenamedReferences(_result: TokenOperationResult, modifiedTok
|
|
|
134
134
|
*/
|
|
135
135
|
declare function getModifiedDependants(oldTokens: Map<RefPath, any>, result: TokenOperationResult): Set<RefPath>;
|
|
136
136
|
|
|
137
|
-
|
|
137
|
+
/**
|
|
138
|
+
* Token name validation.
|
|
139
|
+
*
|
|
140
|
+
* Must stay in sync with the Go and Ruby versions. The shared fixture
|
|
141
|
+
* at tokenscript/test-suites/token-name-validation.json proves they agree.
|
|
142
|
+
* Uses explicit whitespace chars (not \s) to ensure identical behavior
|
|
143
|
+
* across Go/JS/Ruby regex engines.
|
|
144
|
+
*/
|
|
145
|
+
/** Returns true if a single name segment is valid: non-empty and contains no whitespace, braces, or brackets. */
|
|
146
|
+
declare function validateTokenName(name: string): boolean;
|
|
147
|
+
/** Returns true if every segment of a dot-delimited token path is a valid token name. */
|
|
148
|
+
declare function validateTokenPath(path: string): boolean;
|
|
149
|
+
|
|
150
|
+
export { BuildTokensOptions, type FlattenCallback, TokenBuilder, TokenData, TokenDataMap, TokenOperationResult, buildTokens, index as builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath };
|
package/dist/lib/processor.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { TokenResolver, ValidationSeverity, buildTokens, builders_exports as builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens } from './chunk-
|
|
1
|
+
export { TokenResolver, ValidationSeverity, buildTokens, builders_exports as builders, flattenChildrenMap, flattenChildrenObject, getAffectedTokens, getBrokenReferences, getModifiedDependants, getRenamedReferences, processTokenSets, processTokens, validateTokenName, validateTokenPath } from './chunk-DFN353G4.js';
|
|
2
2
|
import './chunk-LI2D53SH.js';
|
|
3
3
|
import './chunk-YD3MIYOO.js';
|
|
4
4
|
//# sourceMappingURL=processor.js.map
|