Skip to content
This repository was archived by the owner on Sep 26, 2023. It is now read-only.

Upgraded minimatch to remove security vulnerability & other dep upgrades #64

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"test": "tap test"
},
"dependencies": {
"nomnom": "1.6.x",
"colors": "0.5.x",
"minimatch": "~0.2.9"
"colors": "^1.1.2",
"minimatch": "^3.0.4",
"nomnom": "^1.8.1"
},
"devDependencies": {
"tape": "~0.2.2"
"tape": "^4.7.0"
},
"bin": {
"replace": "./bin/replace.js",
Expand Down
7 changes: 4 additions & 3 deletions test/sanity.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
var fs = require("fs"),
test = require('tape'),
EOL = require('os').EOL,
replace = require('../replace');

function getText(file) {
Expand Down Expand Up @@ -68,7 +69,7 @@ test('multiline', function(t) {
multiline: false
});

var expected = "abc\ndef";
var expected = "abc"+EOL+"def";
t.equal(getText(file), expected, "$ shouldn't match without multiline");

replace({
Expand All @@ -78,7 +79,7 @@ test('multiline', function(t) {
multiline: true
});

var expected = "abt\ndef";
var expected = "abt"+EOL+"def";
t.equal(getText(file), expected, "with multiline, $ should match eol");

replace({
Expand All @@ -88,7 +89,7 @@ test('multiline', function(t) {
multiline: true
});

var expected = "abc\ndef";
var expected = "abc"+EOL+"def";
t.equal(getText(file), expected, "reverting worked");
});

Expand Down
1 change: 1 addition & 0 deletions test/test_files/test_numbers.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
a123b