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

thriftrw

Package Overview
Dependencies
Maintainers
5
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

thriftrw - npm Package Compare versions

Comparing version 3.7.0 to 3.8.0

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# v3.8.0
- Thread annotations for individual enum definitions
# v3.7.0

@@ -2,0 +6,0 @@

@@ -38,2 +38,3 @@ // Copyright (c) 2016 Uber Technologies, Inc.

this.namesToNames = Object.create(null);
this.namesToAnnotations = Object.create(null);
this.surface = this.namesToNames;

@@ -80,2 +81,3 @@ this.annotations = null;

this.valuesToNames[value] = name;
this.namesToAnnotations[name] = enumDef.annotations;
value++;

@@ -82,0 +84,0 @@ }

2

package.json
{
"name": "thriftrw",
"version": "3.7.0",
"version": "3.8.0",
"description": "thrift encoding/decoding using bufrw",

@@ -5,0 +5,0 @@ "keywords": [],

@@ -40,2 +40,9 @@ // Copyright (c) 2016 Uber Technologies, Inc.

tape('can access enum def annotations', function t(assert) {
var MAE = thrift.models.MyAnnotatedEnum;
assert.deepEqual(MAE.annotations, {'aka': 'my.annotated.enum'});
assert.deepEqual(MAE.namesToAnnotations.MAE_A, {'aka': 'my.annotated.enum.a'});
assert.end();
});
tape('round trip an enum', function t(assert) {

@@ -42,0 +49,0 @@ var inStruct = {me2_2: 'ME2_2', me3_n2: 'ME3_N2', me3_d1: 'ME3_D1'};

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