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

babel-plugin-source-map-support-for-6

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-source-map-support-for-6 - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

package.json
{
"name": "babel-plugin-source-map-support-for-6",
"version": "0.0.2",
"version": "0.0.3",
"description": "A Babel6 verion fork.A Babel plugin which automatically makes stack traces source-map aware",

@@ -5,0 +5,0 @@ "repository": "mariodu/babel-plugin-source-map-support",

@@ -20,24 +20,28 @@ 'use strict';

if (process.env._.indexOf('babel') > -1) {
console.log('run add import');
return {
visitor: {
Program: function Program(path, _ref2) {
var file = _ref2.file;
return {
visitor: {
Program: function Program(path, _ref2) {
var file = _ref2.file;
var id = undefined;
var id = undefined;
id = file.addImport('source-map-support', 'install', '_sourceMapSupport');
id = file.addImport('source-map-support', 'install', '_sourceMapSupport');
path.traverse({
ImportDeclaration: function ImportDeclaration(path) {
if (path.node.source.value === 'source-map-support') {
path.insertAfter(t.ExpressionStatement(t.CallExpression(t.identifier('_sourceMapSupport'), [])));
path.traverse({
ImportDeclaration: function ImportDeclaration(path) {
if (path.node.source.value === 'source-map-support') {
path.insertAfter(t.ExpressionStatement(t.CallExpression(t.identifier('_sourceMapSupport'), [])));
}
}
}
});
});
}
}
}
};
};
} else {
console.log('don\'t run add import');
return {};
}
};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wbHVnaW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztrQkFXZSxnQkFBZ0I7UUFBUCxTQUFQLE1BQWM7OztBQUUzQixXQUFPO0FBQ0gsaUJBQVM7QUFDTCxzQ0FBUyxhQUFjO29CQUFQLGtCQUFPOztBQUNuQixvQkFBSS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B7XG4gICAgICAgICAgICAgICAgbGV0IGlkO1xuXG4gICAgICAgICAgICAgICAgaWQgPSBmaWxlLmFkZEltcG9ydChcbiAgICAgICAgICAgICAgICAgICAgJ3NvdXJjZS1tYXAtc3VwcG9ydCcsXG4gICAgICAgICAgICAgICAgICAgICdpbnN0YWxsJyxcbiAgICAgICAgICAgICAgICAgICAgJ19zb3VyY2VNYXBTdXBwb3J0J1xuICAgICAgICAgICAgICAgICk7XG5cbiAgICAgICAgICAgICAgICBwYXRoLnRyYXZlcnNlKHtcbiAgICAgICAgICAgICAgICAgICAgSW1wb3J0RGVjbGFyYXRpb24ocGF0aCkge1xuXG4gICAgICAgICAgICAgICAgICAgICAgICBpZiAocGF0aC5ub2RlLnNvdXJjZS52YWx1ZSA9PT0gJ3NvdXJjZS1tYXAtc3VwcG9ydCcpIHtcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXRoLmluc2VydEFmdGVyKHQuRXhwcmVzc2lvblN0YXRlbWVudCh0LkNhbGxFeHByZXNzaW9uKHQuaWRlbnRpZmllcignX3NvdXJjZU1hcFN1cHBvcnQnKSwgW10pKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH07XG59O1xuIl19
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9wbHVnaW4uanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7OztrQkFXZSxnQkFBZ0I7UUFBUCxTQUFQLE1BQWM7O0FBQzNCLFFBQUksUUFBUSxHQUFSLENBQVksQ0FBWixDQUFjLE9BQWQsQ0FBc0IsT0FBdEIsSUFBaUMsQ0FBQyxDQUFELEVBQUk7QUFDckMsZ0JBQVEsR0FBUixDQUFZLGdCQUFaLEVBRHFD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XNpdG9yOiB7UHJvZ3JhbTogKGZ1bmN0aW9uKCosICopKX19fVxuICovXG5cbmV4cG9ydCBkZWZhdWx0ICh7dHlwZXM6IHR9KSA9PiB7XG4gICAgaWYgKHByb2Nlc3MuZW52Ll8uaW5kZXhPZignYmFiZWwnKSA+IC0xKSB7XG4gICAgICAgIGNvbnNvbGUubG9nKCdydW4gYWRkIGltcG9ydCcpO1xuICAgICAgICByZXR1cm4ge1xuICAgICAgICAgICAgdmlzaXRvcjoge1xuICAgICAgICAgICAgICAgIFByb2dyYW0gKHBhdGgsIHtmaWxlfSkge1xuICAgICAgICAgICAgICAgICAgICBsZXQgaWQ7XG5cbiAgICAgICAgICAgICAgICAgICAgaWQgPSBmaWxlLmFkZEltcG9ydChcbiAgICAgICAgICAgICAgICAgICAgICAgICdzb3VyY2UtbWFwLXN1cHBvcnQnLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ2luc3RhbGwnLFxuICAgICAgICAgICAgICAgICAgICAgICAgJ19zb3VyY2VNYXBTdXBwb3J0J1xuICAgICAgICAgICAgICAgICAgICApO1xuXG4gICAgICAgICAgICAgICAgICAgIHBhdGgudHJhdmVyc2Uoe1xuICAgICAgICAgICAgICAgICAgICAgICAgSW1wb3J0RGVjbGFyYXRpb24ocGF0aCkge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgIGlmIChwYXRoLm5vZGUuc291cmNlLnZhbHVlID09PSAnc291cmNlLW1hcC1zdXBwb3J0Jykge1xuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBwYXRoLmluc2VydEFmdGVyKHQuRXhwcmVzc2lvblN0YXRlbWVudCh0LkNhbGxFeHByZXNzaW9uKHQuaWRlbnRpZmllcignX3NvdXJjZU1hcFN1cHBvcnQnKSwgW10pKSk7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgICAgICB9KTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH07XG4gICAgfSBlbHNlIHtcbiAgICAgICAgY29uc29sZS5sb2coJ2RvblxcJ3QgcnVuIGFkZCBpbXBvcnQnKTtcbiAgICAgICAgcmV0dXJuIHt9O1xuICAgIH1cbn07XG4iXX0=
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