Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

bridge-compile

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bridge-compile - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

dist/parser/find-source-file.js

@@ -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>",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc