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

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 1.7.0-alpha.1158492a to 1.7.0-alpha.1b73ffed

8

lib/__tests__/index.test.js

@@ -7,2 +7,6 @@ 'use strict';

var _babelIpc = require('liferay-npm-build-tools-common/lib/babel-ipc');
var babelIpc = _interopRequireWildcard(_babelIpc);
var _pluginLogger = require('liferay-npm-build-tools-common/lib/plugin-logger');

@@ -23,3 +27,5 @@

beforeEach(function () {
_pluginLogger2.default.set(__filename, logger = new _pluginLogger2.default());
babelIpc.set(__filename, {
log: logger = new _pluginLogger2.default()
});
});

@@ -26,0 +32,0 @@

@@ -62,3 +62,12 @@ 'use strict';

_pluginLogger2.default.get(state).info('wrap-modules-amd', 'Detected dependencies:', dependencies.join(', '));
// Log results
var _babelIpc$get = babelIpc.get(state, function () {
return {
log: new _pluginLogger2.default()
};
}),
log = _babelIpc$get.log;
log.info('wrap-modules-amd', 'Detected dependencies:', dependencies.join(', '));
}

@@ -74,2 +83,6 @@ }

var _babelIpc = require('liferay-npm-build-tools-common/lib/babel-ipc');
var babelIpc = _interopRequireWildcard(_babelIpc);
var _pluginLogger = require('liferay-npm-build-tools-common/lib/plugin-logger');

@@ -79,2 +92,4 @@

function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -81,0 +96,0 @@

4

package.json
{
"name": "babel-plugin-wrap-modules-amd",
"version": "1.7.0-alpha.1158492a",
"version": "1.7.0-alpha.1b73ffed",
"description": "A Babel plugin to wrap package modules inside AMD define() calls.",

@@ -16,5 +16,5 @@ "main": "lib/index.js",

"babel-template": "^6.25.0",
"liferay-npm-build-tools-common": "1.7.0-alpha.1158492a",
"liferay-npm-build-tools-common": "1.7.0-alpha.1b73ffed",
"read-json-sync": "^1.1.1"
}
}
import * as babel from 'babel-core';
import * as babelIpc from 'liferay-npm-build-tools-common/lib/babel-ipc';
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger';

@@ -8,3 +9,5 @@ import plugin from '../index';

beforeEach(() => {
PluginLogger.set(__filename, (logger = new PluginLogger()));
babelIpc.set(__filename, {
log: (logger = new PluginLogger()),
});
});

@@ -11,0 +14,0 @@

import template from 'babel-template';
import * as babelIpc from 'liferay-npm-build-tools-common/lib/babel-ipc';
import PluginLogger from 'liferay-npm-build-tools-common/lib/plugin-logger';

@@ -71,3 +72,8 @@

PluginLogger.get(state).info(
// Log results
const {log} = babelIpc.get(state, () => ({
log: new PluginLogger(),
}));
log.info(
'wrap-modules-amd',

@@ -74,0 +80,0 @@ 'Detected dependencies:',

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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