Socket
Socket
Sign inDemoInstall

melody-compiler

Package Overview
Dependencies
Maintainers
3
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

melody-compiler - npm Package Compare versions

Comparing version 1.2.0-commit.465bada5 to 1.2.0-commit.4acb2b43

14

package.json
{
"name": "melody-compiler",
"version": "1.2.0-commit.465bada5",
"version": "1.2.0-commit.4acb2b43",
"description": "",

@@ -17,3 +17,3 @@ "main": "./lib/index.js",

"lodash": "^4.12.0",
"melody-code-frame": "1.2.0-commit.465bada5",
"melody-code-frame": "1.2.0-commit.4acb2b43",
"random-seed": "^0.3.0"

@@ -28,13 +28,7 @@ },

},
"bundledDependencies": [
"babel-types",
"babel-generator",
"babel-template",
"random-seed"
],
"devDependencies": {
"melody-extension-core": "1.2.0-commit.465bada5",
"melody-plugin-idom": "1.2.0-commit.465bada5",
"melody-extension-core": "1.2.0-commit.4acb2b43",
"melody-plugin-idom": "1.2.0-commit.4acb2b43",
"rollup-plugin-babel": "^2.6.1"
}
}

@@ -249,2 +249,19 @@ /**

exit(path) {
const sourceType = path.node.source.type;
if (sourceType !== 'StringLiteral') {
this.error(
'Dynamic includes are not supported',
path.node.loc.start,
`The Include Statement expected a StringLiteral but got a ${sourceType}.
Includes only support static strings as argument.
To include a template asynchronously you can use the "mount async" statement:
{% mount async './#{ partial }.twig' as 'bar-#{ partial }' with _context %}
{{ err }}
{% catch err %}
Failed to load with {{ err }}
{% endmounts %}`
);
}
const includeName = this.addDefaultImportFrom(

@@ -251,0 +268,0 @@ path.node.source.value,

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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