Socket
Socket
Sign inDemoInstall

quidproquo-core

Package Overview
Dependencies
Maintainers
1
Versions
225
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quidproquo-core - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

lib/types/ActionPayload.d.ts

7

lib/actions/date/DateActionRequester.d.ts

@@ -1,1 +0,6 @@

export declare function askDateNow(): Generator<any, string, string>;
import DateActionTypeEnum from './DateActionTypeEnum';
import { ActionPayload } from '../../types/ActionPayload';
export interface DateNowActionPayload extends ActionPayload {
type: DateActionTypeEnum.Now;
}
export declare function askDateNow(): Generator<DateNowActionPayload, string, string>;

@@ -8,2 +8,10 @@ "use strict";

const DateActionTypeEnum_1 = __importDefault(require("./DateActionTypeEnum"));
// Generator<
// Thing you are giving to QPQ,
// Thing the function returns to the regular logic,
// the thing QPQ gives us
// >
// We give DateNowActionPayload to QPQ
// QPQ gives us back a string ('2022-11-30T11:49:19.768Z')
// Then we return the same string back to the calling method
function* askDateNow() {

@@ -10,0 +18,0 @@ return yield { type: DateActionTypeEnum_1.default.Now };

@@ -1,4 +0,30 @@

export declare function askEventTransformEventParams(...params: any): Generator<any, any, any>;
export declare function askEventTransformResponseResult(response: any): Generator<any, any, any>;
export declare function askEventMatchStory(transformedEventParams: any): Generator<any, any, any>;
export declare function askEventAutoRespond(transformedEventParams: any): Generator<any, any, any>;
import EventActionTypeEnum from './EventActionTypeEnum';
import { ActionPayload } from '../../types/ActionPayload';
export interface EventTransformEventParamsActionPayload extends ActionPayload {
type: EventActionTypeEnum.TransformEventParams;
payload: {
eventParams: any[];
};
}
export declare function askEventTransformEventParams(...eventParams: any): Generator<EventTransformEventParamsActionPayload>;
export interface EventTransformResponseResultActionPayload extends ActionPayload {
type: EventActionTypeEnum.TransformResponseResult;
payload: {
response: any;
};
}
export declare function askEventTransformResponseResult(response: any): Generator<EventTransformResponseResultActionPayload>;
export interface EventMatchStoryActionPayload extends ActionPayload {
type: EventActionTypeEnum.MatchStory;
payload: {
transformedEventParams: any;
};
}
export declare function askEventMatchStory(transformedEventParams: any): Generator<EventMatchStoryActionPayload>;
export interface EventAutoRespondActionPayload extends ActionPayload {
type: EventActionTypeEnum.AutoRespond;
payload: {
transformedEventParams: any;
};
}
export declare function askEventAutoRespond(transformedEventParams: any): Generator<EventAutoRespondActionPayload>;

4

lib/actions/event/EventActionRequester.js

@@ -8,6 +8,6 @@ "use strict";

const EventActionTypeEnum_1 = __importDefault(require("./EventActionTypeEnum"));
function* askEventTransformEventParams(...params) {
function* askEventTransformEventParams(...eventParams) {
return yield {
type: EventActionTypeEnum_1.default.TransformEventParams,
payload: { params },
payload: { eventParams },
};

@@ -14,0 +14,0 @@ }

@@ -1,1 +0,6 @@

export declare function askNewGuid(): Generator<any, string, string>;
import GuidActionTypeEnum from './GuidActionTypeEnum';
import { ActionPayload } from '../../types/ActionPayload';
export interface GuidNewActionPayload extends ActionPayload {
type: GuidActionTypeEnum.New;
}
export declare function askNewGuid(): Generator<GuidNewActionPayload, string, string>;

@@ -1,1 +0,6 @@

export declare function askRandomNumber(): Generator<any, number, number>;
import MathActionTypeEnum from './MathActionTypeEnum';
import { ActionPayload } from '../../types/ActionPayload';
export interface MathRandomNumberActionPayload extends ActionPayload {
type: MathActionTypeEnum.RandomNumber;
}
export declare function askRandomNumber(): Generator<MathRandomNumberActionPayload, number, number>;

@@ -1,1 +0,9 @@

export declare function askDelay(timeMs: number): Generator<any, void, unknown>;
import PlatformActionTypeEnum from './PlatformActionTypeEnum';
import { ActionPayload } from '../../types/ActionPayload';
export interface PlatformDelayActionPayload extends ActionPayload {
type: PlatformActionTypeEnum.Delay;
payload: {
timeMs: number;
};
}
export declare function askDelay(timeMs: number): Generator<PlatformDelayActionPayload, void, void>;

@@ -1,3 +0,17 @@

export declare function askBatch(actions: Array<object>): Generator<any, Array<any>, Array<any>>;
import SystemActionTypeEnum from './SystemActionTypeEnum';
import { ActionPayload } from '../../types/ActionPayload';
export interface SystemBatchActionPayload extends ActionPayload {
type: SystemActionTypeEnum.Batch;
payload: {
actions: ActionPayload[];
};
}
export declare function askBatch(actions: ActionPayload[]): Generator<SystemBatchActionPayload, any[], any[]>;
export interface SystemExecuteStoryActionPayload extends ActionPayload {
type: SystemActionTypeEnum.Batch;
payload: {
actions: ActionPayload[];
};
}
export declare function askExecuteStory(type: string, src: string, runtime: string, ...params: any): Generator<any, any, any>;
export declare function askParallel(stories: Array<any>): Generator<any, any, any>;
export declare function askExecuteStory(type: string, src: string, runtime: string, ...params: any): Generator<any, any, any>;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.askExecuteStory = exports.askParallel = exports.askBatch = void 0;
exports.askParallel = exports.askExecuteStory = exports.askBatch = void 0;
const SystemActionTypeEnum_1 = __importDefault(require("./SystemActionTypeEnum"));

@@ -16,2 +16,14 @@ // TODO: fix typing

exports.askBatch = askBatch;
function* askExecuteStory(type, src, runtime, ...params) {
return yield {
type: SystemActionTypeEnum_1.default.ExecuteStory,
payload: {
type,
src,
runtime,
params,
},
};
}
exports.askExecuteStory = askExecuteStory;
// TODO: Make this faster?

@@ -48,13 +60,1 @@ // TODO: Type support

exports.askParallel = askParallel;
function* askExecuteStory(type, src, runtime, ...params) {
return yield {
type: SystemActionTypeEnum_1.default.ExecuteStory,
payload: {
type,
src,
runtime,
params,
},
};
}
exports.askExecuteStory = askExecuteStory;
{
"name": "quidproquo-core",
"version": "0.0.13",
"version": "0.0.14",
"description": "",

@@ -5,0 +5,0 @@ "main": "./lib/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