react-zoom-pan-pinch 3.0.4 → 3.0.6
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-zoom-pan-pinch",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.6",
|
|
4
4
|
"description": "Zoom and pan html elements in easy way",
|
|
5
5
|
"author": "prc5",
|
|
6
6
|
"license": "MIT",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"scripts": {
|
|
12
12
|
"build": "rollup -c",
|
|
13
13
|
"build:docs": "build-storybook",
|
|
14
|
-
"start": "start-storybook -p 6006 --no-manager-cache",
|
|
14
|
+
"start": "DISABLE_ESLINT_PLUGIN=true start-storybook -p 6006 --no-manager-cache",
|
|
15
15
|
"test": "jest",
|
|
16
16
|
"lint": "eslint . --ext .js,.jsx,.tsx,.ts --fix",
|
|
17
17
|
"format": "prettier --write .",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"commitlint": "^17.0.2",
|
|
62
62
|
"cross-env": "^7.0.3",
|
|
63
63
|
"eslint": "^8.17.0",
|
|
64
|
-
"eslint-config-airbnb": "^
|
|
64
|
+
"eslint-config-airbnb": "^19.0.4",
|
|
65
65
|
"eslint-config-airbnb-typescript": "^17.0.0",
|
|
66
66
|
"eslint-config-next": "12.1.6",
|
|
67
67
|
"eslint-config-prettier": "^8.5.0",
|
package/rollup.config.js
CHANGED
|
@@ -6,7 +6,7 @@ export const useTransformContext = () => {
|
|
|
6
6
|
const libraryContext = useContext(Context);
|
|
7
7
|
|
|
8
8
|
if (!libraryContext) {
|
|
9
|
-
throw new Error("Transform context
|
|
9
|
+
throw new Error("Transform context must be placed inside TransformWrapper");
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
return libraryContext;
|