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

rollup-plugin-license-xml

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-license-xml - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

23

index.js

@@ -48,3 +48,24 @@ 'use strict';

const templateString = fs.readFileSync(path.join(__dirname, 'template.handlebars'), 'utf8');
const templateString = `
{{#each modules}}
<other>
<description>{{this.packageJson.name}}</description>
<locations>
{{#each files}}
{{#if ../truncated}}
<directory>{{this}}</directory>
{{else}}
<file>{{this}}</file>
{{/if}}
{{/each}}
</locations>
<licenses>
<license>
<name>{{this.packageJson.license}}</name>
<url>{{licenseUrl this.packageJson.repository.url}}</url>
</license>
</licenses>
</other>
{{/each}}
`;
Handlebars.registerHelper('licenseUrl', function (url) {

@@ -51,0 +72,0 @@ if (!url) {

@@ -48,3 +48,24 @@ 'use strict'

const templateString = fs.readFileSync(path.join(__dirname, 'template.handlebars'), 'utf8')
const templateString = `
{{#each modules}}
<other>
<description>{{this.packageJson.name}}</description>
<locations>
{{#each files}}
{{#if ../truncated}}
<directory>{{this}}</directory>
{{else}}
<file>{{this}}</file>
{{/if}}
{{/each}}
</locations>
<licenses>
<license>
<name>{{this.packageJson.license}}</name>
<url>{{licenseUrl this.packageJson.repository.url}}</url>
</license>
</licenses>
</other>
{{/each}}
`
Handlebars.registerHelper('licenseUrl', function (url) {

@@ -51,0 +72,0 @@ if (!url) {

2

package.json
{
"name": "rollup-plugin-license-xml",
"version": "0.0.2",
"version": "0.0.3",
"description": "Generates a xml with the licenses of your runtime dependencies",

@@ -5,0 +5,0 @@ "engines": {

Sorry, the diff of this file is not supported yet

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