New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@guardian/bridget

Package Overview
Dependencies
Maintainers
30
Versions
100
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guardian/bridget - npm Package Compare versions

Comparing version 0.53.0 to 0.54.0

2

package.json
{
"name": "@guardian/bridget",
"version": "0.53.0",
"version": "0.54.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "index.js",

import * as thrift from "@creditkarma/thrift-server-core";
export interface ITopic {
id: string;
displayName: string;
type: string;
}
export interface ITopicArgs {
id: string;
displayName: string;
type: string;
}

@@ -11,2 +15,4 @@ export declare const TopicCodec: thrift.IStructCodec<ITopicArgs, ITopic>;

id: string;
displayName: string;
type: string;
readonly _annotations: thrift.IThriftAnnotations;

@@ -13,0 +19,0 @@ readonly _fieldAnnotations: thrift.IFieldAnnotations;

@@ -20,3 +20,5 @@ "use strict";

const obj = {
id: args.id
id: args.id,
displayName: args.displayName,
type: args.type
};

@@ -32,2 +34,18 @@ output.writeStructBegin("Topic");

}
if (obj.displayName != null) {
output.writeFieldBegin("displayName", thrift.TType.STRING, 2);
output.writeString(obj.displayName);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[displayName] is unset!");
}
if (obj.type != null) {
output.writeFieldBegin("type", thrift.TType.STRING, 3);
output.writeString(obj.type);
output.writeFieldEnd();
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[type] is unset!");
}
output.writeFieldStop();

@@ -57,2 +75,20 @@ output.writeStructEnd();

break;
case 2:
if (fieldType === thrift.TType.STRING) {
const value_2 = input.readString();
_args.displayName = value_2;
}
else {
input.skip(fieldType);
}
break;
case 3:
if (fieldType === thrift.TType.STRING) {
const value_3 = input.readString();
_args.type = value_3;
}
else {
input.skip(fieldType);
}
break;
default: {

@@ -65,5 +101,7 @@ input.skip(fieldType);

input.readStructEnd();
if (_args.id !== undefined) {
if (_args.id !== undefined && _args.displayName !== undefined && _args.type !== undefined) {
return {
id: _args.id
id: _args.id,
displayName: _args.displayName,
type: _args.type
};

@@ -82,4 +120,4 @@ }

if (args.id != null) {
const value_2 = args.id;
this.id = value_2;
const value_4 = args.id;
this.id = value_4;
}

@@ -89,2 +127,16 @@ else {

}
if (args.displayName != null) {
const value_5 = args.displayName;
this.displayName = value_5;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[displayName] is unset!");
}
if (args.type != null) {
const value_6 = args.type;
this.type = value_6;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[type] is unset!");
}
}

@@ -91,0 +143,0 @@ static read(input) {

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