Socket
Socket
Sign inDemoInstall

@changesets/changelog-github

Package Overview
Dependencies
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@changesets/changelog-github - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

10

CHANGELOG.md
# @changesets/changelog-github
## 0.2.3
### Patch Changes
- [`e56928b`](https://github.com/atlassian/changesets/commit/e56928bbd6f9096def06ac37487bdbf28efec9d1) [#298](https://github.com/atlassian/changesets/pull/298) Thanks [@eps1lon](https://github.com/eps1lon)! - In changelog-github, throw more descriptive error when no options are provided.
- Updated dependencies [[`04ddfd7`](https://github.com/atlassian/changesets/commit/04ddfd7c3acbfb84ef9c92873fe7f9dea1f5145c), [`e56928b`](https://github.com/atlassian/changesets/commit/e56928bbd6f9096def06ac37487bdbf28efec9d1)]:
- @changesets/get-github-info@0.4.2
- @changesets/types@1.0.1
## 0.2.2

@@ -4,0 +14,0 @@

2

dist/changelog-github.cjs.dev.js

@@ -32,3 +32,3 @@ 'use strict';

getReleaseLine: async (changeset, type, options) => {
if (!options.repo) {
if (!options || !options.repo) {
throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]');

@@ -35,0 +35,0 @@ }

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

getReleaseLine: async (changeset, type, options) => {
if (!options.repo) throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]');
if (!options || !options.repo) throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]');
const [firstLine, ...futureLines] = changeset.summary.split("\n").map(l => l.trimRight());

@@ -29,0 +29,0 @@ if (changeset.commit) {

@@ -28,3 +28,3 @@ import { config } from 'dotenv';

getReleaseLine: async (changeset, type, options) => {
if (!options.repo) {
if (!options || !options.repo) {
throw new Error('Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]');

@@ -31,0 +31,0 @@ }

{
"name": "@changesets/changelog-github",
"version": "0.2.2",
"version": "0.2.3",
"description": "A changelog entry generator for GitHub that links to commits, PRs and users",

@@ -10,6 +10,6 @@ "main": "dist/changelog-github.cjs.js",

"dependencies": {
"@changesets/get-github-info": "^0.4.1",
"@changesets/types": "^1.0.0",
"@changesets/get-github-info": "^0.4.2",
"@changesets/types": "^1.0.1",
"dotenv": "^8.1.0"
}
}

@@ -42,3 +42,3 @@ import { ChangelogFunctions } from "@changesets/types";

getReleaseLine: async (changeset, type, options) => {
if (!options.repo) {
if (!options || !options.repo) {
throw new Error(

@@ -45,0 +45,0 @@ 'Please provide a repo to this changelog generator like this:\n"changelog": ["@changesets/changelog-github", { "repo": "org/repo" }]'

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