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.10 to 0.0.11

lib/actions/event/EventActionRequester.d.ts

1

lib/actions/system/SystemActionRequester.d.ts
export declare function askBatch(actions: Array<object>): Generator<any, Array<any>, Array<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>;

22

lib/actions/system/SystemActionRequester.js

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

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

@@ -22,9 +22,9 @@ // TODO: fix typing

let actions = itt.map((i) => i.next());
let values = actions.map(a => a.value);
let values = actions.map((a) => a.value);
while (true) {
// Batch any actions that we have not processed yet
const actionsToBatch = actions.map(a => !a.done ? a.value : null);
const actionsToBatch = actions.map((a) => (!a.done ? a.value : null));
// Only batch actions when there are some to batch
// People may batch stories together that actually dont have actions in them!?
if (actionsToBatch.filter(atb => !!atb).length) {
if (actionsToBatch.filter((atb) => !!atb).length) {
values = yield* askBatch(actionsToBatch);

@@ -43,3 +43,3 @@ }

if (done) {
return actions.map(a => a.value);
return actions.map((a) => a.value);
}

@@ -49,1 +49,13 @@ }

exports.askParallel = askParallel;
function* askExecuteStory(type, src, runtime, ...params) {
return yield {
type: SystemActionTypeEnum_1.default.ExecuteStory,
payload: {
type,
src,
runtime,
params,
},
};
}
exports.askExecuteStory = askExecuteStory;
export declare enum SystemActionTypeEnum {
Batch = "@quidproquo-core/System/Batch"
Batch = "@quidproquo-core/System/Batch",
ExecuteStory = "@quidproquo-core/System/ExecuteStory"
}
export default SystemActionTypeEnum;

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

SystemActionTypeEnum["Batch"] = "@quidproquo-core/System/Batch";
SystemActionTypeEnum["ExecuteStory"] = "@quidproquo-core/System/ExecuteStory";
})(SystemActionTypeEnum = exports.SystemActionTypeEnum || (exports.SystemActionTypeEnum = {}));
exports.default = SystemActionTypeEnum;

@@ -1,1 +0,8 @@

export declare const hello: (what: string) => string;
export { DateActionTypeEnum } from "./actions/date/DateActionTypeEnum";
export { GuidActionTypeEnum } from "./actions/guid/GuidActionTypeEnum";
export { EventActionTypeEnum } from "./actions/event/EventActionTypeEnum";
export { MathActionTypeEnum } from "./actions/math/MathActionTypeEnum";
export { PlatformActionTypeEnum } from "./actions/platform/PlatformActionTypeEnum";
export { SystemActionTypeEnum } from "./actions/system/SystemActionTypeEnum";
export { QPQCoreConfigSettingType, QPQConfigSetting, QPQConfig, } from "./config/QPQConfig";
export { default as qpqCoreUtils } from "./qpqCoreUtils";
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.hello = void 0;
const hello = (what) => {
const newVar = `Hello ${what}`;
console.log(newVar);
return newVar;
};
exports.hello = hello;
exports.qpqCoreUtils = exports.QPQCoreConfigSettingType = exports.SystemActionTypeEnum = exports.PlatformActionTypeEnum = exports.MathActionTypeEnum = exports.EventActionTypeEnum = exports.GuidActionTypeEnum = exports.DateActionTypeEnum = void 0;
var DateActionTypeEnum_1 = require("./actions/date/DateActionTypeEnum");
Object.defineProperty(exports, "DateActionTypeEnum", { enumerable: true, get: function () { return DateActionTypeEnum_1.DateActionTypeEnum; } });
var GuidActionTypeEnum_1 = require("./actions/guid/GuidActionTypeEnum");
Object.defineProperty(exports, "GuidActionTypeEnum", { enumerable: true, get: function () { return GuidActionTypeEnum_1.GuidActionTypeEnum; } });
var EventActionTypeEnum_1 = require("./actions/event/EventActionTypeEnum");
Object.defineProperty(exports, "EventActionTypeEnum", { enumerable: true, get: function () { return EventActionTypeEnum_1.EventActionTypeEnum; } });
var MathActionTypeEnum_1 = require("./actions/math/MathActionTypeEnum");
Object.defineProperty(exports, "MathActionTypeEnum", { enumerable: true, get: function () { return MathActionTypeEnum_1.MathActionTypeEnum; } });
var PlatformActionTypeEnum_1 = require("./actions/platform/PlatformActionTypeEnum");
Object.defineProperty(exports, "PlatformActionTypeEnum", { enumerable: true, get: function () { return PlatformActionTypeEnum_1.PlatformActionTypeEnum; } });
var SystemActionTypeEnum_1 = require("./actions/system/SystemActionTypeEnum");
Object.defineProperty(exports, "SystemActionTypeEnum", { enumerable: true, get: function () { return SystemActionTypeEnum_1.SystemActionTypeEnum; } });
var QPQConfig_1 = require("./config/QPQConfig");
Object.defineProperty(exports, "QPQCoreConfigSettingType", { enumerable: true, get: function () { return QPQConfig_1.QPQCoreConfigSettingType; } });
var qpqCoreUtils_1 = require("./qpqCoreUtils");
Object.defineProperty(exports, "qpqCoreUtils", { enumerable: true, get: function () { return __importDefault(qpqCoreUtils_1).default; } });
{
"name": "quidproquo-core",
"version": "0.0.10",
"version": "0.0.11",
"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