@hapi/mimos
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -113,3 +113,3 @@ 'use strict'; | ||
const extension = Path.extname(path).slice(1).toLowerCase(); | ||
const mime = this.#db.byExtension.get(extension) || {}; | ||
const mime = this.#db.byExtension.get(extension) ?? {}; | ||
@@ -116,0 +116,0 @@ return internals.applyPredicate(mime); |
@@ -1,3 +0,4 @@ | ||
Copyright (c) 2014-2020, Sideway Inc, and project contributors | ||
Copyright (c) 2014, Walmart. | ||
Copyright (c) 2014-2022, Project contributors | ||
Copyright (c) 2014-2020, Sideway Inc | ||
Copyright (c) 2014, Walmart. | ||
All rights reserved. | ||
@@ -4,0 +5,0 @@ |
{ | ||
"name": "@hapi/mimos", | ||
"description": "Mime database interface", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"repository": "git://github.com/hapijs/mimos", | ||
@@ -16,10 +16,17 @@ "main": "lib/index.js", | ||
], | ||
"eslintConfig": { | ||
"extends": [ | ||
"plugin:@hapi/module" | ||
] | ||
}, | ||
"dependencies": { | ||
"@hapi/hoek": "9.x.x", | ||
"mime-db": "1.x.x" | ||
"@hapi/hoek": "^10.0.0", | ||
"mime-db": "^1.52.0" | ||
}, | ||
"devDependencies": { | ||
"@hapi/code": "8.x.x", | ||
"@hapi/lab": "^24.2.1", | ||
"typescript": "~4.0.7" | ||
"@hapi/code": "^9.0.0", | ||
"@hapi/eslint-plugin": "*", | ||
"@hapi/lab": "^25.0.1", | ||
"@types/node": "^17.0.31", | ||
"typescript": "~4.6.4" | ||
}, | ||
@@ -26,0 +33,0 @@ "scripts": { |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
10238
0
5
+ Added@hapi/hoek@10.0.1(transitive)
- Removed@hapi/hoek@9.3.0(transitive)
Updated@hapi/hoek@^10.0.0
Updatedmime-db@^1.52.0