Socket
Socket
Sign inDemoInstall

babel-plugin-namespace-amd-define

Package Overview
Dependencies
Maintainers
1
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 0.5.0 to 0.6.0

lib/__tests__/__snapshots__/index.test.js.snap

7

lib/index.js

@@ -11,3 +11,7 @@ 'use strict';

var namespaceVisitor = {
ExpressionStatement: function ExpressionStatement(path) {
ExpressionStatement: function ExpressionStatement(path, state) {
if (state.namespaced) {
path.stop();
}
var node = path.node;

@@ -24,2 +28,3 @@ var expression = node.expression;

state.namespaced = true;
path.stop();

@@ -26,0 +31,0 @@ }

6

package.json
{
"name": "babel-plugin-namespace-amd-define",
"version": "0.5.0",
"description": "A Babel plugin to namespace AMD define() calls.",
"version": "0.6.0",
"description": "A Babel plugin to namespace (prefix) AMD define() calls.",
"main": "lib/index.js",
"scripts": {
"build": "babel --source-maps -D -d lib src",
"prepublish": "babel --source-maps -D -d lib src"
"prepublish": "npm run build"
},

@@ -10,0 +10,0 @@ "devDependencies": {

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