🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

@existdb/node-exist

Package Overview
Dependencies
Maintainers
3
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@existdb/node-exist - npm Package Compare versions

Comparing version
5.5.2
to
6.0.0
+16
-2
components/util.js

@@ -1,3 +0,16 @@

const mime = require('mime')
const Mime = require('mime/lite').Mime
// load standard and other mime types
const standardTypes = require('mime/types/standard.js').default
const otherTypes = require('mime/types/other.js').default
// define eXist-db specific mime types
const customTypes = {
'application/xquery': ['xq', 'xqs', 'xquery', 'xql', 'xqm'],
'application/xml': ['xconf', 'odd']
}
// create custom mime instance
const mime = new Mime(standardTypes, otherTypes, customTypes)
/**

@@ -14,3 +27,4 @@ * determine mimetype from path, allowing override

module.exports = {
getMimeType
getMimeType,
mime
}
+1
-7

@@ -17,3 +17,3 @@ /**

const mime = require('mime')
const mime = require('./components/util').mime

@@ -32,8 +32,2 @@ // components

// exist specific mime types
mime.define({
'application/xquery': ['xq', 'xqs', 'xquery', 'xql', 'xqm'],
'application/xml': ['xconf', 'odd']
})
// helper functions

@@ -40,0 +34,0 @@

@@ -5,4 +5,8 @@ {

"main": "index.js",
"engines": {
"node": "^20.19.0 || >=22.11.0"
},
"scripts": {
"test": "standard && tape spec/tests/*.js --no-only",
"test-dev": "standard && tape spec/tests/documents.js",
"lint": "standard --fix",

@@ -42,18 +46,18 @@ "semantic-release": "semantic-release"

"devDependencies": {
"@semantic-release/github": "^8.0.2",
"@semantic-release/github": "^12.0.2",
"bottleneck": "^2.19.5",
"fast-glob": "^3.2.11",
"semantic-release": "^20.0.2",
"semver": "^7.3.8",
"standard": "^17.0.0",
"tape": "^5.0.1",
"fast-glob": "^3.3.3",
"semantic-release": "^25.0.2",
"semver": "^7.7.3",
"standard": "^17.1.2",
"tape": "^5.9.0",
"yargs": "^17.3.1"
},
"dependencies": {
"got": "^12.1.0",
"lodash.assign": "^4.0.2",
"mime": "^3.0.0",
"xmlrpc": "^1.3.1"
"got": "^14.6.6",
"lodash.assign": "^4.2.0",
"mime": "^4.1.0",
"xmlrpc": "^1.3.2"
},
"version": "5.5.2"
"version": "6.0.0"
}