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

component-builder

Package Overview
Dependencies
Maintainers
2
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

component-builder - npm Package Compare versions

Comparing version 0.11.0 to 0.11.1

5

History.md
0.11.1 / 2013-12-30
==================
* fix main support
0.11.0 / 2013-12-29

@@ -3,0 +8,0 @@ ==================

25

lib/builder.js

@@ -820,6 +820,23 @@ /**

function register(builder, file, js){
file = builder.root
? builder.config.name + '/' + file
: builder.basename + '/' + file;
var main = builder.config.main;
var orig = file;
// strip ./
if ('./' == file.slice(0, 2)) file = file.slice(2);
// rewrite main to index.js
// so that require() still grabs
// the correct file without aliases
if (file == main) file = 'index.js';
// determine prefix
// TODO: should always be name / version combo
var prefix = builder.root
? builder.config.name
: builder.basename;
// prefix
file = prefix + '/' + file;
js = requires(js, function(require){

@@ -833,3 +850,3 @@ var deps = builder.config.dependencies || {};

if (builder.sourceUrls) {
js = JSON.stringify(js + '//@ sourceURL=' + file);
js = JSON.stringify(js + '//@ sourceURL=' + prefix + '/' + orig);
js = js.replace(/\\n/g, '\\n\\\n');

@@ -836,0 +853,0 @@ return 'require.register("' + file + '", Function("exports, require, module",\n'

2

package.json
{
"name": "component-builder",
"version": "0.11.0",
"version": "0.11.1",
"description": "Component build tool",

@@ -5,0 +5,0 @@ "keywords": [

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