From b9938869449655124f687c562a2c3fac3bb65af0 Mon Sep 17 00:00:00 2001 From: ltischuk Date: Fri, 5 Jun 2015 08:05:04 -0400 Subject: [PATCH 01/10] Remove sanitization of valid XML characters: ( ) # --- lib/sanitize.js | 6 ------ 1 file changed, 6 deletions(-) diff --git a/lib/sanitize.js b/lib/sanitize.js index 7f770f5..4b10e30 100644 --- a/lib/sanitize.js +++ b/lib/sanitize.js @@ -5,9 +5,6 @@ * character | escaped * < < * > > - * ( ( - * ) ) - * # # * & & * " " * ' ' @@ -15,9 +12,6 @@ var chars = { '<': '<' , '>': '>' - , '(': '(' - , ')': ')' - , '#': '#' , '&': '&' , '"': '"' , "'": ''' From 0aa2363b32fb6745ad42ad4330f3e760d639d215 Mon Sep 17 00:00:00 2001 From: danielneri Date: Mon, 8 Jun 2015 13:51:09 -0400 Subject: [PATCH 02/10] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 311974c..a7d11b5 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ It does not parse the following elements: ## Installation ``` -$ npm install xml2json +$ npm install accesso-xml2json ``` ## Usage @@ -88,4 +88,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS -IN THE SOFTWARE. \ No newline at end of file +IN THE SOFTWARE. From 9e92d1e3a1780623e57a8844559c2eb5063a5711 Mon Sep 17 00:00:00 2001 From: dneri Date: Fri, 10 Jul 2015 14:05:24 -0400 Subject: [PATCH 03/10] Upgraded node-expat to 2.3.7 so it compiles on node v12.x --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index c230d2b..4e49c95 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ { "name": "Camilo Aguilar", "email": "camilo.aguilar@gmail.com" } ], "dependencies": { - "node-expat": "2.0.0" + "node-expat": "2.3.7" }, "bin": { "xml2json": "bin/xml2json" From 26129acde1d7bbfd2e84440dbf1c84393a6d406e Mon Sep 17 00:00:00 2001 From: dneri Date: Fri, 10 Jul 2015 16:45:09 -0400 Subject: [PATCH 04/10] Cleaned up package.json, bumping version to 4.0 because of discrepencies between npm and git --- package.json | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 4e49c95..e7f07ca 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { - "name" : "xml2json", - "version": "0.3.2", - "author": "Andrew Turley", - "email": "aturley@buglabs.net", + "name" : "accesso-xml2json", + "version": "0.4.0", + "author": "accesso", + "email": "shopv5dev@accesso.com", "description" : "Converts xml to json and viceverza, using node-expat.", - "repository": "git://github.com/buglabs/node-xml2json.git", + "repository": "git://github.com/accesso/node-xml2json.git", "main": "index", "contributors":[ - { "name": "Camilo Aguilar", "email": "camilo.aguilar@gmail.com" } + { "name": "Daniel Neri", "email": "daniel.neri@accesso.com" }, + { "name": "Laura Tischuk", "email": "laura.tischuk@accesso.com" } ], "dependencies": { "node-expat": "2.3.7" From 9264beaac9fc826902d55b89dab0027227448faa Mon Sep 17 00:00:00 2001 From: Daniel Neri Date: Sat, 20 Feb 2016 18:26:08 -0500 Subject: [PATCH 05/10] testing node 5 support --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index e7f07ca..f5c2b02 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ { "name": "Laura Tischuk", "email": "laura.tischuk@accesso.com" } ], "dependencies": { - "node-expat": "2.3.7" + "node-expat": "2.3.13" }, "bin": { "xml2json": "bin/xml2json" From 4d674eac9ee150ee50771b057bae0b674e24eb70 Mon Sep 17 00:00:00 2001 From: lauratischukaccesso Date: Thu, 12 May 2016 14:30:02 -0400 Subject: [PATCH 06/10] update version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f5c2b02..94b7c8c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name" : "accesso-xml2json", - "version": "0.4.0", + "version": "0.5.0", "author": "accesso", "email": "shopv5dev@accesso.com", "description" : "Converts xml to json and viceverza, using node-expat.", From 6fe644fec6399a2118b4fc1e699067ed1dd762a8 Mon Sep 17 00:00:00 2001 From: Josh Searles Date: Mon, 11 Nov 2019 12:08:34 -0500 Subject: [PATCH 07/10] AXT-14483 - Upgraded dependency to play nice with Node 12+ --- bin/xml2json | 0 package.json | 22 ++++++++++++++-------- 2 files changed, 14 insertions(+), 8 deletions(-) mode change 100644 => 100755 bin/xml2json diff --git a/bin/xml2json b/bin/xml2json old mode 100644 new mode 100755 diff --git a/package.json b/package.json index 94b7c8c..1dc42fe 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,23 @@ { - "name" : "accesso-xml2json", + "name": "accesso-xml2json", "version": "0.5.0", "author": "accesso", "email": "shopv5dev@accesso.com", - "description" : "Converts xml to json and viceverza, using node-expat.", - "repository": "git://github.com/accesso/node-xml2json.git", - "main": "index", - "contributors":[ - { "name": "Daniel Neri", "email": "daniel.neri@accesso.com" }, - { "name": "Laura Tischuk", "email": "laura.tischuk@accesso.com" } + "description": "Converts xml to json and viceverza, using node-expat.", + "repository": "git://github.com/accesso/node-xml2json.git", + "main": "index", + "contributors": [ + { + "name": "Daniel Neri", + "email": "daniel.neri@accesso.com" + }, + { + "name": "Laura Tischuk", + "email": "laura.tischuk@accesso.com" + } ], "dependencies": { - "node-expat": "2.3.13" + "node-expat": "^2.3.18" }, "bin": { "xml2json": "bin/xml2json" From fa7f533acad9fc6f7390ea30dda9cd6e0c10016b Mon Sep 17 00:00:00 2001 From: Laura Holbrook Date: Fri, 7 Apr 2023 12:58:39 -0400 Subject: [PATCH 08/10] Adding JenkinsFile --- JenkinsFile-Int | 0 replaceversion.js | 17 +++++++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 JenkinsFile-Int create mode 100644 replaceversion.js diff --git a/JenkinsFile-Int b/JenkinsFile-Int new file mode 100644 index 0000000..e69de29 diff --git a/replaceversion.js b/replaceversion.js new file mode 100644 index 0000000..a207152 --- /dev/null +++ b/replaceversion.js @@ -0,0 +1,17 @@ +const replace = require('replace-in-file'); + +const path = './package.json'; +const newVersion = process.env.npm_package_version; +const packageVersionString = '"version": "' + newVersion + '",'; + +try { + const results = replace.sync({ + files: path, + from: /"version":\s?"[^"]*",/, + to: packageVersionString, + }); + console.log('Replacement results:', results); +} +catch (error) { + console.error('Error occurred:', error); +} \ No newline at end of file From 02615ab8f6eab67318c89f1463463b08c527f47a Mon Sep 17 00:00:00 2001 From: Laura Holbrook Date: Fri, 7 Apr 2023 13:03:23 -0400 Subject: [PATCH 09/10] Update with scripts --- package.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 1dc42fe..35bcddb 100644 --- a/package.json +++ b/package.json @@ -21,5 +21,9 @@ }, "bin": { "xml2json": "bin/xml2json" - } + }, + "script": { + "preversion": "echo \"No preversion needed\"", + "version": "node replaceversion.js" + } } From 0c736092942a5d96675e7fc94e11426ff7cbb372 Mon Sep 17 00:00:00 2001 From: Laura Holbrook Date: Fri, 16 Aug 2024 12:42:32 -0400 Subject: [PATCH 10/10] Upgrade to Node 20 --- package-lock.json | 46 ++++++++++++++++++++++++++++++++++++++++++++++ package.json | 12 ++++-------- 2 files changed, 50 insertions(+), 8 deletions(-) create mode 100644 package-lock.json diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..6cfc977 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,46 @@ +{ + "name": "accesso-xml2json", + "version": "0.6.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "accesso-xml2json", + "version": "0.6.0", + "dependencies": { + "node-expat": "^2.4.1" + }, + "bin": { + "xml2json": "bin/xml2json" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" + }, + "node_modules/nan": { + "version": "2.20.0", + "resolved": "https://registry.npmjs.org/nan/-/nan-2.20.0.tgz", + "integrity": "sha512-bk3gXBZDGILuuo/6sKtr0DQmSThYHLtNCdSdXk9YkxD/jK6X2vmCyyXBBxyqZ4XcnzTyYEAThfX3DCEnLf6igw==" + }, + "node_modules/node-expat": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/node-expat/-/node-expat-2.4.1.tgz", + "integrity": "sha512-uWgvQLgo883NKIL+66oJsK9ysKK3ej0YjVCPBZzO/7wMAuH68/Yb7+JwPWNaVq0yPaxrb48AoEXfYEc8gsmFbg==", + "hasInstallScript": true, + "dependencies": { + "bindings": "^1.5.0", + "nan": "^2.19.0" + } + } + } +} diff --git a/package.json b/package.json index 35bcddb..de7ce51 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "accesso-xml2json", - "version": "0.5.0", + "version": "0.6.0", "author": "accesso", "email": "shopv5dev@accesso.com", "description": "Converts xml to json and viceverza, using node-expat.", @@ -8,16 +8,12 @@ "main": "index", "contributors": [ { - "name": "Daniel Neri", - "email": "daniel.neri@accesso.com" - }, - { - "name": "Laura Tischuk", - "email": "laura.tischuk@accesso.com" + "name": "Laura Hamczyk", + "email": "laura.hamczyk@accesso.com" } ], "dependencies": { - "node-expat": "^2.3.18" + "node-expat": "^2.4.1" }, "bin": { "xml2json": "bin/xml2json"