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

monkberry

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

monkberry - npm Package Compare versions

Comparing version 4.0.5 to 4.0.6

5

CHANGELOG.md
# CHANGELOG
### 4.0.5
* Fixed bug with custom tag importing.
* Fixed bug in loop with options.
### 4.0.3

@@ -4,0 +9,0 @@ * A lot of refactoring in compiler and runtime.

2

lib/compiler/document.js

@@ -23,3 +23,3 @@ 'use strict';

if (options.asModule) {
return (0, _sourceNode.sourceNode)(node.loc, ['var Monkberry = require(\'monkberry\');\n', figure.generate(), '\n', 'exports.default = ' + figure.name + ';\n']);
return (0, _sourceNode.sourceNode)(node.loc, ['var Monkberry = require(\'monkberry\');\n', figure.generate(), '\n', 'module.exports = ' + figure.name + ';\n']);
} else {

@@ -26,0 +26,0 @@ return (0, _sourceNode.sourceNode)(node.loc, [figure.generate(), '\n', 'window.' + figure.name + ' = ' + figure.name + ';\n']);

@@ -18,3 +18,3 @@ 'use strict';

// TODO: Add support for ES2015 imports.
figure.root().addImport((0, _sourceNode.sourceNode)(node.loc, 'var ' + node.identifier.name + ' = require(' + node.path.value + ').default;'));
figure.root().addImport((0, _sourceNode.sourceNode)(node.loc, 'var ' + node.identifier.name + ' = __requireDefault(require(' + node.path.value + '));'));

@@ -21,0 +21,0 @@ figure.addToScope(node.identifier.name);

@@ -50,2 +50,3 @@ 'use strict';

sn.add('\n');
sn.add('function __requireDefault(obj) { return obj && obj.__esModule ? obj.default : obj; }\n');
}

@@ -52,0 +53,0 @@

{
"name": "monkberry",
"version": "4.0.5",
"version": "4.0.6",
"description": "Monkberry is a JavaScript library for building web user interfaces",

@@ -5,0 +5,0 @@ "bin": "bin/monkberry",

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