Socket
Socket
Sign inDemoInstall

git-contributor

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

git-contributor - npm Package Compare versions

Comparing version 2.1.2 to 2.1.3

README.zh.md

6

bin/git-contributor.js

@@ -6,3 +6,2 @@ #!/usr/bin/env node

const fs = require('fs');
const _ = require('xutil');
const path = require('path');

@@ -32,3 +31,3 @@ const program = require('commander');

.filter(item => {
return path.extname(item) === '.md' && item.toLocaleLowerCase().includes('readme');
return path.extname(item) === '.md' && item.toLowerCase().includes('readme');
})

@@ -40,2 +39,3 @@ .map(item => path.resolve(cwd, item))

const reg = new RegExp(`${res.startToken}[^]*${res.endToken}`);
if (reg.test(readmeContent)) {

@@ -46,3 +46,5 @@ readmeContent = readmeContent.replace(reg, res.content);

}
fs.writeFileSync(readmeFile, readmeContent);
if (options.print) {

@@ -49,0 +51,0 @@ console.log(res.content);

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

},
timeout: 30E3,
timeout: 30E3
};

@@ -167,3 +167,7 @@ if (process.env.OAUTH_TOKEN) {

const contributorTitle = ifHasZh(readMeContext) ? '贡献者' : 'Contributors';
const isZH = ifHasZh(readMeContext);
const contributorTitle = isZH ? '贡献者' : 'Contributors';
const footer = isZH ?
`[git-contributor 说明](${pkg.homepage}),自动生成时间:\`${_.moment()}\`。` :
`This project follows the git-contributor [spec](${pkg.homepage}), auto updated at \`${_.moment()}\`.`;

@@ -179,3 +183,3 @@ const res = [

'',
`This project follows the git-contributor [spec](${pkg.homepage}), auto updated at \`${_.moment()}\`.`,
footer,
'',

@@ -182,0 +186,0 @@ endToken

{
"name": "git-contributor",
"version": "2.1.2",
"version": "2.1.3",
"description": "git contributor",

@@ -44,6 +44,3 @@ "keywords": [

],
"engines": {
"node": ">= 14.17.0"
},
"license": "MIT"
}

@@ -30,3 +30,3 @@ # git-contributor

This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Apr 28 2022 20:29:02 GMT+0800`.
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Fri May 19 2023 00:07:27 GMT+0800`.

@@ -33,0 +33,0 @@ <!-- GITCONTRIBUTOR_END -->

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc