Skip to content

Commit

Permalink
Maitenance (#193)
Browse files Browse the repository at this point in the history
* Upgrade dev deps

* Prettier upgrade fix

* Husky
  • Loading branch information
Bnaya committed May 14, 2024
1 parent ec46b3f commit 72cd1d6
Show file tree
Hide file tree
Showing 7 changed files with 509 additions and 514 deletions.
3 changes: 0 additions & 3 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

yarn lint
4 changes: 3 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
{}
{
trailingComma: "es5"
}
29 changes: 15 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"object-buffer"
],
"scripts": {
"prepare": "husky",
"lint": "concurrently \"eslint src --ext .js,.jsx,.ts,.tsx\" \"tsc --noEmit --emitDeclarationOnly false\"",
"test": "jest",
"test-coverage": "jest --coverage",
Expand All @@ -46,42 +47,42 @@
"benchmark": "node benchmarks/main-register-ts-node.js"
},
"devDependencies": {
"@babel/cli": "^7.24.1",
"@babel/core": "^7.24.4",
"@babel/cli": "^7.24.5",
"@babel/core": "^7.24.5",
"@babel/node": "^7.23.9",
"@babel/preset-env": "^7.24.4",
"@babel/preset-env": "^7.24.5",
"@babel/preset-typescript": "^7.24.1",
"@changesets/cli": "^2.27.1",
"@rollup/plugin-babel": "^6.0.4",
"@rollup/plugin-node-resolve": "^15.2.3",
"@types/benchmark": "^2.1.5",
"@types/jest": "^29.5.12",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^5.59.11",
"@typescript-eslint/parser": "^5.59.11",
"@types/node": "^20.12.11",
"@typescript-eslint/eslint-plugin": "^7.9.0",
"@typescript-eslint/parser": "^7.9.0",
"assemblyscript": "^0.27.27",
"babel-loader": "^9.1.3",
"benchmark": "^2.1.4",
"concurrently": "^8.2.2",
"core-js": "^3.37.0",
"dts-bundle-generator": "^9.5.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-prettier": "^4.2.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.1.3",
"expose-gc": "^1.0.0",
"gh-pages": "^6.1.1",
"html-webpack-plugin": "^5.6.0",
"husky": "^8.0.3",
"husky": "^9.0.11",
"jest": "^29.7.0",
"kind-of": "^6.0.3",
"prettier": "^2.8.8",
"prettier-eslint": "^15.0.1",
"rimraf": "^5.0.5",
"rollup": "^4.17.0",
"prettier": "^3.2.5",
"prettier-eslint": "^16.3.0",
"rimraf": "^5.0.7",
"rollup": "^4.17.2",
"rollup-plugin-terser": "^7.0.2",
"ts-node": "^10.9.2",
"typedoc": "^0.25.13",
"typedoc-plugin-markdown": "^3.17.1",
"typedoc-plugin-markdown": "^4.0.1",
"typescript": "^5.4.5",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
Expand Down
4 changes: 2 additions & 2 deletions src/internal/TransactionalAllocator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ export class TransactionalAllocator implements FunctionalAllocatorWrapper {
optsOrState.end !== undefined
? optsOrState.end
: optsOrState.size !== undefined
? optsOrState.size
: 0x1000;
? optsOrState.size
: 0x1000;

this.allocatorState = allocatorInit(
{
Expand Down
4 changes: 2 additions & 2 deletions src/internal/arraySplice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ function calculateSpliceStart(arrayLength: number, startArg: number) {
return startArg >= arrayLength
? arrayLength
: startArg < 0
? arrayLength + startArg
: startArg;
? arrayLength + startArg
: startArg;
}

function calculateDeleteCount(
Expand Down
4 changes: 1 addition & 3 deletions src/internal/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,6 @@ export function isSupportedTopLevelValue(value: unknown) {
value instanceof Map ||
value instanceof Set ||
typeof value !== "object" ||
typeof value === null ||
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
value!.constructor.name !== "Object"
value?.constructor.name !== "Object"
);
}
Loading

0 comments on commit 72cd1d6

Please sign in to comment.