pasika 0.10.57 → 0.10.58
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.
|
@@ -278,7 +278,7 @@ import path3 from "path";
|
|
|
278
278
|
import ts from "typescript";
|
|
279
279
|
var isPascalCase = (name) => /^[A-Z][A-Za-z0-9]*$/.test(name);
|
|
280
280
|
var isHookName = (name) => /^use[A-Z]/.test(name);
|
|
281
|
-
var isSchemaName = (name) => /[Ss]chema$/.test(name);
|
|
281
|
+
var isSchemaName = (name) => /(?:[Ss]chema|ApiContract)$/.test(name);
|
|
282
282
|
function lineOf(sourceFile, node) {
|
|
283
283
|
return sourceFile.getLineAndCharacterOfPosition(node.getStart(sourceFile)).line + 1;
|
|
284
284
|
}
|