Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

oils

Package Overview
Dependencies
Maintainers
1
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oils - npm Package Compare versions

Comparing version 0.2.6 to 0.2.7

2

oils-js-core/middlewares.js

@@ -11,3 +11,3 @@ exports.responsePatch = function(app) {

options = beforeRender(req, res, view, options, callback);
app.execEvent('beforeRender', [view, options, callback])
app.execEvent('beforeRender', [view, options, callback, req, res])
_render.call(res, view, options, callback);

@@ -14,0 +14,0 @@ };

{
"name": "oils",
"version": "0.2.6",
"version": "0.2.7",
"description": "Oils js framework built on top of Express.",

@@ -5,0 +5,0 @@ "keywords": [

@@ -21,4 +21,5 @@ oils

Version 0.2.6 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.6.zip))
Version 0.2.7 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.7.zip))
* Fix bug regarding ```includeModel``` caching
* Added ```req, res``` parameters in ```beforeRender``` event hook

@@ -167,3 +168,3 @@ Version 0.2.5 ([Download](https://github.com/mannyvergel/oils-js/archive/v0.2.5.zip))

```
app.on('beforeRender', function(view, options, callback) {
app.on('beforeRender', function(view, options, callback, req, res) {
//called before res.render(...);

@@ -170,0 +171,0 @@ })

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