Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@promise-watch/core

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@promise-watch/core - npm Package Compare versions

Comparing version 0.0.10 to 0.0.11

dist/filter-runs.d.ts

2

dist/index.d.ts
import { ExecuteOptions } from "./types";
export * from "./notifiers/console-notifier";
export * from "./types";
export declare function executeJobs(options: ExecuteOptions): Promise<void>;

27

dist/index.js
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.executeJobs = void 0;
const run_1 = require("./run");
const files_1 = require("./files");
const execute_1 = require("./execute");
const recursively_run_1 = require("./recursively-run");
const import_runs_1 = require("./import-runs");
const filter_runs_1 = require("./filter-runs");
__exportStar(require("./notifiers/console-notifier"), exports);
__exportStar(require("./types"), exports);
async function executeJobs(options) {
const { dir, notifiers = [], globPath = "runs/**/*.{js,ts}", } = options;
const files = await (0, files_1.importRunsFromPath)(globPath, dir);
const runs = (0, execute_1.filterRunsWithoutRequiredFields)(files);
await Promise.allSettled(runs.map(run => (0, run_1.recursivelyRun)(run, notifiers)));
const files = await (0, import_runs_1.importRunsFromPath)(globPath, dir);
const runs = (0, filter_runs_1.filterRunsWithoutRequiredFields)(files);
await Promise.allSettled(runs.map(run => (0, recursively_run_1.recursivelyRun)(run, notifiers)));
}
exports.executeJobs = executeJobs;
function shutdown() {
(0, run_1.haltRecursion)();
(0, recursively_run_1.haltRecursion)();
console.log("HALTING RECURSION");
process.exit(0);

@@ -17,0 +30,0 @@ }

{
"name": "@promise-watch/core",
"version": "0.0.10",
"version": "0.0.11",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)",

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

import { haltRecursion, recursivelyRun } from "./run";
import { haltRecursion, recursivelyRun } from "./recursively-run";
import { ExecuteOptions } from "./types";
import { importRunsFromPath } from "./files";
import { filterRunsWithoutRequiredFields } from "./execute";
import { importRunsFromPath } from "./import-runs";
import { filterRunsWithoutRequiredFields } from "./filter-runs";
export * from "./notifiers/console-notifier"
export * from "./types";
export async function executeJobs(options: ExecuteOptions) {

@@ -19,2 +22,3 @@ const {

haltRecursion();
console.log("HALTING RECURSION");
process.exit(0);

@@ -21,0 +25,0 @@ }

Sorry, the diff of this file is not supported yet

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