gettext-extractor-vue
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -14,3 +14,3 @@ [ | ||
"context": null, | ||
"references": ["fixtures/attributes.vue:2", "fixtures/complete_file.vue:5"], | ||
"references": ["fixtures/complete_file.vue:5", "fixtures/attributes.vue:2"], | ||
"comments": [] | ||
@@ -26,2 +26,9 @@ }, | ||
{ | ||
"text": "attribute-in-subtree", | ||
"textPlural": null, | ||
"context": null, | ||
"references": ["fixtures/attributes_duplicate.vue:2"], | ||
"comments": [] | ||
}, | ||
{ | ||
"text": "event", | ||
@@ -31,6 +38,6 @@ "textPlural": null, | ||
"references": [ | ||
"fixtures/attributes.vue:5", | ||
"fixtures/events.vue:2", | ||
"fixtures/complete_file.vue:2", | ||
"fixtures/complete_file.vue:5" | ||
"fixtures/complete_file.vue:5", | ||
"fixtures/attributes.vue:5" | ||
], | ||
@@ -37,0 +44,0 @@ "comments": [] |
@@ -18,7 +18,17 @@ const fs = require('fs'); | ||
const compiled = compiler.compile(source.template.content); | ||
snippets.push({ | ||
code: compiler.compile(source.template.content).render, | ||
code: compiled.render, | ||
filename, | ||
line: count + 1, | ||
}); | ||
compiled.staticRenderFns.forEach(fn => { | ||
snippets.push({ | ||
code: fn, | ||
filename, | ||
line: count + 1, | ||
}); | ||
}); | ||
} | ||
@@ -25,0 +35,0 @@ |
{ | ||
"name": "gettext-extractor-vue", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Extend gettext-extractor with the possibility to parse `.vue` files", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
35791
48
634