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

@antora/playbook-builder

Package Overview
Dependencies
Maintainers
2
Versions
88
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@antora/playbook-builder - npm Package Compare versions

Comparing version 3.0.3 to 3.1.0

15

lib/build-playbook.js
'use strict'
const camelCaseKeys = require('camelcase-keys')
const convict = require('./solitary-convict')

@@ -71,2 +70,14 @@ const defaultSchema = require('./config/schema')

function camelCaseKeys (o, stopPaths = [], p = '') {
if (Array.isArray(o)) return o.map((it) => camelCaseKeys(it, stopPaths, p))
if (o == null || o.constructor !== Object) return o
const pathPrefix = p && p + '.'
const accum = {}
for (const [k, v] of Object.entries(o)) {
const camelKey = k.toLowerCase().replace(/[_-]([a-z0-9])/g, (_, l, idx) => (idx ? l.toUpperCase() : l))
accum[camelKey] = ~stopPaths.indexOf(pathPrefix + camelKey) ? v : camelCaseKeys(v, stopPaths, pathPrefix + camelKey)
}
return accum
}
function getModel (name) {

@@ -81,3 +92,3 @@ let config = this

config.validate({ allowed: 'strict' })
const model = camelCaseKeys(data, { deep: true, stopPaths: getStopPaths(schema._cvtProperties) })
const model = camelCaseKeys(data, getStopPaths(schema._cvtProperties))
if (!name) {

@@ -84,0 +95,0 @@ model.dir = model.playbook ? ospath.dirname((model.file = model.playbook)) : process.cwd()

12

package.json
{
"name": "@antora/playbook-builder",
"version": "3.0.3",
"version": "3.1.0",
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.",

@@ -18,5 +18,11 @@ "license": "MPL-2.0",

"main": "lib/index.js",
"exports": {
".": "./lib/index.js",
"./config/schema": "./lib/config/schema.js",
"./lib/solitary-convict": "./lib/solitary-convict.js",
"./solitary-convict": "./lib/solitary-convict.js",
"./package.json": "./package.json"
},
"dependencies": {
"@iarna/toml": "~2.2",
"camelcase-keys": "~7.0",
"convict": "~6.2",

@@ -27,3 +33,3 @@ "js-yaml": "~4.1",

"engines": {
"node": ">=12.21.0"
"node": ">=16.0.0"
},

@@ -30,0 +36,0 @@ "files": [

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