Skip to content

Commit 04850af

Browse files
committed
fix precommit hook
1 parent d199494 commit 04850af

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

.husky/pre-commit

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
11
npm test
2+
git add dist/
3+
echo 'precommit done'

dist/set-cookie.cjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var defaultParseOptions = {
44
decodeValues: true,
55
map: false,
66
silent: false,
7-
split: undefined, // undefined = split strings but not arrays
7+
split: "auto", // auto = split strings but not arrays
88
};
99

1010
function isForbiddenKey(key) {
@@ -134,7 +134,7 @@ function parseSetCookie(input, options) {
134134
var split = options.split;
135135
var isArray = Array.isArray(input);
136136

137-
if (typeof split === "undefined") {
137+
if (split === "auto") {
138138
split = !isArray;
139139
}
140140

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@
4747
"test": "npm run build && npm run lint && mocha",
4848
"autofix": "npm run lint -- --fix",
4949
"format": "npm run lint -- --fix",
50-
"precommit": "npm test && git add dist/",
5150
"build": "node ./build-cjs.js",
5251
"prepare": "husky"
5352
},

0 commit comments

Comments
 (0)