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

systemjs-plugin-babel

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

systemjs-plugin-babel - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

2

package.json
{
"name": "systemjs-plugin-babel",
"version": "0.0.5",
"version": "0.0.6",
"registry": "npm",

@@ -5,0 +5,0 @@ "jspmPackage": true,

@@ -13,3 +13,3 @@ var babel = require('systemjs-babel-build').babel;

var babelRuntimePath = System.decanonicalize('babel-runtime/', module.id);
var babelRuntimePath;
var modularHelpersPath = System.decanonicalize('./babel-helpers/', module.id);

@@ -19,4 +19,2 @@ var externalHelpersPath = System.decanonicalize('./babel-helpers.js', module.id);

if (babelRuntimePath.substr(babelRuntimePath.length - 3, 3) == '.js')
babelRuntimePath = babelRuntimePath.substr(0, babelRuntimePath.length - 3);
if (modularHelpersPath.substr(modularHelpersPath.length - 3, 3) == '.js')

@@ -27,3 +25,2 @@ modularHelpersPath = modularHelpersPath.substr(0, modularHelpersPath.length - 3);

if (System.getCanonicalName) {
babelRuntimePath = System.getCanonicalName(babelRuntimePath);
modularHelpersPath = System.getCanonicalName(modularHelpersPath);

@@ -165,4 +162,11 @@ externalHelpersPath = System.getCanonicalName(externalHelpersPath);

else if (m.substr(0, 14) == 'babel-runtime/') {
if (babelRuntimePath == 'babel-runtime/')
throw new Error('The babel-runtime module must be mapped to support modular helpers and builtins. If using jspm run jspm install npm:babel-runtime.');
if (!babelRuntimePath) {
babelRuntimePath = System.decanonicalize('babel-runtime/', module.id);
if (babelRuntimePath.substr(babelRuntimePath.length - 3, 3) == '.js')
babelRuntimePath = babelRuntimePath.substr(0, babelRuntimePath.length - 3);
if (loader.getCanonicalName)
babelRuntimePath = loader.getCanonicalName(babelRuntimePath);
if (babelRuntimePath == 'babel-runtime/')
throw new Error('The babel-runtime module must be mapped to support modular helpers and builtins. If using jspm run jspm install npm:babel-runtime.');
}
m = babelRuntimePath + m.substr(14) + '.js';

@@ -169,0 +173,0 @@ }

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