@esportsplus/typescript 0.12.1 → 0.12.2
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.
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
declare const BRACES_CONTENT_REGEX: RegExp;
|
|
2
2
|
declare const REGEX_ESCAPE_PATTERN: RegExp;
|
|
3
3
|
declare const TRAILING_SEMICOLON: RegExp;
|
|
4
|
+
declare const TRANSFORM_PATTERN: RegExp;
|
|
4
5
|
declare const UUID_DASH_REGEX: RegExp;
|
|
5
|
-
export { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON, UUID_DASH_REGEX };
|
|
6
|
+
export { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON, TRANSFORM_PATTERN, UUID_DASH_REGEX, };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const BRACES_CONTENT_REGEX = /\{([^}]*)\}/;
|
|
2
2
|
const REGEX_ESCAPE_PATTERN = /[.*+?^${}()|[\]\\]/g;
|
|
3
3
|
const TRAILING_SEMICOLON = /;$/;
|
|
4
|
+
const TRANSFORM_PATTERN = /\.[tj]sx?$/;
|
|
4
5
|
const UUID_DASH_REGEX = /-/g;
|
|
5
|
-
export { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON, UUID_DASH_REGEX };
|
|
6
|
+
export { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON, TRANSFORM_PATTERN, UUID_DASH_REGEX, };
|
|
@@ -12,4 +12,4 @@ declare const visitAst: <T>(sourceFile: ts.SourceFile, callback: VisitorCallback
|
|
|
12
12
|
declare const visitAstWithDepth: <T>(sourceFile: ts.SourceFile, callback: (node: ts.Node, depth: number, state: T) => void, state: T, depthTrigger: (node: ts.Node) => boolean) => T;
|
|
13
13
|
export { addImport, applyReplacements, applyReplacementsReverse, collectNodes, mightNeedTransform, program, uid, updateImports, visitAst, visitAstWithDepth };
|
|
14
14
|
export type * from './types.js';
|
|
15
|
-
export
|
|
15
|
+
export * from './constants.js';
|
|
@@ -156,4 +156,4 @@ const visitAstWithDepth = (sourceFile, callback, state, depthTrigger) => {
|
|
|
156
156
|
return state;
|
|
157
157
|
};
|
|
158
158
|
export { addImport, applyReplacements, applyReplacementsReverse, collectNodes, mightNeedTransform, program, uid, updateImports, visitAst, visitAstWithDepth };
|
|
159
|
-
export
|
|
159
|
+
export * from './constants.js';
|
package/package.json
CHANGED
|
@@ -4,7 +4,14 @@ const REGEX_ESCAPE_PATTERN = /[.*+?^${}()|[\]\\]/g;
|
|
|
4
4
|
|
|
5
5
|
const TRAILING_SEMICOLON = /;$/;
|
|
6
6
|
|
|
7
|
+
const TRANSFORM_PATTERN = /\.[tj]sx?$/;
|
|
8
|
+
|
|
7
9
|
const UUID_DASH_REGEX = /-/g;
|
|
8
10
|
|
|
9
11
|
|
|
10
|
-
export {
|
|
12
|
+
export {
|
|
13
|
+
BRACES_CONTENT_REGEX,
|
|
14
|
+
REGEX_ESCAPE_PATTERN,
|
|
15
|
+
TRAILING_SEMICOLON, TRANSFORM_PATTERN,
|
|
16
|
+
UUID_DASH_REGEX,
|
|
17
|
+
};
|
package/src/transformer/index.ts
CHANGED