Socket
Socket
Sign inDemoInstall

babel-plugin-wrap-modules-amd

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-wrap-modules-amd - npm Package Compare versions

Comparing version 2.18.3 to 2.18.4

6

lib/index.js

@@ -108,3 +108,7 @@ "use strict";

log.info('wrap-modules-amd', 'Applied user template to wrap file');
const buildUserTemplate = babel_template_1.default(fs_1.default.readFileSync(templateFile).toString());
const buildUserTemplate = babel_template_1.default(`
(function() {
${fs_1.default.readFileSync(templateFile).toString()}
})();
`);
fs_1.default.unlinkSync(templateFile);

@@ -111,0 +115,0 @@ return buildUserTemplate({

6

package.json
{
"name": "babel-plugin-wrap-modules-amd",
"version": "2.18.3",
"version": "2.18.4",
"description": "A Babel plugin to wrap package modules inside AMD define() calls.",

@@ -13,6 +13,6 @@ "main": "lib/index.js",

"babel-template": "^6.26.0",
"liferay-npm-build-tools-common": "2.18.3",
"liferay-npm-build-tools-common": "2.18.4",
"read-json-sync": "^2.0.1"
},
"gitHead": "9b40cb4354715c0d3c399f414bcd678785131d46"
"gitHead": "4ccb844bd2c431637a67e28a3ef60353104c9dfa"
}

@@ -138,5 +138,7 @@ /**

const buildUserTemplate = template(
fs.readFileSync(templateFile).toString()
);
const buildUserTemplate = template(`
(function() {
${fs.readFileSync(templateFile).toString()}
})();
`);

@@ -143,0 +145,0 @@ fs.unlinkSync(templateFile);

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