New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@types/hapi__mimos

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/hapi__mimos - npm Package Compare versions

Comparing version 4.1.3 to 4.1.4

6

hapi__mimos/index.d.ts

@@ -30,3 +30,3 @@ // Type definitions for @hapi/mimos 4.1

*/
predicate?: (
predicate?: ((
mime: MimosOptionsValue & {

@@ -37,3 +37,3 @@ [key: string]: any;

[key: string]: any;
};
}) | undefined;
};

@@ -47,3 +47,3 @@ };

*/
type?: string;
type?: string | undefined;
}

@@ -50,0 +50,0 @@ }

{
"name": "@types/hapi__mimos",
"version": "4.1.3",
"version": "4.1.4",
"description": "TypeScript definitions for @hapi/mimos",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos",
"license": "MIT",

@@ -39,4 +40,4 @@ "contributors": [

},
"typesPublisherContentHash": "73c359b061a834b0d60b395350b2322feeea1fb10a8c454b70eeff5230af3fa8",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "2aa1fb7a3d13443f11c156be8294a9ccf14043c43f94cda7b914c248b5f9b862",
"typeScriptVersion": "3.6"
}

@@ -9,5 +9,73 @@ # Installation

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__mimos/index.d.ts)
````ts
// Type definitions for @hapi/mimos 4.1
// Project: https://github.com/hapijs/mimos
// Definitions by: AJP <https://github.com/AJamesPhillips>
// Silas Rech <https://github.com/lenovouser>
// Linus Unnebäck <https://github.com/LinusU>
// Piotr Błażejewicz <https://github.com/peterblazejewicz>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { MimeEntry } from 'mime-db';
declare namespace Mimos {
/**
*
* @see {@link https://github.com/hapijs/mimos#new-mimosoptions}
*/
interface MimosOptions {
/**
* an object hash that is merged into the built in mime information specified here {@link https://github.com/jshttp/mime-db}.
* Each key value pair represents a single mime object.
* Each override value should follow this schema:
* * the key is the lower-cased correct mime-type. (Ex. "application/javascript").
* * the value should an object @see MimosOptionsValue
*/
override: {
[type: string]: MimosOptionsValue & {
/**
* Method with signature function(mime) when this mime type is found in the database,
* this function will run. This allows you make customizations to mime based on developer criteria.
*/
predicate?: ((
mime: MimosOptionsValue & {
[key: string]: any;
},
) => MimosOptionsValue & {
[key: string]: any;
}) | undefined;
};
};
}
interface MimosOptionsValue extends MimeEntry {
/**
* Specify the type value of result objects, defaults to key.
*/
type?: string | undefined;
}
}
declare class Mimos {
/**
* Creates a new Mimos object.
*/
constructor(options?: Mimos.MimosOptions);
/**
* Returns mime object
*/
path(path: string): Mimos.MimosOptionsValue;
/**
* Returns mime object
*/
type(type: string): MimeEntry;
}
export = Mimos;
````
### Additional Details
* Last updated: Fri, 25 Sep 2020 23:55:57 GMT
* Last updated: Tue, 06 Jul 2021 20:33:13 GMT
* Dependencies: [@types/mime-db](https://npmjs.com/package/@types/mime-db)

@@ -14,0 +82,0 @@ * Global values: none

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc