squawk-cli 2.35.0 → 2.37.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/js/install.js +5 -5
  2. package/package.json +2 -2
package/js/install.js CHANGED
@@ -87,7 +87,7 @@ function getCachedPath(url) {
87
87
  return path.join(
88
88
  getNpmCache(),
89
89
  "squawk-cli",
90
- `${digest}-${path.basename(url).replace(/[^a-zA-Z0-9.]+/g, "-")}`
90
+ `${digest}-${path.basename(url).replace(/[^a-zA-Z0-9.]+/g, "-")}`,
91
91
  )
92
92
  }
93
93
 
@@ -134,7 +134,7 @@ function downloadBinary() {
134
134
  "accept-encoding": "gzip, deflate, br",
135
135
  },
136
136
  redirect: "follow",
137
- }).then(response => {
137
+ }).then((response) => {
138
138
  if (!response.ok) {
139
139
  throw new Error(`Received ${response.status}: ${response.statusText}`)
140
140
  }
@@ -147,10 +147,10 @@ function downloadBinary() {
147
147
 
148
148
  return new Promise((resolve, reject) => {
149
149
  response.body
150
- .on("error", e => reject(e))
150
+ .on("error", (e) => reject(e))
151
151
  .pipe(decompressor)
152
152
  .pipe(fs.createWriteStream(tempPath, { mode: 0o755 }))
153
- .on("error", e => reject(e))
153
+ .on("error", (e) => reject(e))
154
154
  .on("close", () => resolve())
155
155
  }).then(() => {
156
156
  fs.copyFileSync(tempPath, cachedPath)
@@ -162,7 +162,7 @@ function downloadBinary() {
162
162
 
163
163
  downloadBinary()
164
164
  .then(() => process.exit(0))
165
- .catch(e => {
165
+ .catch((e) => {
166
166
  console.error(e)
167
167
  process.exit(1)
168
168
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "squawk-cli",
3
- "version": "2.35.0",
3
+ "version": "2.37.0",
4
4
  "description": "linter for PostgreSQL, focused on migrations",
5
5
  "repository": "git@github.com:sbdchd/squawk.git",
6
6
  "author": "Squawk Team & Contributors",
@@ -25,7 +25,7 @@
25
25
  "@typescript-eslint/parser": "^3.3.0",
26
26
  "eslint": "^7.2.0",
27
27
  "eslint-plugin-import": "^2.21.2",
28
- "prettier": "^2.0.5",
28
+ "prettier": "^3.8.0",
29
29
  "typescript": "^3.9.5"
30
30
  },
31
31
  "dependencies": {