@existdb/node-exist
Advanced tools
+16
-2
@@ -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 @@ |
+15
-11
@@ -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" | ||
| } |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 4 instances in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
51304
0.83%846
0.71%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated