This repository was archived by the owner on Jul 27, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
- <img src =" https://get.snaz.in/88HByqU .png " height =" 50 " >
1
+ <img src =" https://get.snaz.in/4jpcPBF .png " height =" 50 " >
2
2
3
3
A [ Dexare] ( https://github.com/Dexare/Dexare ) module for managing [ crons] ( https://npm.im/cron ) .
4
4
Original file line number Diff line number Diff line change @@ -30,15 +30,15 @@ arr = futureChangelog
30
30
. split ( '\n' )
31
31
. map ( ( line ) =>
32
32
line . startsWith ( '[Unreleased]' )
33
- ? `[Unreleased]: https://github.com/Dexare/logger /compare/v${ currentVersion } ...HEAD`
33
+ ? `[Unreleased]: https://github.com/Dexare/cron /compare/v${ currentVersion } ...HEAD`
34
34
: line
35
35
) ;
36
36
37
37
// eslint-disable-next-line no-useless-escape
38
38
const lastVersion = ( [ ...arr ] . reverse ( ) [ 1 ] . match ( / \[ ( [ ^ \] [ ] * ) ] / ) || [ ] ) [ 0 ] . replace ( / [ [ \] ' ] + / g, '' ) ;
39
39
if ( ! lastVersion ) throw new Error ( "Can't find last version in changelog." ) ;
40
40
41
- const lastLine = `[${ currentVersion } ]: https://github.com/Dexare/logger /compare/v${ lastVersion } ...v${ currentVersion } ` ;
41
+ const lastLine = `[${ currentVersion } ]: https://github.com/Dexare/cron /compare/v${ lastVersion } ...v${ currentVersion } ` ;
42
42
if ( arr [ arr . length - 1 ] === '' ) arr [ arr . length - 1 ] = lastLine ;
43
43
else arr . push ( lastLine ) ;
44
44
futureChangelog = arr . join ( '\n' ) ;
You can’t perform that action at this time.
0 commit comments