Commit b88f9b1

Anton Medvedev <anton@medv.io>
2021-07-05 14:30:46
Add node 14 support
1 parent d5aa01b
Changed files (3)
.github/workflows/npm-publish.yml
@@ -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
.github/workflows/test.yml
@@ -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
index.mjs
@@ -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')
     + `'`
 }