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

adonis-framework

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

adonis-framework - npm Package Compare versions

Comparing version 3.0.2 to 3.0.3

BACKERS.md

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="3.0.3"></a>
## [3.0.3](https://github.com/adonisjs/adonis-framework/compare/v3.0.2...v3.0.3) (2016-10-03)
### Features
* **request:** add extended support for accept header ([7aaf09e](https://github.com/adonisjs/adonis-framework/commit/7aaf09e))
<a name="3.0.2"></a>

@@ -2,0 +12,0 @@ ## [3.0.2](https://github.com/adonisjs/adonis-framework/compare/v3.0.1...v3.0.2) (2016-09-23)

4

package.json
{
"name": "adonis-framework",
"version": "3.0.2",
"version": "3.0.3",
"description": "Adonis framework makes it easy for you to write webapps with less code",

@@ -62,3 +62,3 @@ "main": "index.js",

"node-exceptions": "^1.0.3",
"node-req": "^1.0.3",
"node-req": "^1.0.5",
"node-res": "^3.0.0",

@@ -65,0 +65,0 @@ "node-uuid": "^1.4.7",

@@ -10,2 +10,3 @@ # AdonisJS Framework

[![License](https://img.shields.io/npm/l/adonis-framework.svg?style=flat-square)](https://opensource.org/licenses/MIT)
[![Support AdonisJs](https://img.shields.io/badge/patreon-support-brightgreen.svg?style=flat-square)](https://www.patreon.com/adonisframework)

@@ -12,0 +13,0 @@ > :pray: This repository contains the core of the AdonisJS framework.

@@ -615,2 +615,68 @@ 'use strict'

/**
* Returns the request language set via Accept-Language
* header.
*
* @param {Array} [languages]
*
* @return {String}
*/
language (languages) {
return nodeReq.language(this.request, languages)
}
/**
* Returns list of request languages set via Accept-Language
* header.
*
* @return {Array}
*/
languages () {
return nodeReq.languages(this.request)
}
/**
* Returns the request encoding set via Accept-Encoding
* header.
*
* @param {Array} [encodings]
*
* @return {String}
*/
encoding (encodings) {
return nodeReq.encoding(this.request, encodings)
}
/**
* Returns list of request encodings set via Accept-Encoding
* header.
*
* @return {Array}
*/
encodings () {
return nodeReq.encodings(this.request)
}
/**
* Returns the request charset set via Accept-Charset
* header.
*
* @param {Array} [encodings]
*
* @return {String}
*/
charset (charsets) {
return nodeReq.charset(this.request)
}
/**
* Returns list of request charsets set via Accept-Charset
* header.
*
* @return {Array}
*/
charsets () {
return nodeReq.charsets(this.request)
}
/**
* adds a new method to the request prototype

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