Skip to content

Commit

Permalink
new version
Browse files Browse the repository at this point in the history
  • Loading branch information
furknyavuz committed Apr 8, 2022
1 parent 6e89e63 commit 58a06b8
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</p>

<h1 align="center">
Open Template Hub - SMS Server Template v3
Open Template Hub - SMS Server Template v4
</h1>

[![License](https://img.shields.io/github/license/open-template-hub/sms-server-template?color=43b043&style=for-the-badge)](LICENSE)
Expand Down
18 changes: 9 additions & 9 deletions dependency-checker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ console.log(
'\n' +
'\n' +
'<h1 align="center">\n' +
'Open Template Hub - SMS Server Template v3\n' +
'Open Template Hub - SMS Server Template v4\n' +
' <br/>\n' +
'(outdated packages)\n' +
'</h1>\n' +
Expand All @@ -26,36 +26,36 @@ for ( const line of lines ) {
if ( line.length === 0 ) {
continue;
}

if ( lines.indexOf( line ) === 0 ) {
columnIndexes[ 0 ] = line.indexOf( 'Current' );
columnIndexes[ 1 ] = line.indexOf( 'Wanted' ) + 3;
columnIndexes[ 2 ] = line.indexOf( 'Latest' ) + 6;
columnIndexes[ 3 ] = line.indexOf( 'Location' ) + 9;
}

let modifiedLine = '';

if ( columnIndexes [ 0 ] >= 0 ) {
const stringParts = line.split( /(\s+)/ );

modifiedLine += '| ';

for ( let part of stringParts ) {
if ( part.match( /\s+/ ) ) {
modifiedLine += ' | ';
} else {
modifiedLine += part;
}
}

modifiedLine += ' |';

console.log( modifiedLine );
} else {
console.log( modifiedLine );
}

if ( lines.indexOf( line ) === 0 ) {
console.log( '| --- | --- | --- | --- | --- |' );
}
Expand Down
2 changes: 1 addition & 1 deletion docs/OUTDATED.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


<h1 align="center">
Open Template Hub - SMS Server Template v3
Open Template Hub - SMS Server Template v4
<br/>
(outdated packages)
</h1>
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sms-server-template",
"description": "SMS Server Template is a generic open-source sms server that has a simple yet powerful design to connect your business with third-party sms service providers (like Twilio, Amazon SNS).",
"version": "3.1.1",
"version": "4.0.0",
"license": "MIT",
"main": "sms-server.main.ts",
"scripts": {
Expand Down

0 comments on commit 58a06b8

Please sign in to comment.