Comparing version 13.0.0-beta.13 to 13.0.0-beta.14
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defaultApp = void 0; | ||
const node_path_1 = require("node:path"); | ||
const load_package_json_js_1 = require("../helpers/load-package-json.js"); | ||
const path_1 = require("path"); | ||
const probot_js_1 = require("../views/probot.js"); | ||
@@ -11,3 +11,3 @@ function defaultApp(_app, { getRouter, cwd = process.cwd() }) { | ||
} | ||
const pkg = (0, load_package_json_js_1.loadPackageJson)((0, path_1.resolve)(cwd, "package.json")); | ||
const pkg = (0, load_package_json_js_1.loadPackageJson)((0, node_path_1.resolve)(cwd, "package.json")); | ||
const probotViewRendered = (0, probot_js_1.probotView)({ | ||
@@ -14,0 +14,0 @@ name: pkg.name, |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.setupAppFactory = void 0; | ||
const node_child_process_1 = require("node:child_process"); | ||
const querystring_1 = require("querystring"); | ||
const express_1 = __importDefault(require("express")); | ||
const child_process_1 = require("child_process"); | ||
const update_dotenv_1 = __importDefault(require("update-dotenv")); | ||
@@ -62,3 +62,3 @@ const manifest_creation_js_1 = require("../manifest-creation.js"); | ||
if (process.env.PROJECT_DOMAIN) { | ||
(0, child_process_1.exec)("refresh", (error) => { | ||
(0, node_child_process_1.exec)("refresh", (error) => { | ||
if (error) { | ||
@@ -65,0 +65,0 @@ app.log.error(error); |
"use strict"; | ||
// Usage: probot receive -e push -p path/to/payload app.js | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
@@ -30,8 +29,9 @@ if (k2 === undefined) k2 = k; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
// Usage: probot receive -e push -p path/to/payload app.js | ||
const node_fs_1 = __importDefault(require("node:fs")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const node_crypto_1 = require("node:crypto"); | ||
const express_1 = __importStar(require("express")); | ||
const dotenv_1 = require("dotenv"); | ||
(0, dotenv_1.config)(); | ||
const fs_1 = __importDefault(require("fs")); | ||
const path_1 = __importDefault(require("path")); | ||
const crypto_1 = require("crypto"); | ||
const commander_1 = require("commander"); | ||
@@ -67,3 +67,3 @@ const get_private_key_1 = require("@probot/get-private-key"); | ||
} | ||
const payload = JSON.parse(fs_1.default.readFileSync(path_1.default.resolve(payloadPath), "utf8")); | ||
const payload = JSON.parse(node_fs_1.default.readFileSync(node_path_1.default.resolve(payloadPath), "utf8")); | ||
const log = (0, get_log_js_1.getLog)({ | ||
@@ -91,6 +91,6 @@ level: logLevel, | ||
}; | ||
const appFn = await (0, resolve_app_function_js_1.resolveAppFunction)(path_1.default.resolve(process.cwd(), commander_1.program.args[0])); | ||
const appFn = await (0, resolve_app_function_js_1.resolveAppFunction)(node_path_1.default.resolve(process.cwd(), commander_1.program.args[0])); | ||
await probot.load(appFn, options); | ||
probot.log.debug("Receiving event", event); | ||
probot.receive({ name: event, payload, id: (0, crypto_1.randomUUID)() }).catch(() => { | ||
probot.receive({ name: event, payload, id: (0, node_crypto_1.randomUUID)() }).catch(() => { | ||
// Process must exist non-zero to indicate that the action failed to run | ||
@@ -97,0 +97,0 @@ process.exit(1); |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const node_path_1 = require("node:path"); | ||
const commander_1 = require("commander"); | ||
const dotenv_1 = require("dotenv"); | ||
const is_supported_node_version_js_1 = require("../helpers/is-supported-node-version.js"); | ||
const load_package_json_js_1 = require("../helpers/load-package-json.js"); | ||
const dotenv_1 = require("dotenv"); | ||
const path_1 = require("path"); | ||
/*import { dirname } from 'path'; | ||
@@ -12,3 +12,3 @@ import { fileURLToPath } from 'url';*/ | ||
//const __dirname = dirname(fileURLToPath(import.meta.url)); | ||
const pkg = (0, load_package_json_js_1.loadPackageJson)((0, path_1.resolve)(__dirname, "package.json")); | ||
const pkg = (0, load_package_json_js_1.loadPackageJson)((0, node_path_1.resolve)(__dirname, "package.json")); | ||
if (!(0, is_supported_node_version_js_1.isSupportedNodeVersion)()) { | ||
@@ -15,0 +15,0 @@ console.log(`Node.js version 18 is required. You have ${process.version}.`); |
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.Context = void 0; | ||
const path_1 = __importDefault(require("path")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const deepmerge_1 = __importDefault(require("deepmerge")); | ||
@@ -156,3 +156,3 @@ /** | ||
const params = this.repo({ | ||
path: path_1.default.posix.join(".github", fileName), | ||
path: node_path_1.default.posix.join(".github", fileName), | ||
defaults(configs) { | ||
@@ -159,0 +159,0 @@ const result = deepmerge_1.default.all([defaultConfig || {}, ...configs], deepMergeOptions); |
@@ -7,8 +7,8 @@ "use strict"; | ||
exports.loadPackageJson = void 0; | ||
const fs_1 = __importDefault(require("fs")); | ||
const path_1 = __importDefault(require("path")); | ||
function loadPackageJson(filepath = path_1.default.join(process.cwd(), "package.json")) { | ||
const node_fs_1 = __importDefault(require("node:fs")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
function loadPackageJson(filepath = node_path_1.default.join(process.cwd(), "package.json")) { | ||
let pkgContent; | ||
try { | ||
pkgContent = fs_1.default.readFileSync(filepath, "utf8"); | ||
pkgContent = node_fs_1.default.readFileSync(filepath, "utf8"); | ||
} | ||
@@ -15,0 +15,0 @@ catch { |
@@ -7,5 +7,5 @@ "use strict"; | ||
exports.ManifestCreation = void 0; | ||
const fs_1 = __importDefault(require("fs")); | ||
const node_fs_1 = __importDefault(require("node:fs")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const js_yaml_1 = __importDefault(require("js-yaml")); | ||
const path_1 = __importDefault(require("path")); | ||
const update_dotenv_1 = __importDefault(require("update-dotenv")); | ||
@@ -36,3 +36,3 @@ const probot_octokit_js_1 = require("./octokit/probot-octokit.js"); | ||
try { | ||
const file = fs_1.default.readFileSync(path_1.default.join(process.cwd(), "app.yml"), "utf8"); | ||
const file = node_fs_1.default.readFileSync(node_path_1.default.join(process.cwd(), "app.yml"), "utf8"); | ||
manifest = js_yaml_1.default.load(file); | ||
@@ -39,0 +39,0 @@ } |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getLoggingMiddleware = void 0; | ||
const node_crypto_1 = require("node:crypto"); | ||
const pino_http_1 = require("pino-http"); | ||
const crypto_1 = require("crypto"); | ||
function getLoggingMiddleware(logger, options) { | ||
@@ -20,3 +20,3 @@ return (0, pino_http_1.pinoHttp)({ | ||
req.headers["x-github-delivery"] || | ||
(0, crypto_1.randomUUID)(), | ||
(0, node_crypto_1.randomUUID)(), | ||
}); | ||
@@ -23,0 +23,0 @@ } |
/// <reference types="node" /> | ||
/// <reference types="node/http.js" /> | ||
/// <reference types="pino-http" /> | ||
import { type Server as HttpServer } from "http"; | ||
import type { Server as HttpServer } from "node:http"; | ||
import { type Application } from "express"; | ||
@@ -6,0 +6,0 @@ import type { Logger } from "pino"; |
@@ -27,4 +27,4 @@ "use strict"; | ||
exports.Server = exports.defaultWebhooksPath = void 0; | ||
const node_path_1 = require("node:path"); | ||
const express_1 = __importStar(require("express")); | ||
const path_1 = require("path"); | ||
const webhooks_1 = require("@octokit/webhooks"); | ||
@@ -52,3 +52,3 @@ const logging_middleware_js_1 = require("./logging-middleware.js"); | ||
this.expressApp.use((0, logging_middleware_js_1.getLoggingMiddleware)(this.log, options.loggingOptions)); | ||
this.expressApp.use("/probot/static/", express_1.default.static((0, path_1.join)(__dirname, "..", "..", "static"))); | ||
this.expressApp.use("/probot/static/", express_1.default.static((0, node_path_1.join)(__dirname, "..", "..", "static"))); | ||
this.expressApp.use((0, webhooks_1.createNodeMiddleware)(this.probotApp.webhooks, { | ||
@@ -55,0 +55,0 @@ path: this.state.webhookPath, |
@@ -75,2 +75,5 @@ import express from "express"; | ||
repository?: string; | ||
engines?: { | ||
[key: string]: string; | ||
}; | ||
}; | ||
@@ -77,0 +80,0 @@ export type Env = Record<Uppercase<string>, string>; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "13.0.0-beta.13"; | ||
export declare const VERSION = "13.0.0-beta.14"; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// The version is set automatically before publish to npm | ||
exports.VERSION = "13.0.0-beta.13"; | ||
exports.VERSION = "13.0.0-beta.14"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "probot", | ||
"version": "13.0.0-beta.13", | ||
"version": "13.0.0-beta.14", | ||
"description": "A framework for building GitHub Apps to automate and improve your workflow", | ||
@@ -5,0 +5,0 @@ "repository": "github:probot/probot", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Shell access
Supply chain riskThis module accesses the system shell. Accessing the system shell increases the risk of executing arbitrary code.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
741426
4370
46
0