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

ts-proto

Package Overview
Dependencies
Maintainers
1
Versions
356
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 1.2.0 to 1.2.1

4

build/main.js

@@ -76,3 +76,3 @@ "use strict";

.beginControlFlow('if (long.gt(Number.MAX_SAFE_INTEGER))')
.addStatement('throw new Error("Value is larger than Number.MAX_SAFE_INTEGER")')
.addStatement('throw new global.Error("Value is larger than Number.MAX_SAFE_INTEGER")')
.endControlFlow()

@@ -131,3 +131,3 @@ .addStatement('return long.toNumber()')));

.add('default:%>\n')
.addStatement('throw new Error(`Invalid value ${object}`)%<')
.addStatement('throw new global.Error(`Invalid value ${object}`)%<')
.endControlFlow();

@@ -134,0 +134,0 @@ return func.addCodeBlock(body);

{
"name": "ts-proto",
"version": "1.2.0",
"version": "1.2.1",
"description": "",

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

@@ -129,3 +129,3 @@ import {

.beginControlFlow('if (long.gt(Number.MAX_SAFE_INTEGER))')
.addStatement('throw new Error("Value is larger than Number.MAX_SAFE_INTEGER")')
.addStatement('throw new global.Error("Value is larger than Number.MAX_SAFE_INTEGER")')
.endControlFlow()

@@ -201,3 +201,3 @@ .addStatement('return long.toNumber()')

.add('default:%>\n')
.addStatement('throw new Error(`Invalid value ${object}`)%<')
.addStatement('throw new global.Error(`Invalid value ${object}`)%<')
.endControlFlow();

@@ -204,0 +204,0 @@ return func.addCodeBlock(body);

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