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

@auto-it/core

Package Overview
Dependencies
Maintainers
1
Versions
977
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@auto-it/core - npm Package Compare versions

Comparing version 7.0.6-canary.451.5951.0 to 7.0.6-canary.452.5970.0

4

dist/__tests__/git.test.js

@@ -66,8 +66,10 @@ "use strict";

var update = jest.fn();
var paginate = jest.fn();
jest.mock('@octokit/rest', function () {
var instance = function () { return ({
authenticate: authenticate,
paginate: paginate,
pulls: {
get: getPr,
listCommits: listCommits,
listCommits: { endpoint: listCommits },
list: list

@@ -74,0 +76,0 @@ },

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

return commit.authors.map(function (author) { return __awaiter(_this, void 0, void 0, function () {
var user, authorEntry;
var username, user, authorEntry;
return __generator(this, function (_a) {

@@ -258,9 +258,10 @@ switch (_a.label) {

}
username = (author.username || author.name);
return [4 /*yield*/, this.hooks.renderChangelogAuthor.promise(author, commit, this.options)];
case 1:
user = _a.sent();
if (user && seenUsers.has(user)) {
if (user && seenUsers.has(username)) {
return [2 /*return*/];
}
seenUsers.add(user);
seenUsers.add(username);
return [4 /*yield*/, this.hooks.renderChangelogAuthorLine.promise(author, user)];

@@ -267,0 +268,0 @@ case 2:

@@ -45,3 +45,3 @@ import Octokit from '@octokit/rest';

getPullRequests(options?: Partial<Octokit.PullsListParams>): Promise<Octokit.PullsListResponseItem[]>;
getCommitsForPR(pr: number): Promise<Octokit.PullsListCommitsResponseItem[]>;
getCommitsForPR(pr: number): Promise<any[]>;
deleteComment(pr: number, context?: string): Promise<void>;

@@ -48,0 +48,0 @@ createComment(message: string, pr: number, context?: string): Promise<Octokit.Response<Octokit.IssuesCreateCommentResponse>>;

@@ -619,9 +619,9 @@ "use strict";

this.logger.verbose.info("Getting commits for PR #" + pr);
return [4 /*yield*/, this.github.pulls.listCommits({
return [4 /*yield*/, this.github.paginate(this.github.pulls.listCommits.endpoint({
owner: this.options.owner.toLowerCase(),
repo: this.options.repo.toLowerCase(),
pull_number: pr
})];
}))];
case 1:
result = (_a.sent()).data;
result = _a.sent();
this.logger.veryVerbose.info("Got response from PR #" + pr + "\n", result);

@@ -628,0 +628,0 @@ this.logger.verbose.info("Got commits for PR #" + pr + ".");

{
"name": "@auto-it/core",
"version": "7.0.6-canary.451.5951.0",
"version": "7.0.6-canary.452.5970.0",
"description": "Node API for using auto.",

@@ -79,3 +79,3 @@ "main": "dist/auto.js",

},
"gitHead": "c2ea5ba3eb183eea1df43c019bcd4033f95ecd48"
"gitHead": "19d2986e8f4c749e44508d91bf0671b94493d207"
}

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

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