Skip to content

Commit f41ad4a

Browse files
chore: bump the all group with 6 updates (#520)
* chore: bump the all group with 6 updates Updates `@nihalgonsalves/esconfig` from 0.6.16 to 0.8.3 - [Release notes](https://github.com/nihalgonsalves/esconfig/releases) - [Changelog](https://github.com/nihalgonsalves/esconfig/blob/main/CHANGELOG.md) - [Commits](nihalgonsalves/esconfig@v0.6.16...esconfig-v0.8.3) Updates `@types/node` from 18.19.4 to 18.19.14 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node) Updates `@typescript-eslint/eslint-plugin` from 6.17.0 to 6.20.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.20.0/packages/eslint-plugin) Updates `@typescript-eslint/parser` from 6.17.0 to 6.20.0 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v6.20.0/packages/parser) Updates `lefthook` from 1.5.5 to 1.6.1 - [Release notes](https://github.com/evilmartians/lefthook/releases) - [Changelog](https://github.com/evilmartians/lefthook/blob/master/CHANGELOG.md) - [Commits](evilmartians/lefthook@v1.5.5...v1.6.1) Updates `prettier` from 3.1.1 to 3.2.4 - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](prettier/prettier@3.1.1...3.2.4) --- updated-dependencies: - dependency-name: "@nihalgonsalves/esconfig" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: "@types/node" dependency-type: direct:development update-type: version-update:semver-patch dependency-group: all - dependency-name: "@typescript-eslint/eslint-plugin" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: "@typescript-eslint/parser" dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: lefthook dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-minor dependency-group: all ... --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Nihal Gonsalves <[email protected]>
1 parent 9e42a2e commit f41ad4a

File tree

15 files changed

+420
-417
lines changed

15 files changed

+420
-417
lines changed

.devcontainer/devcontainer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
{
22
"name": "Node.js",
33
"build": {
4-
"dockerfile": "Dockerfile"
4+
"dockerfile": "Dockerfile",
55
},
66
"customizations": {
77
"vscode": {
8-
"extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
9-
}
8+
"extensions": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"],
9+
},
1010
},
1111
"onCreateCommand": "yarn install",
12-
"remoteUser": "node"
12+
"remoteUser": "node",
1313
}

.github/dependabot.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
version: 2
22
updates:
33
- package-ecosystem: npm
4-
directory: '/'
4+
directory: "/"
55
schedule:
66
interval: monthly
77
versioning-strategy: increase
88
groups:
99
all:
1010
patterns:
11-
- '*'
11+
- "*"
1212
ignore:
13-
- dependency-name: '@types/node'
13+
- dependency-name: "@types/node"
1414
update-types:
15-
- 'version-update:semver-major'
15+
- "version-update:semver-major"
1616

1717
- package-ecosystem: github-actions
18-
directory: '/'
18+
directory: "/"
1919
schedule:
2020
interval: monthly

.github/workflows/check.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/setup-node@v4
1111
with:
1212
node-version: 20
13-
cache: 'yarn'
13+
cache: "yarn"
1414
- name: run eslint
1515
run: |
1616
yarn install --immutable

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
- uses: actions/setup-node@v4
3737
with:
3838
node-version: 20
39-
registry-url: 'https://registry.npmjs.org'
40-
cache: 'yarn'
39+
registry-url: "https://registry.npmjs.org"
40+
cache: "yarn"
4141
- run: yarn install --immutable
4242
- env:
4343
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/sync.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
schedule:
55
# https://crontab.guru/#0_9_*_*_1
66
# At 09:00 on Monday.
7-
- cron: '0 9 * * 1'
7+
- cron: "0 9 * * 1"
88
jobs:
99
build:
1010
runs-on: ubuntu-latest
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
20-
cache: 'yarn'
20+
cache: "yarn"
2121
- run: yarn install --immutable
2222
- run: yarn sync
2323
- name: git config

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
- uses: actions/setup-node@v4
1111
with:
1212
node-version: 20
13-
cache: 'yarn'
13+
cache: "yarn"
1414
- name: Install deps, build, then clear deps
1515
run: |
1616
yarn install --immutable

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ yarn add pg-error-enum
2222
TypeScript or ES6 Modules
2323

2424
```ts
25-
import { PostgresError } from 'pg-error-enum';
25+
import { PostgresError } from "pg-error-enum";
2626
```
2727

2828
JavaScript
2929

3030
```js
31-
const PostgresError = require('pg-error-enum').PostgresError;
31+
const PostgresError = require("pg-error-enum").PostgresError;
3232
```
3333

3434
Usage
3535

3636
```ts
3737
if (error.code === PostgresError.UNIQUE_VIOLATION) {
38-
throw new Error('That username is taken');
38+
throw new Error("That username is taken");
3939
}
4040
```
4141

bin/sync.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/* eslint-disable import/no-extraneous-dependencies */
22

3-
import { writeFileSync } from 'fs';
4-
import { join } from 'path';
3+
import { writeFileSync } from "fs";
4+
import { join } from "path";
55

6-
import * as z from 'zod';
6+
import * as z from "zod";
77

8-
const sourceUrl = (branch = 'master') =>
8+
const sourceUrl = (branch = "master") =>
99
`https://github.com/postgres/postgres/raw/${branch}/src/backend/utils/errcodes.txt`;
1010

1111
const getSourceText = async (): Promise<string[]> => {
@@ -16,11 +16,11 @@ const getSourceText = async (): Promise<string[]> => {
1616
}
1717

1818
const text = await response.text();
19-
return text.split('\n');
19+
return text.split("\n");
2020
};
2121

2222
const stripCommentsAndEmptyLines = (lines: string[]) =>
23-
lines.filter((line) => line !== '' && !line.startsWith('#'));
23+
lines.filter((line) => line !== "" && !line.startsWith("#"));
2424

2525
const sectionRegex = /^Section:\s(?<description>.*)$/;
2626
const SectionMatchGroups = z.object({ description: z.string().optional() });
@@ -29,7 +29,7 @@ type Section = { description: string; lines: string[] };
2929

3030
const groupBySections = (lines: string[]): Section[] => {
3131
const sections: Record<string, Section> = {};
32-
let currentSection = '';
32+
let currentSection = "";
3333

3434
lines.forEach((line) => {
3535
const matches = sectionRegex.exec(line);
@@ -92,22 +92,22 @@ const getEnum = async () => {
9292
.then(parseSectionLines);
9393

9494
return [
95-
'export enum PostgresError {',
95+
"export enum PostgresError {",
9696
errorSections
9797
.flatMap((section) =>
9898
section.errorCodes.map(
9999
(errorCode) =>
100100
` /** ${section.description}: [${errorCode.severity}] ${errorCode.code} */\n ${errorCode.constant} = '${errorCode.sqlstate}',`,
101101
),
102102
)
103-
.join('\n'),
104-
'}',
105-
'',
106-
].join('\n');
103+
.join("\n"),
104+
"}",
105+
"",
106+
].join("\n");
107107
};
108108

109109
const writeEnum = (enumString: string) => {
110-
writeFileSync(join(__dirname, '../src/PostgresError.ts'), enumString);
110+
writeFileSync(join(__dirname, "../src/PostgresError.ts"), enumString);
111111
};
112112

113113
void getEnum()

bin/test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
/* eslint-env node */
22

33
// eslint-disable-next-line @typescript-eslint/no-var-requires
4-
const { PostgresError } = require('../dist');
4+
const { PostgresError } = require("../dist");
55

66
const main = () => {
7-
console.log('Got code for UNIQUE_VIOLATION', PostgresError.UNIQUE_VIOLATION);
7+
console.log("Got code for UNIQUE_VIOLATION", PostgresError.UNIQUE_VIOLATION);
88

99
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition, @typescript-eslint/no-unsafe-enum-comparison
10-
if (PostgresError.UNIQUE_VIOLATION !== '23505') {
11-
throw new Error('Failed');
10+
if (PostgresError.UNIQUE_VIOLATION !== "23505") {
11+
throw new Error("Failed");
1212
}
1313

14-
console.log('OK');
14+
console.log("OK");
1515
};
1616

1717
try {

lefthook.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ pre-commit:
44
parallel: true
55
commands:
66
prettier:
7-
glob: '*.{js,ts,jsx,tsx,mjs,mts,cjs,cts,json,yml,yaml,md}'
7+
glob: "*.{js,ts,jsx,tsx,mjs,mts,cjs,cts,json,yml,yaml,md}"
88
run: npx prettier --write {staged_files}
99
stage_fixed: true
1010
eslint:
11-
glob: '*.{js,ts,jsx,tsx,mjs,mts,cjs,cts}'
11+
glob: "*.{js,ts,jsx,tsx,mjs,mts,cjs,cts}"
1212
run: npx eslint --fix {staged_files}
1313
stage_fixed: true
1414
typescript-build:
15-
glob: '*.{js,ts,jsx,tsx,mjs,mts,cjs,cts}'
15+
glob: "*.{js,ts,jsx,tsx,mjs,mts,cjs,cts}"
1616
run: npm run typecheck

0 commit comments

Comments
 (0)