bridge-compile
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -26,3 +26,3 @@ "use strict"; | ||
console.log(matches[1]); | ||
await fs_1.default.promises.appendFile(absolute, `\nconst bridgeGeneratedVariable = initBridge(${matches[1]});\ntype BridgeGenereatedType = typeof bridgeGeneratedVariable['bridgeType'];\ntype BridgeGenereatedURLType = typeof bridgeGeneratedVariable['url'];`, 'utf-8'); | ||
await fs_1.default.promises.appendFile(absolute, `\nconst bridgeGeneratedVariable = initBridge(${matches[1]});\ntype BridgeGenereatedType = typeof bridgeGeneratedVariable['bridgeType'];\n`, 'utf-8'); | ||
sourceFilePath = absolute; | ||
@@ -29,0 +29,0 @@ return sourceFilePath; |
@@ -44,10 +44,7 @@ "use strict"; | ||
let BridgeGenereatedTypeNode = null; | ||
let BridgeGenereatedURLTypeNode = null; | ||
typescript_1.default.forEachChild(sourceFile, (node) => { | ||
if (typescript_1.default.isTypeAliasDeclaration(node) && node.name.escapedText === 'BridgeGenereatedType') | ||
BridgeGenereatedTypeNode = node; | ||
else if (typescript_1.default.isTypeAliasDeclaration(node) && node.name.escapedText === 'BridgeGenereatedURLType') | ||
BridgeGenereatedURLTypeNode = node; | ||
}); | ||
if (!BridgeGenereatedTypeNode || !BridgeGenereatedURLTypeNode) | ||
if (!BridgeGenereatedTypeNode) | ||
throw new Error('TS Node not found'); | ||
@@ -54,0 +51,0 @@ const JSONType = (0, transform_json_type_1.cleanJSONType)((0, create_json_type_1.createJSONType)(checker, checker.getTypeAtLocation(BridgeGenereatedTypeNode), BridgeGenereatedTypeNode)); |
{ | ||
"name": "bridge-compile", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Compile the sdk of your Bridge project with one command locally", | ||
@@ -5,0 +5,0 @@ "author": "Bridge Team <support@bridge.codes>", |
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
60592
1323