@wixc3/typescript
Advanced tools
Comparing version 3.0.1 to 3.0.7
@@ -12,5 +12,5 @@ import * as ts from 'typescript'; | ||
/** | ||
* Calculates the effective tsconfig compiler options, | ||
* Calculates the effective tsconfig compiler options | ||
*/ | ||
export declare function getTsConfigCompilerOptions(tsConfigJsonPath?: string): ts.CompilerOptions; | ||
//# sourceMappingURL=compile.d.ts.map |
@@ -74,3 +74,3 @@ "use strict"; | ||
/** | ||
* Calculates the effective tsconfig compiler options, | ||
* Calculates the effective tsconfig compiler options | ||
*/ | ||
@@ -77,0 +77,0 @@ function getTsConfigCompilerOptions(tsConfigJsonPath) { |
@@ -14,3 +14,8 @@ import type * as ts from 'typescript'; | ||
export declare function match(code: ts.Node, pattern: string): ts.Node | undefined; | ||
/** | ||
* Compared 2 code snippet (or ASTs) | ||
* @param ignore if this predicate is satisfied for an AST node, it (and its children) will be considered same | ||
* @returns true iff the code is functionally the same. i.e. ignoring comments, white spaces, ineffective line breaks etc | ||
*/ | ||
export declare function isSame(a?: ts.Node, b?: ts.Node, ignore?: Predicate<ts.Node | undefined>): boolean; | ||
//# sourceMappingURL=match.d.ts.map |
@@ -41,2 +41,7 @@ "use strict"; | ||
exports.match = match; | ||
/** | ||
* Compared 2 code snippet (or ASTs) | ||
* @param ignore if this predicate is satisfied for an AST node, it (and its children) will be considered same | ||
* @returns true iff the code is functionally the same. i.e. ignoring comments, white spaces, ineffective line breaks etc | ||
*/ | ||
function isSame(a, b, ignore = () => false) { | ||
@@ -43,0 +48,0 @@ if (ignore(a) || ignore(b)) { |
@@ -12,5 +12,5 @@ import * as ts from 'typescript'; | ||
/** | ||
* Calculates the effective tsconfig compiler options, | ||
* Calculates the effective tsconfig compiler options | ||
*/ | ||
export declare function getTsConfigCompilerOptions(tsConfigJsonPath?: string): ts.CompilerOptions; | ||
//# sourceMappingURL=compile.d.ts.map |
@@ -46,3 +46,3 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
/** | ||
* Calculates the effective tsconfig compiler options, | ||
* Calculates the effective tsconfig compiler options | ||
*/ | ||
@@ -49,0 +49,0 @@ export function getTsConfigCompilerOptions(tsConfigJsonPath) { |
@@ -14,3 +14,8 @@ import type * as ts from 'typescript'; | ||
export declare function match(code: ts.Node, pattern: string): ts.Node | undefined; | ||
/** | ||
* Compared 2 code snippet (or ASTs) | ||
* @param ignore if this predicate is satisfied for an AST node, it (and its children) will be considered same | ||
* @returns true iff the code is functionally the same. i.e. ignoring comments, white spaces, ineffective line breaks etc | ||
*/ | ||
export declare function isSame(a?: ts.Node, b?: ts.Node, ignore?: Predicate<ts.Node | undefined>): boolean; | ||
//# sourceMappingURL=match.d.ts.map |
@@ -37,2 +37,7 @@ import { compileCode } from './compile'; | ||
} | ||
/** | ||
* Compared 2 code snippet (or ASTs) | ||
* @param ignore if this predicate is satisfied for an AST node, it (and its children) will be considered same | ||
* @returns true iff the code is functionally the same. i.e. ignoring comments, white spaces, ineffective line breaks etc | ||
*/ | ||
export function isSame(a, b, ignore = () => false) { | ||
@@ -39,0 +44,0 @@ if (ignore(a) || ignore(b)) { |
{ | ||
"name": "@wixc3/typescript", | ||
"version": "3.0.1", | ||
"version": "3.0.7", | ||
"description": "API ", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
@@ -49,3 +49,3 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
/** | ||
* Calculates the effective tsconfig compiler options, | ||
* Calculates the effective tsconfig compiler options | ||
*/ | ||
@@ -52,0 +52,0 @@ export function getTsConfigCompilerOptions(tsConfigJsonPath?: string): ts.CompilerOptions { |
@@ -41,2 +41,7 @@ import type * as ts from 'typescript'; | ||
/** | ||
* Compared 2 code snippet (or ASTs) | ||
* @param ignore if this predicate is satisfied for an AST node, it (and its children) will be considered same | ||
* @returns true iff the code is functionally the same. i.e. ignoring comments, white spaces, ineffective line breaks etc | ||
*/ | ||
export function isSame(a?: ts.Node, b?: ts.Node, ignore: Predicate<ts.Node | undefined> = () => false) { | ||
@@ -43,0 +48,0 @@ if (ignore(a) || ignore(b)) { |
@@ -8,3 +8,3 @@ import { expect } from 'chai'; | ||
describe(`findNode`, function () { | ||
this.timeout(8_000) | ||
this.timeout(8_000); | ||
it('finds a node satisfying the predicate', () => { | ||
@@ -31,3 +31,3 @@ const code = compileCode(`(a)=>{ | ||
describe(`findAllNodes`, function () { | ||
this.timeout(8_000) | ||
this.timeout(8_000); | ||
it('finds all nodes satisfying the predicate', () => { | ||
@@ -44,3 +44,3 @@ const code = compileCode(`(a)=>{ | ||
describe(`findNodeAfterComment`, function () { | ||
this.timeout(8_000) | ||
this.timeout(8_000); | ||
it('finds root comments', () => { | ||
@@ -47,0 +47,0 @@ const compiled = compileCode(` |
@@ -7,3 +7,3 @@ import { expect } from 'chai'; | ||
describe(`match`, function () { | ||
this.timeout(8_000) | ||
this.timeout(8_000); | ||
it('finds a patten in code', () => { | ||
@@ -52,3 +52,3 @@ const code = compileCode(`(a)=>{ | ||
describe(`isSame`, function () { | ||
this.timeout(8_000) | ||
this.timeout(8_000); | ||
it('returns true for identical nodes', () => { | ||
@@ -55,0 +55,0 @@ const code = `()=>{}`; |
@@ -7,5 +7,3 @@ { | ||
}, | ||
"references": [ | ||
{ "path": "../../common/src/tsconfig.esm.json" }, | ||
] | ||
"references": [{ "path": "../../common/src/tsconfig.esm.json" }] | ||
} |
@@ -7,5 +7,3 @@ { | ||
}, | ||
"references": [ | ||
{ "path": "../../common/src/tsconfig.json" }, | ||
] | ||
"references": [{ "path": "../../common/src/tsconfig.json" }] | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
60972
43
1037
1
31