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

fuet

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fuet - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

16

fuet.js

@@ -14,2 +14,3 @@ #!/usr/bin/env node

this.options = options
}

@@ -41,2 +42,7 @@

} else jsTemplate += '};'
} else if (this.options.es_modules) {
jsTemplate = `export const ${templateName}={r:${this.toFunction(compiled.render)}`
if (compiled.staticRenderFns.length) {
jsTemplate += `,s:[${compiled.staticRenderFns.map(this.toFunction).join(',')}]};`
} else jsTemplate += '};'
} else {

@@ -60,2 +66,4 @@ jsTemplate = `${this.options.namespace}.${templateName}={r:${this.toFunction(compiled.render)}`

}
// Filter out double names.
templateNameParts = templateNameParts.filter((value, index, self) => self.indexOf(value) === index)
let templateName = templateNameParts.join('_')

@@ -110,2 +118,8 @@ return templateName

})
.option('es_modules', {
alias: 'e',
describe: 'use es modules format',
type: 'boolean',
default: false,
})
.option('input', {

@@ -142,2 +156,3 @@ alias: 'i',

commonjs: argv.commonjs,
es_modules: argv.es_modules,
pathfilter: argv.pathfilter,

@@ -147,2 +162,3 @@ namespace: argv.namespace || 'window.templates',

preserveWhitespace: false,
optimizeSSR: true,
},

@@ -149,0 +165,0 @@ }

9

package.json
{
"name": "fuet",
"version": "1.0.10",
"version": "1.0.11",
"description": "Simple and fast template compiler for Vue 2.",

@@ -16,7 +16,10 @@ "bin": {

"dependencies": {
"convert-source-map": "^1.5.1",
"glob": "^7.1.1",
"vue-template-compiler": "^2.4.2",
"vue-template-es2015-compiler": "^1.5.2",
"hash-sum": "^1.0.2",
"source-map": "^0.6.1",
"vue-template-compiler": "^2.4.4",
"vue-template-es2015-compiler": "^1.5.3",
"yargs": "^8.0.2"
}
}
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