New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@anilanar/moxci

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@anilanar/moxci - npm Package Compare versions

Comparing version 0.0.3-rc.1 to 0.0.3-rc.2

13

lib/index.js

@@ -42,7 +42,7 @@ "use strict";

exports.moxci = function (targetPath, options) { return __awaiter(_this, void 0, void 0, function () {
var _a, CIRCLE_PULL_REQUEST, CIRCLE_BUILD_NUM, GITHUB_TOKEN, CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, SLACK_WEBHOOK, CIRCLE_SHA1, circleciApiUrl, artifactUrl, pullRequestId;
var _a, CIRCLE_BUILD_NUM, GITHUB_TOKEN, CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1, circleciApiUrl, artifactUrl;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
_a = process.env, CIRCLE_PULL_REQUEST = _a.CIRCLE_PULL_REQUEST, CIRCLE_BUILD_NUM = _a.CIRCLE_BUILD_NUM, GITHUB_TOKEN = _a.GITHUB_TOKEN, CIRCLE_TOKEN = _a.CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME = _a.CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME = _a.CIRCLE_PROJECT_REPONAME, SLACK_WEBHOOK = _a.SLACK_WEBHOOK, CIRCLE_SHA1 = _a.CIRCLE_SHA1;
_a = process.env, CIRCLE_BUILD_NUM = _a.CIRCLE_BUILD_NUM, GITHUB_TOKEN = _a.GITHUB_TOKEN, CIRCLE_TOKEN = _a.CIRCLE_TOKEN, CIRCLE_PROJECT_USERNAME = _a.CIRCLE_PROJECT_USERNAME, CIRCLE_PROJECT_REPONAME = _a.CIRCLE_PROJECT_REPONAME, CIRCLE_SHA1 = _a.CIRCLE_SHA1;
// Validation

@@ -57,6 +57,2 @@ if (!CIRCLE_PROJECT_USERNAME) {

}
if (!CIRCLE_PULL_REQUEST) {
console.error("Cannot find pull request ID");
return [2 /*return*/];
}
if (!CIRCLE_BUILD_NUM) {

@@ -80,7 +76,2 @@ console.error("Cannot find build number");

if (GITHUB_TOKEN) {
pullRequestId = Number(CIRCLE_PULL_REQUEST.split("/").pop());
if (!pullRequestId) {
console.error("Invalid Pull Request Id");
return [2 /*return*/];
}
github_notify_1.notifyGithubPr({

@@ -87,0 +78,0 @@ owner: CIRCLE_PROJECT_USERNAME,

4

package.json
{
"name": "@anilanar/moxci",
"version": "0.0.3-rc.1",
"version": "0.0.3-rc.2",
"description": "tool to notify circleci build artifacts as a github commit status.",

@@ -25,3 +25,3 @@ "homepage": "https://github.com/anilanar/moxci#readme",

"build": "tsc",
"publish": "yarn && yarn build",
"prepublishOnly": "yarn && yarn build",
"test": "node src/index.test.ts",

@@ -28,0 +28,0 @@ "type-check": "tsc --noEmit"

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