Skip to content

Commit 72cd1d6

Browse files
authored
Maitenance (#193)
* Upgrade dev deps * Prettier upgrade fix * Husky
1 parent ec46b3f commit 72cd1d6

File tree

7 files changed

+509
-514
lines changed

7 files changed

+509
-514
lines changed

.husky/pre-push

-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
yarn lint

.prettierrc

+3-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
{}
1+
{
2+
trailingComma: "es5"
3+
}

package.json

+15-14
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"object-buffer"
2424
],
2525
"scripts": {
26+
"prepare": "husky",
2627
"lint": "concurrently \"eslint src --ext .js,.jsx,.ts,.tsx\" \"tsc --noEmit --emitDeclarationOnly false\"",
2728
"test": "jest",
2829
"test-coverage": "jest --coverage",
@@ -46,42 +47,42 @@
4647
"benchmark": "node benchmarks/main-register-ts-node.js"
4748
},
4849
"devDependencies": {
49-
"@babel/cli": "^7.24.1",
50-
"@babel/core": "^7.24.4",
50+
"@babel/cli": "^7.24.5",
51+
"@babel/core": "^7.24.5",
5152
"@babel/node": "^7.23.9",
52-
"@babel/preset-env": "^7.24.4",
53+
"@babel/preset-env": "^7.24.5",
5354
"@babel/preset-typescript": "^7.24.1",
5455
"@changesets/cli": "^2.27.1",
5556
"@rollup/plugin-babel": "^6.0.4",
5657
"@rollup/plugin-node-resolve": "^15.2.3",
5758
"@types/benchmark": "^2.1.5",
5859
"@types/jest": "^29.5.12",
59-
"@types/node": "^20.12.7",
60-
"@typescript-eslint/eslint-plugin": "^5.59.11",
61-
"@typescript-eslint/parser": "^5.59.11",
60+
"@types/node": "^20.12.11",
61+
"@typescript-eslint/eslint-plugin": "^7.9.0",
62+
"@typescript-eslint/parser": "^7.9.0",
6263
"assemblyscript": "^0.27.27",
6364
"babel-loader": "^9.1.3",
6465
"benchmark": "^2.1.4",
6566
"concurrently": "^8.2.2",
6667
"core-js": "^3.37.0",
6768
"dts-bundle-generator": "^9.5.1",
6869
"eslint": "^8.57.0",
69-
"eslint-config-prettier": "^8.10.0",
70-
"eslint-plugin-prettier": "^4.2.1",
70+
"eslint-config-prettier": "^9.1.0",
71+
"eslint-plugin-prettier": "^5.1.3",
7172
"expose-gc": "^1.0.0",
7273
"gh-pages": "^6.1.1",
7374
"html-webpack-plugin": "^5.6.0",
74-
"husky": "^8.0.3",
75+
"husky": "^9.0.11",
7576
"jest": "^29.7.0",
7677
"kind-of": "^6.0.3",
77-
"prettier": "^2.8.8",
78-
"prettier-eslint": "^15.0.1",
79-
"rimraf": "^5.0.5",
80-
"rollup": "^4.17.0",
78+
"prettier": "^3.2.5",
79+
"prettier-eslint": "^16.3.0",
80+
"rimraf": "^5.0.7",
81+
"rollup": "^4.17.2",
8182
"rollup-plugin-terser": "^7.0.2",
8283
"ts-node": "^10.9.2",
8384
"typedoc": "^0.25.13",
84-
"typedoc-plugin-markdown": "^3.17.1",
85+
"typedoc-plugin-markdown": "^4.0.1",
8586
"typescript": "^5.4.5",
8687
"webpack": "^5.91.0",
8788
"webpack-cli": "^5.1.4",

src/internal/TransactionalAllocator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ export class TransactionalAllocator implements FunctionalAllocatorWrapper {
4444
optsOrState.end !== undefined
4545
? optsOrState.end
4646
: optsOrState.size !== undefined
47-
? optsOrState.size
48-
: 0x1000;
47+
? optsOrState.size
48+
: 0x1000;
4949

5050
this.allocatorState = allocatorInit(
5151
{

src/internal/arraySplice.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ function calculateSpliceStart(arrayLength: number, startArg: number) {
164164
return startArg >= arrayLength
165165
? arrayLength
166166
: startArg < 0
167-
? arrayLength + startArg
168-
: startArg;
167+
? arrayLength + startArg
168+
: startArg;
169169
}
170170

171171
function calculateDeleteCount(

src/internal/utils.ts

+1-3
Original file line numberDiff line numberDiff line change
@@ -120,8 +120,6 @@ export function isSupportedTopLevelValue(value: unknown) {
120120
value instanceof Map ||
121121
value instanceof Set ||
122122
typeof value !== "object" ||
123-
typeof value === null ||
124-
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
125-
value!.constructor.name !== "Object"
123+
value?.constructor.name !== "Object"
126124
);
127125
}

0 commit comments

Comments
 (0)