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 1.1.0-next to 1.1.0-next.1

24

bin/promise-watch.js

@@ -1,14 +0,18 @@

console.log("PROMISE WATCH");
require('ts-node').register();
// const { executeJobs } = require("../dist/execute");
const { executeJobs } = require('../dist/execute');
const options = {
dir: __dirname,
};
(async function () {
const dir = process.cwd();
console.log(options)
const config = await import(`${dir}/promise-watch.config.js`);
// executeJobs(options).catch(err => {
// console.error(err);
// process.exit(1);
// });
const options = { dir, ...config.default };
console.log(options);
await executeJobs(options);
})().catch(err => {
console.error(err);
process.exit(1);
});

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

const files = await (0, glob_promise_1.glob)(globPath);
const promises = files.map(f => (0, path_1.resolve)(dir, "../", f));
const promises = files.map(f => (0, path_1.resolve)(dir, f));
const imports = await Promise.all(promises.map(f => Promise.resolve().then(() => __importStar(require(f)))));

@@ -34,0 +34,0 @@ return imports.map((page, idx) => {

{
"name": "@promise-watch/core",
"version": "1.1.0-next",
"version": "1.1.0-next.1",
"author": "Jason Raimondi <jason@raimondi.us> (https://jasonraimondi.com)",

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

@@ -7,3 +7,3 @@ import { glob } from "./utils/glob-promise";

const files = await glob(globPath);
const promises = files.map(f => resolve(dir, "../", f));
const promises = files.map(f => resolve(dir, f));
const imports = await Promise.all(promises.map(f => import(f)));

@@ -10,0 +10,0 @@ return imports.map((page, idx) => ({

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