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

@types/hapi__vision

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/hapi__vision - npm Package Compare versions

Comparing version 5.5.2 to 5.5.3

40

hapi__vision/index.d.ts

@@ -23,3 +23,3 @@ // Type definitions for @hapi/vision 5.5

/** defines the default filename extension to append to template names when multiple engines are configured and no explicit extension is provided for a given template. No default value. */
defaultExtension?: string;
defaultExtension?: string | undefined;
}

@@ -43,3 +43,3 @@

*/
partialsPath?: string | string[];
partialsPath?: string | string[] | undefined;
/**

@@ -53,5 +53,5 @@ * The directory path, or array of directory paths, where helpers are located.

*/
helpersPath?: string | string[];
helpersPath?: string | string[] | undefined;
/** if set to false, templates will not be cached (thus will be read from file on every use). Defaults to true. */
isCached?: boolean;
isCached?: boolean | undefined;
}

@@ -65,7 +65,7 @@

/** the root file path, or array of file paths, used to resolve and load the templates identified when calling reply.view(). Defaults to current working directory. */
path?: string | string[];
path?: string | string[] | undefined;
/**
* a base path used as prefix for path and partialsPath. No default.
*/
relativeTo?: string;
relativeTo?: string | undefined;
/**

@@ -79,21 +79,21 @@ * If set to true or a layout filename, layout support is enabled.

*/
layout?: boolean | string;
layout?: boolean | string | undefined;
/** the root file path, or array of file paths, where layout templates are located (using the relativeTo prefix if present). Defaults to path. */
layoutPath?: string | string[];
layoutPath?: string | string[] | undefined;
/** the key used by the template engine to denote where primary template content should go. Defaults to 'content'. */
layoutKeyword?: string;
layoutKeyword?: string | undefined;
/** the text encoding used by the templates when reading the files and outputting the result. Defaults to 'utf8'. */
encoding?: string;
encoding?: string | undefined;
/** if set to true, allows absolute template paths passed to reply.view(). Defaults to false. */
allowAbsolutePaths?: boolean;
allowAbsolutePaths?: boolean | undefined;
/** if set to true, allows template paths passed to reply.view() to contain '../'. Defaults to false. */
allowInsecureAccess?: boolean;
allowInsecureAccess?: boolean | undefined;
/** options object passed to the engine's compile function. Defaults to empty options {}. */
compileOptions?: CompileOptions;
compileOptions?: CompileOptions | undefined;
/** options object passed to the returned function from the compile operation. Defaults to empty options {}. */
runtimeOptions?: RuntimeOptions;
runtimeOptions?: RuntimeOptions | undefined;
/** the content type of the engine results. Defaults to 'text/html'. */
contentType?: string;
contentType?: string | undefined;
/** specify whether the engine compile() method is 'sync' or 'async'. Defaults to 'sync'. */
compileMode?: 'sync' | 'async';
compileMode?: 'sync' | 'async' | undefined;
/**

@@ -107,3 +107,3 @@ * A global context used with all templates.

*/
context?: object | ((request: Request) => object);
context?: object | ((request: Request) => object) | undefined;
}

@@ -283,3 +283,3 @@

/** optional object used by the template to render context-specific result. Defaults to no context {}. */
context?: object;
context?: object | undefined;
/**

@@ -290,5 +290,5 @@ * optional object used to override the server's views manager configuration for this response.

*/
options?: vision.ViewHandlerOrReplyOptions;
};
options?: vision.ViewHandlerOrReplyOptions | undefined;
} | undefined;
}
}
{
"name": "@types/hapi__vision",
"version": "5.5.2",
"version": "5.5.3",
"description": "TypeScript definitions for @hapi/vision",
"homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/hapi__vision",
"license": "MIT",

@@ -35,4 +36,4 @@ "contributors": [

},
"typesPublisherContentHash": "cc483db5fa399b8aa12ea78839dd6c37e43ee93c7e0a901a9433a74b6a881c88",
"typeScriptVersion": "3.2"
"typesPublisherContentHash": "62a9d39a5b558095533fad6664acc420a22804c7a7edb6917000de4a566c849d",
"typeScriptVersion": "3.6"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Fri, 25 Sep 2020 23:55:58 GMT
* Last updated: Thu, 08 Jul 2021 14:22:45 GMT
* Dependencies: [@types/hapi__hapi](https://npmjs.com/package/@types/hapi__hapi)

@@ -14,0 +14,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