Comparing version 2.5.0 to 2.5.1
'use strict'; | ||
const path = require('path'); | ||
const fs = require('fs'); | ||
@@ -318,7 +319,7 @@ const Path = require('path'); | ||
if (this.opts.status === 'draft') { | ||
copyright = fs.readFileSync('boilerplate/draft-copyright.html', 'utf8'); | ||
copyright = getBoilerplate('draft-copyright'); | ||
} else if (this.opts.status === 'standard') { | ||
copyright = fs.readFileSync('boilerplate/standard-copyright.html', 'utf8'); | ||
copyright = getBoilerplate('standard-copyright'); | ||
} else { | ||
copyright = fs.readFileSync('boilerplate/proposal-copyright.html', 'utf8'); | ||
copyright = getBoilerplate('proposal-copyright'); | ||
} | ||
@@ -332,3 +333,3 @@ | ||
const softwareLicense = fs.readFileSync('boilerplate/software-license.html', 'utf8'); | ||
const softwareLicense = getBoilerplate('software-license'); | ||
@@ -503,1 +504,5 @@ let copyrightClause = this.doc.querySelector('.copyright-and-software-license'); | ||
} | ||
function getBoilerplate(file) { | ||
return fs.readFileSync(Path.join(__dirname, '../boilerplate', file + '.html'), 'utf8'); | ||
} |
{ | ||
"name": "ecmarkup", | ||
"version": "2.5.0", | ||
"version": "2.5.1", | ||
"description": "Custom element definitions and core utilities for markup that specifies ECMAScript and related technologies.", | ||
@@ -5,0 +5,0 @@ "main": "lib/ecmarkup.js", |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
463969
1917
5