Skip to content

Commit

Permalink
Add node 14 support
Browse files Browse the repository at this point in the history
antonmedv committed Jul 5, 2021

Verified

This commit was signed with the committer’s verified signature. The key has expired.
xu-cheng Cheng Xu
1 parent d5aa01b commit b88f9b1
Showing 3 changed files with 10 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 15
node-version: 14
- run: npm i
- run: npm test
- run: echo "//wombat-dressing-room.appspot.com/:_authToken=$AUTH_TOKEN" >> .npmrc
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ jobs:

strategy:
matrix:
node-version: [15.x, 16.x]
node-version: [14.x, 15.x, 16.x]

steps:
- uses: actions/checkout@v2
17 changes: 8 additions & 9 deletions index.mjs
Original file line number Diff line number Diff line change
@@ -243,15 +243,14 @@ function quote(arg) {
}
return `$'`
+ arg
.replaceAll('\\', '\\\\')
.replaceAll('\'', '\\\'')
.replaceAll('\b', '\\b')
.replaceAll('\f', '\\f')
.replaceAll('\n', '\\n')
.replaceAll('\r', '\\r')
.replaceAll('\t', '\\t')
.replaceAll('\v', '\\v')
.replaceAll('\u0000', '\\0')
.replace(/\\/g, '\\\\')
.replace(/'/g, '\\\'')
.replace(/\f/g, '\\f')
.replace(/\n/g, '\\n')
.replace(/\r/g, '\\r')
.replace(/\t/g, '\\t')
.replace(/\v/g, '\\v')
.replace(/\0/g, '\\0')
+ `'`
}

0 comments on commit b88f9b1

Please sign in to comment.