Socket
Socket
Sign inDemoInstall

babel-plugin-namespace-amd-define

Package Overview
Dependencies
Maintainers
13
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-namespace-amd-define - npm Package Compare versions

Comparing version 2.19.4 to 2.20.0

6

package.json
{
"author": "Liferay Frontend Infrastructure Team <pt-frontend-infrastructure@liferay.com>",
"dependencies": {
"liferay-npm-build-tools-common": "2.19.4"
"liferay-npm-build-tools-common": "2.20.0"
},

@@ -19,4 +19,4 @@ "description": "A Babel plugin to namespace (prefix) AMD define() calls.",

},
"version": "2.19.4",
"gitHead": "d341f385c91a7d50168a6ce8be978d2f03f6bedc"
"version": "2.20.0",
"gitHead": "c346146c8c8e6f7c12356f68dc7153efc6445e89"
}

@@ -54,6 +54,4 @@ # babel-plugin-namespace-amd-define

This module adds a prefix to any AMD `define()` call that it finds. The prefix
is specified with the `namespace` option and a period is inserted between the
namespace string and the `define()` call.
This module adds a prefix to any AMD `define()` call that it finds. The prefix is specified with the `namespace` option and a period is inserted between the namespace string and the `define()` call.
By default, the `namespace` option is set to `Liferay.Loader`.

@@ -65,2 +65,3 @@ /**

it('namespaces unqualified define calls that are wrapped', () => {
// eg. the css-loader produces wrappers like this.

@@ -67,0 +68,0 @@

@@ -52,3 +52,4 @@ /**

}
} else {
}
else {
extraNamespaceCount++;

@@ -64,2 +65,3 @@ }

exit(path, state) {
// We must traverse the AST again because the third party

@@ -66,0 +68,0 @@ // transform-es2015-modules-amd emits its define() call after

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