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
46
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.7.0 to 1.8.0

PurchaseScreenReason.d.ts

42

Acquisitions.d.ts
/// <reference types="node" />
import * as thrift from "@creditkarma/thrift-server-core";
import * as FrictionScreenReason from "./FrictionScreenReason";
import * as PurchaseScreenReason from "./PurchaseScreenReason";
import * as MaybeEpic from "./MaybeEpic";

@@ -12,16 +12,16 @@ export declare const serviceName: string;

};
export interface ILaunchFrictionScreen__Args {
reason: FrictionScreenReason.FrictionScreenReason;
export interface ILaunchPurchaseScreen__Args {
reason: PurchaseScreenReason.PurchaseScreenReason;
}
export interface ILaunchFrictionScreen__ArgsArgs {
reason: FrictionScreenReason.FrictionScreenReason;
export interface ILaunchPurchaseScreen__ArgsArgs {
reason: PurchaseScreenReason.PurchaseScreenReason;
}
export declare const LaunchFrictionScreen__ArgsCodec: thrift.IStructCodec<ILaunchFrictionScreen__ArgsArgs, ILaunchFrictionScreen__Args>;
export declare class LaunchFrictionScreen__Args extends thrift.StructLike implements ILaunchFrictionScreen__Args {
reason: FrictionScreenReason.FrictionScreenReason;
export declare const LaunchPurchaseScreen__ArgsCodec: thrift.IStructCodec<ILaunchPurchaseScreen__ArgsArgs, ILaunchPurchaseScreen__Args>;
export declare class LaunchPurchaseScreen__Args extends thrift.StructLike implements ILaunchPurchaseScreen__Args {
reason: PurchaseScreenReason.PurchaseScreenReason;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args: ILaunchFrictionScreen__ArgsArgs);
static read(input: thrift.TProtocol): LaunchFrictionScreen__Args;
static write(args: ILaunchFrictionScreen__ArgsArgs, output: thrift.TProtocol): void;
constructor(args: ILaunchPurchaseScreen__ArgsArgs);
static read(input: thrift.TProtocol): LaunchPurchaseScreen__Args;
static write(args: ILaunchPurchaseScreen__ArgsArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;

@@ -55,16 +55,16 @@ }

}
export interface ILaunchFrictionScreen__Result {
export interface ILaunchPurchaseScreen__Result {
success?: void;
}
export interface ILaunchFrictionScreen__ResultArgs {
export interface ILaunchPurchaseScreen__ResultArgs {
success?: void;
}
export declare const LaunchFrictionScreen__ResultCodec: thrift.IStructCodec<ILaunchFrictionScreen__ResultArgs, ILaunchFrictionScreen__Result>;
export declare class LaunchFrictionScreen__Result extends thrift.StructLike implements ILaunchFrictionScreen__Result {
export declare const LaunchPurchaseScreen__ResultCodec: thrift.IStructCodec<ILaunchPurchaseScreen__ResultArgs, ILaunchPurchaseScreen__Result>;
export declare class LaunchPurchaseScreen__Result extends thrift.StructLike implements ILaunchPurchaseScreen__Result {
success?: void;
readonly _annotations: thrift.IThriftAnnotations;
readonly _fieldAnnotations: thrift.IFieldAnnotations;
constructor(args?: ILaunchFrictionScreen__ResultArgs);
static read(input: thrift.TProtocol): LaunchFrictionScreen__Result;
static write(args: ILaunchFrictionScreen__ResultArgs, output: thrift.TProtocol): void;
constructor(args?: ILaunchPurchaseScreen__ResultArgs);
static read(input: thrift.TProtocol): LaunchPurchaseScreen__Result;
static write(args: ILaunchPurchaseScreen__ResultArgs, output: thrift.TProtocol): void;
write(output: thrift.TProtocol): void;

@@ -116,3 +116,3 @@ }

};
launchFrictionScreen(reason: FrictionScreenReason.FrictionScreenReason, context?: Context): Promise<void>;
launchPurchaseScreen(reason: PurchaseScreenReason.PurchaseScreenReason, context?: Context): Promise<void>;
getEpics(context?: Context): Promise<MaybeEpic.IMaybeEpic>;

@@ -122,3 +122,3 @@ epicSeen(context?: Context): Promise<void>;

export interface IHandler<Context = any> {
launchFrictionScreen(reason: FrictionScreenReason.FrictionScreenReason, context?: Context): void | Promise<void>;
launchPurchaseScreen(reason: PurchaseScreenReason.PurchaseScreenReason, context?: Context): void | Promise<void>;
getEpics(context?: Context): MaybeEpic.IMaybeEpicArgs | Promise<MaybeEpic.IMaybeEpicArgs>;

@@ -139,5 +139,5 @@ epicSeen(context?: Context): void | Promise<void>;

process(input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_launchFrictionScreen(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_launchPurchaseScreen(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_getEpics(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
process_epicSeen(requestId: number, input: thrift.TProtocol, output: thrift.TProtocol, context: Context): Promise<Buffer>;
}

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

exports.methodAnnotations = {
launchFrictionScreen: {
launchPurchaseScreen: {
annotations: {},

@@ -35,9 +35,9 @@ fieldAnnotations: {}

};
exports.methodNames = ["launchFrictionScreen", "getEpics", "epicSeen"];
exports.methodNames = ["launchPurchaseScreen", "getEpics", "epicSeen"];
exports.methodParameters = {
launchFrictionScreen: 2,
launchPurchaseScreen: 2,
getEpics: 1,
epicSeen: 1
};
exports.LaunchFrictionScreen__ArgsCodec = {
exports.LaunchPurchaseScreen__ArgsCodec = {
encode(args, output) {

@@ -47,3 +47,3 @@ const obj = {

};
output.writeStructBegin("LaunchFrictionScreen__Args");
output.writeStructBegin("LaunchPurchaseScreen__Args");
if (obj.reason != null) {

@@ -94,7 +94,7 @@ output.writeFieldBegin("reason", thrift.TType.I32, 1);

else {
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read LaunchFrictionScreen__Args from input");
throw new thrift.TProtocolException(thrift.TProtocolExceptionType.UNKNOWN, "Unable to read LaunchPurchaseScreen__Args from input");
}
}
};
class LaunchFrictionScreen__Args extends thrift.StructLike {
class LaunchPurchaseScreen__Args extends thrift.StructLike {
constructor(args) {

@@ -113,12 +113,12 @@ super();

static read(input) {
return new LaunchFrictionScreen__Args(exports.LaunchFrictionScreen__ArgsCodec.decode(input));
return new LaunchPurchaseScreen__Args(exports.LaunchPurchaseScreen__ArgsCodec.decode(input));
}
static write(args, output) {
return exports.LaunchFrictionScreen__ArgsCodec.encode(args, output);
return exports.LaunchPurchaseScreen__ArgsCodec.encode(args, output);
}
write(output) {
return exports.LaunchFrictionScreen__ArgsCodec.encode(this, output);
return exports.LaunchPurchaseScreen__ArgsCodec.encode(this, output);
}
}
exports.LaunchFrictionScreen__Args = LaunchFrictionScreen__Args;
exports.LaunchPurchaseScreen__Args = LaunchPurchaseScreen__Args;
exports.GetEpics__ArgsCodec = {

@@ -212,5 +212,5 @@ encode(args, output) {

exports.EpicSeen__Args = EpicSeen__Args;
exports.LaunchFrictionScreen__ResultCodec = {
exports.LaunchPurchaseScreen__ResultCodec = {
encode(args, output) {
output.writeStructBegin("LaunchFrictionScreen__Result");
output.writeStructBegin("LaunchPurchaseScreen__Result");
output.writeFieldStop();

@@ -251,3 +251,3 @@ output.writeStructEnd();

};
class LaunchFrictionScreen__Result extends thrift.StructLike {
class LaunchPurchaseScreen__Result extends thrift.StructLike {
constructor(args = {}) {

@@ -263,12 +263,12 @@ super();

static read(input) {
return new LaunchFrictionScreen__Result(exports.LaunchFrictionScreen__ResultCodec.decode(input));
return new LaunchPurchaseScreen__Result(exports.LaunchPurchaseScreen__ResultCodec.decode(input));
}
static write(args, output) {
return exports.LaunchFrictionScreen__ResultCodec.encode(args, output);
return exports.LaunchPurchaseScreen__ResultCodec.encode(args, output);
}
write(output) {
return exports.LaunchFrictionScreen__ResultCodec.encode(this, output);
return exports.LaunchPurchaseScreen__ResultCodec.encode(this, output);
}
}
exports.LaunchFrictionScreen__Result = LaunchFrictionScreen__Result;
exports.LaunchPurchaseScreen__Result = LaunchPurchaseScreen__Result;
exports.GetEpics__ResultCodec = {

@@ -410,8 +410,8 @@ encode(args, output) {

}
launchFrictionScreen(reason, context) {
launchPurchaseScreen(reason, context) {
const writer = new this.transport();
const output = new this.protocol(writer);
output.writeMessageBegin("launchFrictionScreen", thrift.MessageType.CALL, this.incrementRequestId());
output.writeMessageBegin("launchPurchaseScreen", thrift.MessageType.CALL, this.incrementRequestId());
const args = { reason };
exports.LaunchFrictionScreen__ArgsCodec.encode(args, output);
exports.LaunchPurchaseScreen__ArgsCodec.encode(args, output);
output.writeMessageEnd();

@@ -423,3 +423,3 @@ return this.connection.send(writer.flush(), context).then((data) => {

const { fieldName: fieldName, messageType: messageType } = input.readMessageBegin();
if (fieldName === "launchFrictionScreen") {
if (fieldName === "launchPurchaseScreen") {
if (messageType === thrift.MessageType.EXCEPTION) {

@@ -431,3 +431,3 @@ const err = thrift.TApplicationExceptionCodec.decode(input);

else {
const result = exports.LaunchFrictionScreen__ResultCodec.decode(input);
const result = exports.LaunchPurchaseScreen__ResultCodec.decode(input);
input.readMessageEnd();

@@ -539,4 +539,4 @@ return Promise.resolve(result.success);

switch (methodName) {
case "process_launchFrictionScreen": {
resolve(this.process_launchFrictionScreen(requestId, input, output, context));
case "process_launchPurchaseScreen": {
resolve(this.process_launchPurchaseScreen(requestId, input, output, context));
break;

@@ -566,8 +566,8 @@ }

}
process_launchFrictionScreen(requestId, input, output, context) {
process_launchPurchaseScreen(requestId, input, output, context) {
return new Promise((resolve, reject) => {
try {
const args = exports.LaunchFrictionScreen__ArgsCodec.decode(input);
const args = exports.LaunchPurchaseScreen__ArgsCodec.decode(input);
input.readMessageEnd();
resolve(this._handler.launchFrictionScreen(args.reason, context));
resolve(this._handler.launchPurchaseScreen(args.reason, context));
}

@@ -579,4 +579,4 @@ catch (err) {

const result = { success: data };
output.writeMessageBegin("launchFrictionScreen", thrift.MessageType.REPLY, requestId);
exports.LaunchFrictionScreen__ResultCodec.encode(result, output);
output.writeMessageBegin("launchPurchaseScreen", thrift.MessageType.REPLY, requestId);
exports.LaunchPurchaseScreen__ResultCodec.encode(result, output);
output.writeMessageEnd();

@@ -586,3 +586,3 @@ return output.flush();

const result = new thrift.TApplicationException(thrift.TApplicationExceptionType.UNKNOWN, err.message);
output.writeMessageBegin("launchFrictionScreen", thrift.MessageType.EXCEPTION, requestId);
output.writeMessageBegin("launchPurchaseScreen", thrift.MessageType.EXCEPTION, requestId);
thrift.TApplicationExceptionCodec.encode(result, output);

@@ -589,0 +589,0 @@ output.writeMessageEnd();

@@ -1,2 +0,2 @@

export * from "./FrictionScreenReason";
export * from "./PurchaseScreenReason";
export * from "./Rect";

@@ -3,0 +3,0 @@ export * from "./AdSlot";

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

*/
__export(require("./FrictionScreenReason"));
__export(require("./PurchaseScreenReason"));
__export(require("./Rect"));

@@ -22,0 +22,0 @@ __export(require("./AdSlot"));

{
"name": "@guardian/bridget",
"version": "1.7.0",
"version": "1.8.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