Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

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.1.1-14a6096.46 to 1.1.1-2111f3f.56

16

package.json
{
"name": "melody-compiler",
"version": "1.1.1-14a6096.46+14a6096",
"version": "1.1.1-2111f3f.56+2111f3f",
"description": "",

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

"lodash": "^4.12.0",
"melody-code-frame": "1.1.1-14a6096.46+14a6096",
"melody-code-frame": "1.1.1-2111f3f.56+2111f3f",
"random-seed": "^0.3.0"

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

},
"bundledDependencies": [
"babel-types",
"babel-generator",
"babel-template",
"random-seed"
],
"devDependencies": {
"melody-extension-core": "1.1.1-14a6096.46+14a6096",
"melody-plugin-idom": "1.1.1-14a6096.46+14a6096"
"melody-extension-core": "1.1.1-2111f3f.56+2111f3f",
"melody-plugin-idom": "1.1.1-2111f3f.56+2111f3f"
},
"gitHead": "14a60963c0db9b8b13b3b706b35f89c131bc1828"
"gitHead": "2111f3ff8d54bb9cdc08708b3717bd2bc6d77a04"
}

@@ -26,3 +26,3 @@ /**

import * as t from 'babel-types';
import generate from 'babel-generator';
import { CodeGenerator } from 'babel-generator';

@@ -126,3 +126,15 @@ // workaround for https://github.com/rollup/rollup/issues/430

export function toString(jsAst, code) {
return generate(jsAst, {}, code);
const g = new CodeGenerator(jsAst, {}, code);
// Babel sanitises strings to not contain complex characters
// however we need them in order to be able to render complex strings
g._generator.StringLiteral = function (node, parent) {
var raw = this.getPossibleRaw(node);
if (!this.format.minified && raw != null) {
this.token(raw);
return;
}
return this.token(JSON.stringify(node.value));
};
return g.generate();
}

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