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

@antora/playbook-builder

Package Overview
Dependencies
Maintainers
2
Versions
86
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 2.0.0-beta.1 to 2.0.0-rc.1

4

lib/build-playbook.js

@@ -40,4 +40,4 @@ 'use strict'

absSpecFilePath += '.json'
} else if (fs.existsSync(absSpecFilePath + '.cson')) {
absSpecFilePath += '.cson'
} else if (fs.existsSync(absSpecFilePath + '.toml')) {
absSpecFilePath += '.toml'
} else {

@@ -44,0 +44,0 @@ throw new Error('playbook file could not be resolved')

'use strict'
const convict = require('convict')
const cson = require('cson-parser')
const json = require('json5')
const toml = require('@iarna/toml')
const yaml = require('js-yaml')

@@ -22,4 +22,4 @@

convict.addParser([
{ extension: 'cson', parse: cson.parse },
{ extension: 'json', parse: json.parse },
{ extension: 'toml', parse: toml.parse },
{ extension: 'yaml', parse: yaml.safeLoad },

@@ -30,3 +30,3 @@ { extension: 'yml', parse: yaml.safeLoad },

parse: () => {
throw new Error('Unexpected playbook file type (must be yml, json, or cson')
throw new Error('Unexpected playbook file type (must be yml, json, or toml')
},

@@ -33,0 +33,0 @@ },

{
"name": "@antora/playbook-builder",
"version": "2.0.0-beta.1",
"version": "2.0.0-rc.1",
"description": "Builds a playbook object from user input for configuring successive documentation components in an Antora pipeline.",

@@ -19,5 +19,5 @@ "license": "MPL-2.0",

"dependencies": {
"@iarna/toml": "^2.2.1",
"camelcase-keys": "^5.0.0",
"convict": "^4.3.2",
"cson-parser": "^3.0.0",
"deep-freeze": "^0.0.1",

@@ -24,0 +24,0 @@ "js-yaml": "^3.12.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