Skip to content

Commit e82b904

Browse files
committed
update deps
1 parent 5846d58 commit e82b904

File tree

7 files changed

+1453
-1574
lines changed

7 files changed

+1453
-1574
lines changed
File renamed without changes.

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module.exports = {
1+
export default {
22
"presets": [
33
["@babel/preset-env", {"modules": false}]
44
]

package-lock.json

Lines changed: 1436 additions & 1559 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
"name": "vue-inline-svg",
33
"version": "2.1.2",
44
"description": "Replace SVG images with inline SVG element",
5+
"type": "module",
56
"main": "dist/vue-inline-svg.js",
67
"module": "src/index.js",
78
"browser": "dist/vue-inline-svg.js",
@@ -38,17 +39,16 @@
3839
"url": "https://github.com/shrpne/vue-inline-svg/issues"
3940
},
4041
"homepage": "https://github.com/shrpne/vue-inline-svg",
41-
"dependencies": {},
4242
"devDependencies": {
43-
"@babel/core": "^7.19.3",
44-
"@babel/preset-env": "^7.19.4",
45-
"@rollup/plugin-babel": "^5.3.1",
46-
"check-dts": "^0.5.6",
47-
"eslint": "^7.32.0",
48-
"eslint-config-airbnb-base": "^14.2.1",
49-
"eslint-plugin-import": "^2.26.0",
43+
"@babel/core": "^7.20.12",
44+
"@babel/preset-env": "^7.20.2",
45+
"@rollup/plugin-babel": "^6.0.3",
46+
"@rollup/plugin-terser": "^0.4.0",
47+
"check-dts": "^0.6.7",
48+
"eslint": "^8.33.0",
49+
"eslint-config-airbnb-base": "^15.0.0",
50+
"eslint-plugin-import": "^2.27.5",
5051
"pre-commit": "^1.2.2",
51-
"rollup": "^2.79.1",
52-
"rollup-plugin-terser": "^7.0.2"
52+
"rollup": "^3.13.0"
5353
}
5454
}

rollup.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {babel} from '@rollup/plugin-babel';
2-
import {terser} from 'rollup-plugin-terser';
2+
import terser from '@rollup/plugin-terser';
33

44

55
export default [

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,4 +220,6 @@ const InlineSvgPlugin = {
220220
},
221221
};
222222

223+
// @TODO https://github.com/airbnb/javascript/pull/2721 need to be fixed
224+
// eslint-disable-next-line no-restricted-exports
223225
export { InlineSvgComponent as default, InlineSvgComponent, InlineSvgPlugin };

types/index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ import { VueConstructor, PluginFunction } from 'vue';
99

1010
interface InlineSvgProps {
1111
src: string;
12-
title: string;
13-
transformSource: (svg: SVGElement) => SVGElement;
14-
keepDuringLoading: boolean;
12+
title?: string;
13+
transformSource?: (svg: SVGElement) => SVGElement;
14+
keepDuringLoading?: boolean;
1515
}
1616

1717
interface InlineSvgPlugin {

0 commit comments

Comments
 (0)