From 780b1850dbd286def693f56aeee8deda0ffc853c Mon Sep 17 00:00:00 2001 From: tomasz-slazak <87467146+tomasz-slazak@users.noreply.github.com> Date: Tue, 9 Nov 2021 08:54:32 +0100 Subject: [PATCH 1/4] Update dependencies --- README.md | 1 + index.js | 4 ++-- package.json | 6 +++--- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index a5b6be2e..7e087736 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,4 @@ +[Fork updating dependencies] # react-native-svg-uri Render SVG images in React Native from an URL or a static file diff --git a/index.js b/index.js index 20107ac6..5c855f36 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import React, {Component} from "react"; import {View} from 'react-native'; import PropTypes from 'prop-types' -import xmldom from 'xmldom'; +import { DomParser } from '@xmldom/xmldom'; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import Svg,{ @@ -288,7 +288,7 @@ class SvgUri extends Component{ (this.state.svgXmlData.indexOf("") + 6) ).replace(//g, ''); - const doc = new xmldom.DOMParser().parseFromString(inputSVG); + const doc = new DOMParser().parseFromString(inputSVG); const rootSVG = this.inspectNode(doc.childNodes[0]); diff --git a/package.json b/package.json index 76f6db58..c1191bfa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-native-svg-uri", - "version": "1.2.3", + "version": "1.2.4", "description": "Render an SVG Image from an URL", "main": "index.js", "scripts": { @@ -20,10 +20,10 @@ "author": "Matias Cortes", "license": "ISC", "dependencies": { - "xmldom": "^0.1.22" + "@xmldom/xmldom": "^0.7.5" }, "peerDependencies": { - "react-native-svg": "^5.3.0" + "react-native-svg": "^12.1.1" }, "bugs": { "url": "https://github.com/matiascba/react-native-svg-uri/issues" From d8124f645558adf5d6670dbf8a70d02e8bb9eada Mon Sep 17 00:00:00 2001 From: tomasz-slazak <87467146+tomasz-slazak@users.noreply.github.com> Date: Tue, 9 Nov 2021 08:55:58 +0100 Subject: [PATCH 2/4] Update README.md --- README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/README.md b/README.md index 7e087736..a5b6be2e 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,3 @@ -[Fork updating dependencies] # react-native-svg-uri Render SVG images in React Native from an URL or a static file From 010744b20ea1dec688a39730a5fc0a551abf0619 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=9Al=C4=85zak?= Date: Fri, 19 Nov 2021 18:35:38 +0100 Subject: [PATCH 3/4] update package.json --- package.json | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/package.json b/package.json index c1191bfa..56b201a0 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "react-native-svg-uri", + "name": "@chomchom/react-native-svg-uri", "version": "1.2.4", "description": "Render an SVG Image from an URL", "main": "index.js", @@ -8,7 +8,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/matiascba/react-native-svg-uri.git" + "url": "git+https://github.com/litchi-software/react-native-svg-uri.git" }, "keywords": [ "react-native", @@ -22,17 +22,17 @@ "dependencies": { "@xmldom/xmldom": "^0.7.5" }, + "publishConfig": { + "access": "public" + }, "peerDependencies": { "react-native-svg": "^12.1.1" }, - "bugs": { - "url": "https://github.com/matiascba/react-native-svg-uri/issues" - }, - "homepage": "https://github.com/matiascba/react-native-svg-uri#readme", + "homepage": "hhttps://github.com/litchi-software/react-native-svg-uri#readme", "devDependencies": { "babel-core": "^6.24.1", "babel-preset-react-native": "^2.1.0", "chai": "^3.5.0", - "mocha": "^3.2.0" + "mocha": "^9.1.3" } } From 09a9dee0c1e59f6ce323fd1f0d0d14c13f0bf1be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20=C5=9Al=C4=85zak?= Date: Fri, 19 Nov 2021 19:11:53 +0100 Subject: [PATCH 4/4] hotfix --- index.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 5c855f36..6077de1c 100644 --- a/index.js +++ b/index.js @@ -1,7 +1,7 @@ import React, {Component} from "react"; import {View} from 'react-native'; import PropTypes from 'prop-types' -import { DomParser } from '@xmldom/xmldom'; +import xmldom from '@xmldom/xmldom'; import resolveAssetSource from 'react-native/Libraries/Image/resolveAssetSource'; import Svg,{ @@ -288,7 +288,7 @@ class SvgUri extends Component{ (this.state.svgXmlData.indexOf("") + 6) ).replace(//g, ''); - const doc = new DOMParser().parseFromString(inputSVG); + const doc = new xmldom.DOMParser().parseFromString(inputSVG); const rootSVG = this.inspectNode(doc.childNodes[0]); diff --git a/package.json b/package.json index 56b201a0..291f67b7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@chomchom/react-native-svg-uri", - "version": "1.2.4", + "version": "1.2.5", "description": "Render an SVG Image from an URL", "main": "index.js", "scripts": {