vue-blservice-loader
Advanced tools
Comparing version
14
index.js
@@ -102,4 +102,14 @@ const path = require('path'); | ||
const { code } = babel.transformFromAst(ast); | ||
const attrsTemplate = [] | ||
Object.keys(result.template.attrs).forEach(attr => { | ||
attrsTemplate.push(`${attr}="${result.template.attrs[attr]}"`) | ||
}) | ||
const attrsScript = [] | ||
Object.keys(result.script.attrs).forEach(attr => { | ||
attrsScript.push(`${attr}="${result.script.attrs[attr]}"`) | ||
}) | ||
return `<template>${templateContent}</template><script>${code}</script>`; | ||
} | ||
return `<template ${attrsTemplate.join(' ')}>${templateContent}</template><script ${attrsScript.join(' ')}>${code}</script>`; | ||
} |
{ | ||
"name": "vue-blservice-loader", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "vue bl service loader", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
8711
4.5%216
4.35%1
Infinity%