Skip to content

Commit

Permalink
fix: update react-remove-scroll-bar to fix nested cases
Browse files Browse the repository at this point in the history
  • Loading branch information
theKashey committed Mar 16, 2024
1 parent bd8d643 commit be1f247
Show file tree
Hide file tree
Showing 6 changed files with 290 additions and 33 deletions.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
registry=https://registry.npmjs.org
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
18
18 changes: 9 additions & 9 deletions .size-limit
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
[
{
path: "dist/es2015/index.js",
ignore: ["react-dom", "tslib", "use-sidecar"],
limit: "3.0 KB"
"path": "dist/es2015/index.js",
"ignore": ["react-dom", "tslib", "use-sidecar"],
"limit": "3.5 KB"
},
{
path: "dist/es2015/sidecar.js",
ignore: ["react-dom", "tslib", "use-sidecar"],
limit: "3.0 KB"
"path": "dist/es2015/sidecar.js",
"ignore": ["react-dom", "tslib", "use-sidecar"],
"limit": "3.0 KB"
},
{
path: "dist/es2015/UI.js",
ignore: ["react-dom", "tslib", "use-sidecar"],
limit: "0.7 KB"
"path": "dist/es2015/UI.js",
"ignore": ["react-dom", "tslib", "use-sidecar"],
"limit": "1.0 KB"
}
]
20 changes: 3 additions & 17 deletions .size.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,3 @@
[
{
"name": "dist/es2015/index.js",
"passed": true,
"size": 3025
},
{
"name": "dist/es2015/sidecar.js",
"passed": true,
"size": 2504
},
{
"name": "dist/es2015/UI.js",
"passed": true,
"size": 647
}
]
{
"error": "SyntaxError: Unexpected token p in JSON at position 10\n at JSON.parse (<anonymous>)\n at jsonLoader (/Users/akorzunov/dev/github/focus/react-remove-scroll/node_modules/lilconfig/src/index.js:41:41)\n at Object.search (/Users/akorzunov/dev/github/focus/react-remove-scroll/node_modules/lilconfig/src/index.js:220:29)\n at async getConfig (file:///Users/akorzunov/dev/github/focus/react-remove-scroll/node_modules/size-limit/get-config.js:146:18)\n at async default (file:///Users/akorzunov/dev/github/focus/react-remove-scroll/node_modules/size-limit/run.js:74:14)"
}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"devDependencies": {
"@types/react": "^18.0.0",
"@babel/core": "^7.17.9",
"@size-limit/preset-small-lib": "^2.1.6",
"@size-limit/preset-small-lib": "^11.0.2",
"size-limit": "^11.0.2",
"@storybook/react": "^6.4.22",
"@theuiteam/lib-builder": "^0.1.4",
"@types/enzyme-adapter-react-16": "^1.0.6",
Expand Down Expand Up @@ -61,7 +62,7 @@
],
"repository": "https://github.com/theKashey/react-remove-scroll",
"dependencies": {
"react-remove-scroll-bar": "^2.3.4",
"react-remove-scroll-bar": "^2.3.6",
"react-style-singleton": "^2.2.1",
"tslib": "^2.1.0",
"use-callback-ref": "^1.3.0",
Expand Down
Loading

0 comments on commit be1f247

Please sign in to comment.