Skip to content

Commit ea08a7d

Browse files
committed
update dev-dependencies
1 parent b7f0a72 commit ea08a7d

9 files changed

Lines changed: 2705 additions & 5394 deletions

File tree

package-lock.json

Lines changed: 2684 additions & 5372 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"lint:ci": "npm run eslint:ci && npm run prettier:ci",
1919
"eslint": "eslint --fix .",
2020
"eslint:ci": "eslint .",
21-
"prettier": "prettier --write --loglevel error .",
21+
"prettier": "prettier --write --log-level error .",
2222
"prettier:ci": "prettier --check .",
2323
"prepublishOnly": "npm test && npm run lint:ci",
2424
"upgrade-lock": "rm -rf package-lock.json node_modules && npm i",
@@ -33,9 +33,8 @@
3333
"eslint-config-prettier": "^10.1.8",
3434
"eslint-plugin-jest": "^29.15.0",
3535
"globals": "^17.4.0",
36-
"jest": "^29.7.0",
37-
"prettier": "^2.8.8",
38-
"weak-napi": "^2.0.2"
36+
"jest": "^30.3.0",
37+
"prettier": "^3.8.1"
3938
},
4039
"keywords": [
4140
"cli",

src/args.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const parseArgs = (args) => {
5050

5151
directives.push([option === "on" ? "push" : option === "off" ? "pull" : option, unquotedArg]);
5252
return "";
53-
}
53+
},
5454
);
5555
assert(rest.length === 0, `missed (partial) arguments '${rest}'`);
5656
}

src/directives.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const _switchRe = (marker) => {
2020
const preparedMarker = _prepareMarker(marker);
2121
return RegExp(
2222
`^(\\s*)(?:(${preparedMarker})([^\\S\\r\\n]+)(.*?\\S)|(\\S.*?)([^\\S\\r\\n]+)(${preparedMarker}))(\\s*)$`,
23-
"gm"
23+
"gm",
2424
);
2525
};
2626

@@ -58,7 +58,7 @@ const processDirectives = (filepaths, directives) => {
5858
return writeFileAsync(filepath, data);
5959
}
6060
});
61-
})
61+
}),
6262
).then(() => markerChanges);
6363
};
6464

src/filter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const _processFilterDirectory = (startDir, withSubDirs, matchesFilepath, result
1919
} else if (fileEntry.isFile() && matchesFilepath(filepath)) {
2020
result.push(filepath);
2121
}
22-
})
22+
}),
2323
);
2424
})
2525
.catch((err) => {
@@ -64,7 +64,7 @@ const _prepare = (input) => {
6464

6565
const processFilters = (...inputs) => {
6666
return Promise.all(inputs.map((input) => _processFilterDirectory(..._prepare(input)))).then((outputs) =>
67-
outputs.reduce((prev, cur) => prev.concat(cur), [])
67+
outputs.reduce((prev, cur) => prev.concat(cur), []),
6868
);
6969
};
7070

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`process bad directive 1`] = `"encountered unknown directive bad"`;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`filter for generic read error 1`] = `"generic read error"`;

test/__snapshots__/helper.test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Jest Snapshot v1, https://goo.gl/fbAQLP
1+
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
22

33
exports[`escapeRegExp 1`] = `" !"#\\$%&'\\(\\)\\*\\+,-\\./0123456789:;<=>\\?@ABCDEFGHIJKLMNOPQRSTUVWXYZ\\[\\\\\\]\\^_\`abcdefghijklmnopqrstuvwxyz\\{\\|\\}~"`;
44

test/directives.test.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ test("process switch directive", () => {
4646
return mockDirectives(
4747
` alalalasdas # 123
4848
# 123 alalalasdas `,
49-
[["switch", "# 123"]]
49+
[["switch", "# 123"]],
5050
).then((result) => {
5151
expect(result).toEqual(
5252
` # 123 alalalasdas
53-
alalalasdas # 123 `
53+
alalalasdas # 123 `,
5454
);
5555
});
5656
});
@@ -68,7 +68,7 @@ test("process wildcard markers", () => {
6868
[
6969
["pull", "#REG*"],
7070
["push", "#REG*GITHUB"],
71-
]
71+
],
7272
).then((result) => {
7373
expect(result).toEqual(`
7474
rog=true #ROG
@@ -98,7 +98,7 @@ test("process escaping", () => {
9898
\\* c
9999
d \\\\*
100100
e *
101-
`)
101+
`),
102102
)
103103
.then(() => mockDirectives(testSet, [["pull", "\\\\*"]]))
104104
.then((result) =>
@@ -108,7 +108,7 @@ test("process escaping", () => {
108108
\\* c
109109
\\\\* d
110110
e *
111-
`)
111+
`),
112112
)
113113
.then(() => mockDirectives(testSet, [["pull", "\\*"]]))
114114
.then((result) =>
@@ -118,7 +118,7 @@ test("process escaping", () => {
118118
c \\*
119119
d \\\\*
120120
* e
121-
`)
121+
`),
122122
);
123123
});
124124

@@ -188,7 +188,7 @@ test("usage switch directive", () => {
188188
package-lock=false #WRITE_LOCK
189189
#WRITE_LOCK package-lock=true
190190
`,
191-
[["switch", "#WRITE_LOCK"]]
191+
[["switch", "#WRITE_LOCK"]],
192192
).then((result) => {
193193
expect(result).toEqual(`
194194
#WRITE_LOCK package-lock=false
@@ -202,7 +202,7 @@ test("usage multiline comments", () => {
202202
<option>deleteall</option> <!--DELETE
203203
-->
204204
`,
205-
[["pull", "<!--DELETE"]]
205+
[["pull", "<!--DELETE"]],
206206
).then((result) => {
207207
expect(result).toEqual(`
208208
<!--DELETE <option>deleteall</option>
@@ -221,7 +221,7 @@ test("usage markers with wildcards", () => {
221221
[
222222
["pull", "#REG*"],
223223
["push", "#REG*CUSTOM"],
224-
]
224+
],
225225
).then((result) => {
226226
expect(result).toEqual(`
227227
#REG_NPM registry=https://registry.npmjs.org
@@ -237,7 +237,7 @@ test("usage markers with escaped wildcard", () => {
237237
const win=true /*WIN
238238
*/
239239
`,
240-
[["pull", "/\\*WIN"]]
240+
[["pull", "/\\*WIN"]],
241241
).then((result) => {
242242
expect(result).toEqual(`
243243
/*WIN const win=true

0 commit comments

Comments
 (0)