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
47
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 1.10.0 to 1.11.0

3

AdSlot.d.ts

@@ -6,2 +6,3 @@ import * as thrift from "@creditkarma/thrift-server-core";

targetingParams?: Map<string, string>;
isSquare: boolean;
}

@@ -11,2 +12,3 @@ export interface IAdSlotArgs {

targetingParams?: Map<string, string>;
isSquare: boolean;
}

@@ -17,2 +19,3 @@ export declare const AdSlotCodec: thrift.IStructCodec<IAdSlotArgs, IAdSlot>;

targetingParams?: Map<string, string>;
isSquare: boolean;
readonly _annotations: thrift.IThriftAnnotations;

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

46

AdSlot.js

@@ -22,3 +22,4 @@ "use strict";

rect: args.rect,
targetingParams: args.targetingParams
targetingParams: args.targetingParams,
isSquare: args.isSquare
};

@@ -44,2 +45,10 @@ output.writeStructBegin("AdSlot");

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

@@ -86,2 +95,11 @@ output.writeStructEnd();

break;
case 3:
if (fieldType === thrift.TType.BOOL) {
const value_5 = input.readBool();
_args.isSquare = value_5;
}
else {
input.skip(fieldType);
}
break;
default: {

@@ -94,6 +112,7 @@ input.skip(fieldType);

input.readStructEnd();
if (_args.rect !== undefined) {
if (_args.rect !== undefined && _args.isSquare !== undefined) {
return {
rect: _args.rect,
targetingParams: _args.targetingParams
targetingParams: _args.targetingParams,
isSquare: _args.isSquare
};

@@ -112,4 +131,4 @@ }

if (args.rect != null) {
const value_5 = new Rect.Rect(args.rect);
this.rect = value_5;
const value_6 = new Rect.Rect(args.rect);
this.rect = value_6;
}

@@ -120,10 +139,17 @@ else {

if (args.targetingParams != null) {
const value_6 = new Map();
args.targetingParams.forEach((value_7, key_3) => {
const value_8 = value_7;
const value_7 = new Map();
args.targetingParams.forEach((value_9, key_3) => {
const value_10 = value_9;
const key_4 = key_3;
value_6.set(key_4, value_8);
value_7.set(key_4, value_10);
});
this.targetingParams = value_6;
this.targetingParams = value_7;
}
if (args.isSquare != null) {
const value_8 = args.isSquare;
this.isSquare = value_8;
}
else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Required field[isSquare] is unset!");
}
}

@@ -130,0 +156,0 @@ static read(input) {

{
"name": "@guardian/bridget",
"version": "1.10.0",
"version": "1.11.0",
"description": "",

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

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