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

@dadi/api-wrapper

Package Overview
Dependencies
Maintainers
2
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dadi/api-wrapper - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

15

lib/filters.js

@@ -335,8 +335,19 @@ module.exports = function (DadiAPI) {

DadiAPI.prototype.withComposition = function (value) {
value = (value !== false)
this.compose = value !== false
this._addToQuery('compose', value)
return this
}
/**
* Toggles the composition of all history revisions for the current document
*
* @param {Boolean} value
* @return API
* @api public
*/
DadiAPI.prototype.includeHistory = function (value) {
this.history = value !== false
return this
}
}

@@ -86,2 +86,10 @@ var passport = require('@dadi/passport')

if (this.compose) {
params.compose = this.compose
}
if (this.includeHistory) {
params.includeHistory = this.history
}
if (this.sortField) {

@@ -100,3 +108,2 @@ params.sort = this.sortField

}
return url

@@ -103,0 +110,0 @@ }

2

package.json
{
"name": "@dadi/api-wrapper",
"version": "1.1.1",
"version": "1.1.2",
"description": "A high-level library for interacting with DADI API",

@@ -5,0 +5,0 @@ "main": "index.js",

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