Socket
Socket
Sign inDemoInstall

systemjs-builder

Package Overview
Dependencies
103
Maintainers
1
Versions
139
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.16.12 to 0.16.13

12

lib/rollup.js

@@ -214,2 +214,3 @@ var rollup = require('rollup');

var loadList = [];
var entryPointLoad;

@@ -259,3 +260,3 @@ // if all externals are outside the tree then this really is a full tree rollup

.then(function(bundle) {
var entryPointLoad = tree[entryPoint];
entryPointLoad = tree[entryPoint];

@@ -270,2 +271,3 @@ var defaultExport = compileOpts.defaultExport;

var generateOptions = {
format: 'es',
sourceMap: !!compileOpts.sourceMaps,

@@ -282,3 +284,3 @@ exports: defaultExport ? 'default' : 'named',

if (generateOptions.format == 'esm')
generateOptions.format = 'es6';
generateOptions.format = 'es';

@@ -290,3 +292,3 @@ if ((generateOptions.format == 'iife' || generateOptions.format == 'umd') &&

if (compileOpts.globalName)
generateOptions.moduleName = compileOpts.globalName;
generateOptions.name = compileOpts.globalName;

@@ -297,3 +299,5 @@ if (compileOpts.globalDeps)

var output = bundle.generate(generateOptions);
return bundle.generate(generateOptions);
})
.then(function(output) {

@@ -300,0 +304,0 @@ // convert sources list into paths

@@ -108,10 +108,12 @@ var sourceMap = require('source-map');

normalized.sources = normalized.sources.map(function(source) {
var isRootRelative = /^[\\/]/.test(source);
if (isFileURL(source))
source = fromFileURL(source);
// If the source is already a root-relative path, use it as-is, otherwise make it relative to the outPath.
var isRootRelative = /^[\\/]/.test(source);
source = (isRootRelative ? source : path.relative(outPath, path.resolve(basePath, source))).replace(/\\/g, '/');
// If the source is not already a root-relative path, make it relative to the outPath.
if (!isRootRelative)
source = path.relative(outPath, path.resolve(basePath, source));
return source;
return source.replace(/\\/g, '/');
});

@@ -118,0 +120,0 @@

{
"name": "systemjs-builder",
"version": "0.16.12",
"version": "0.16.13",
"description": "SystemJS Build Tool",

@@ -19,3 +19,3 @@ "main": "index.js",

"mkdirp": "^0.5.1",
"rollup": "^0.36.3",
"rollup": "^0.58.2",
"source-map": "^0.5.3",

@@ -22,0 +22,0 @@ "systemjs": "^0.19.46",

@@ -106,2 +106,2 @@ (function (global) {

}));
})(typeof self != 'undefined' ? self : global);
})((typeof self !== 'undefined') ? self : (typeof global !== 'undefined') ? global : this)

@@ -1,1 +0,1 @@

!function(e){function r(e,r){for(var n=e.split(".");n.length;)r=r[n.shift()];return r}function n(n){if("string"==typeof n)return r(n,e);if(!(n instanceof Array))throw new Error("Global exports must be a string or array.");for(var t={},o=0;o<n.length;o++)t[n[o].split(".").pop()]=r(n[o],e);return t}function t(r){if(-1===a.indexOf(r)){try{var n=e[r]}catch(e){a.push(r)}this(r,n)}}var o,i=$__System,a=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"];i.registry.set("@@global-helpers",i.newModule({prepareGlobal:function(r,i,a){var f=e.define;e.define=void 0;var s;if(a){s={};for(var l in a)s[l]=e[l],e[l]=a[l]}return i||(o={},Object.keys(e).forEach(t,function(e,r){o[e]=r})),function(){var r,a=i?n(i):{},l=!!i;if(i||Object.keys(e).forEach(t,function(e,n){o[e]!==n&&void 0!==n&&(i||(a[e]=n,void 0!==r?l||r===n||(l=!0):r=n))}),a=l?a:r,s)for(var c in s)e[c]=s[c];return e.define=f,a}}}))}("undefined"!=typeof self?self:global);
!function(e){function r(e,r){for(var n=e.split(".");n.length;)r=r[n.shift()];return r}function n(n){if("string"==typeof n)return r(n,e);if(!(n instanceof Array))throw new Error("Global exports must be a string or array.");for(var t={},o=0;o<n.length;o++)t[n[o].split(".").pop()]=r(n[o],e);return t}function t(r){if(-1===a.indexOf(r)){try{var n=e[r]}catch(e){a.push(r)}this(r,n)}}var o,i=$__System,a=["_g","sessionStorage","localStorage","clipboardData","frames","frameElement","external","mozAnimationStartTime","webkitStorageInfo","webkitIndexedDB","mozInnerScreenY","mozInnerScreenX"];i.registry.set("@@global-helpers",i.newModule({prepareGlobal:function(r,i,a){var f=e.define;e.define=void 0;var l;if(a){l={};for(var s in a)l[s]=e[s],e[s]=a[s]}return i||(o={},Object.keys(e).forEach(t,function(e,r){o[e]=r})),function(){var r,a=i?n(i):{},s=!!i;if(i||Object.keys(e).forEach(t,function(e,n){o[e]!==n&&void 0!==n&&(i||(a[e]=n,void 0!==r?s||r===n||(s=!0):r=n))}),a=s?a:r,l)for(var c in l)e[c]=l[c];return e.define=f,a}}}))}("undefined"!=typeof self?self:"undefined"!=typeof global?global:this);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc