Socket
Socket
Sign inDemoInstall

ignore-sync

Package Overview
Dependencies
4
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 3.0.0 to 3.0.1

jest.config.js

6

CHANGELOG.md

@@ -5,2 +5,8 @@ # Changelog

### [3.0.1](https://github.com/foray1010/ignore-sync/compare/v3.0.0...v3.0.1) (2020-11-16)
### Bug Fixes
- **relative-tag:** missing \*\* in pattern & generate invalid ignore pattern on Windows ([#308](https://github.com/foray1010/ignore-sync/issues/308)) ([7fd174e](https://github.com/foray1010/ignore-sync/commit/7fd174eff0dbc8378ef8e638ca99014d7c47963b))
## [3.0.0](https://github.com/foray1010/ignore-sync/compare/v2.0.1...v3.0.0) (2020-11-04)

@@ -7,0 +13,0 @@

10

package.json
{
"name": "ignore-sync",
"version": "3.0.0",
"version": "3.0.1",
"description": "a CLI tool to build and sync *ignore files across files and repositories",

@@ -28,3 +28,3 @@ "keywords": [

"remark": "remark --frail --ignore-path=node_modules/@foray1010/remark-preset/remarkignore --ignore-path-resolve-from=cwd",
"test": "cross-env NODE_ENV=test jest --config .jestrc.json"
"test": "cross-env NODE_ENV=test jest"
},

@@ -39,10 +39,10 @@ "dependencies": {

"@commitlint/config-conventional": "11.0.0",
"@foray1010/eslint-config": "4.1.0",
"@foray1010/eslint-config": "4.1.1",
"@foray1010/prettier-config": "4.1.1",
"@foray1010/remark-preset": "3.4.0",
"cross-env": "7.0.2",
"eslint": "7.12.1",
"eslint": "7.13.0",
"glob-exec": "0.1.1",
"husky": "4.3.0",
"jest": "26.6.1",
"jest": "26.6.3",
"lint-staged": "10.5.1",

@@ -49,0 +49,0 @@ "mermaid.cli": "0.5.1",

@@ -7,6 +7,7 @@ 'use strict'

const decodeIgnoreSyncFile = require('./decodeIgnoreSyncFile')
const formatRelativeIgnoreFile = require('./utils/formatRelativeIgnoreFile')
const github = require('./utils/github')
const highlightComments = require('./utils/highlightComments')
const joinLinesWithEOF = require('./utils/joinLinesWithEOF')
const { COMMENT_HEADER_ALERT, LINE_BREAK } = require('./constants')
const { COMMENT_HEADER_ALERT } = require('./constants')
const { dynamicComposeP, promiseMap } = require('./utils/ramdaHelper')

@@ -38,22 +39,4 @@ const { readFile } = require('./utils/fsHelper')

const files = await promiseMap(async (relativeFilePath) => {
const filePath = path.dirname(relativeFilePath)
const fileContent = await readFile(path.join(directory, relativeFilePath))
const splittedFileContent = fileContent.split(LINE_BREAK)
const edittedFileContent = splittedFileContent.map((line) => {
if (!line) {
return line
}
if (line.startsWith('#')) {
return line
}
if (line.startsWith('!')) {
return '!' + path.join(filePath, line.substring(1))
}
return path.join(filePath, line)
})
return edittedFileContent.join(LINE_BREAK)
return formatRelativeIgnoreFile(fileContent, path.dirname(relativeFilePath))
}, block.data)

@@ -60,0 +43,0 @@ return joinLinesWithEOF(files)

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc