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

thriftrw

Package Overview
Dependencies
Maintainers
4
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 2.2.2 to 2.2.3

2

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

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

@@ -51,3 +51,3 @@ // Copyright (c) 2015 Uber Technologies, Inc.

var resultFields = def.throws || [];
if (returnType.type === 'BaseType' && returnType.baseType !== 'void') {
if (returnType.type !== 'BaseType' || returnType.baseType !== 'void') {
var successFieldId = new ast.FieldIdentifier(0);

@@ -54,0 +54,0 @@ var successField = new ast.Field(successFieldId, def.returns, 'success');

@@ -50,1 +50,15 @@ // Copyright (c) 2015 Uber Technologies, Inc.

});
test('returns base-type that is not void', function t(assert) {
var result = thrift.getType('Foo::returnsI32_result');
assert.deepEqual(Object.keys(result.fieldsById), ['0'], 'success id');
assert.deepEquals(Object.keys(result.fieldsByName), ['success'], 'success name');
assert.end();
});
test('returns non-base-type', function t(assert) {
var result = thrift.getType('Foo::returnsStruct_result');
assert.deepEqual(Object.keys(result.fieldsById), ['0'], 'success id');
assert.deepEquals(Object.keys(result.fieldsByName), ['success'], 'success name');
assert.end();
});

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