@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 { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON } from './constants.js';
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 { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON } from './constants.js';
159
+ export * from './constants.js';
package/package.json CHANGED
@@ -34,7 +34,7 @@
34
34
  },
35
35
  "type": "module",
36
36
  "types": "build/index.d.ts",
37
- "version": "0.12.1",
37
+ "version": "0.12.2",
38
38
  "scripts": {
39
39
  "build": "tsc && tsc-alias",
40
40
  "-": "-"
@@ -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 { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON, UUID_DASH_REGEX };
12
+ export {
13
+ BRACES_CONTENT_REGEX,
14
+ REGEX_ESCAPE_PATTERN,
15
+ TRAILING_SEMICOLON, TRANSFORM_PATTERN,
16
+ UUID_DASH_REGEX,
17
+ };
@@ -250,4 +250,4 @@ export {
250
250
  visitAst, visitAstWithDepth
251
251
  };
252
252
  export type * from './types';
253
- export { BRACES_CONTENT_REGEX, REGEX_ESCAPE_PATTERN, TRAILING_SEMICOLON } from './constants';
253
+ export * from './constants';