Socket
Socket
Sign inDemoInstall

ts-proto

Package Overview
Dependencies
Maintainers
1
Versions
352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-proto - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

18

build/src/utils.js

@@ -296,9 +296,15 @@ "use strict";

}
const path = "../../package.json";
const packageJson = await Promise.resolve(`${path}`).then(s => require(s));
const packageJson = await readPackageJson();
const tsProtoVersion = `v${packageJson?.version ?? "unknown"}`;
return {
protocVersion,
tsProtoVersion,
};
return { protocVersion, tsProtoVersion };
}
/** Read from the distributed package.json file, or our local package.json when running ts-proto tests locally. */
async function readPackageJson() {
try {
// Use `as string` to disable hints that the path doesn't exist
return await Promise.resolve(`${"../../package.json"}`).then(s => require(s));
}
catch (e) {
return await Promise.resolve(`${"../package.json"}`).then(s => require(s));
}
}
{
"name": "ts-proto",
"version": "2.0.2",
"version": "2.0.3",
"description": "",

@@ -5,0 +5,0 @@ "main": "build/src/plugin.js",

Sorry, the diff of this file is not supported yet

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