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

component-builder

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

6

History.md
0.5.0 / 2012-12-04
==================
* add source url support. Closes #39
* fix url rewriting of css in sub-directories
0.4.2 / 2012-11-06

@@ -3,0 +9,0 @@ ==================

36

lib/builder.js

@@ -9,2 +9,3 @@

, join = path.join
, dirname = path.dirname
, Batch = require('batch')

@@ -95,2 +96,3 @@ , debug = require('debug')('component:builder')

dep.copyAssetsTo(this.assetsDest);
if (this.sourceUrls) dep.addSourceURLs();
};

@@ -110,2 +112,12 @@

/**
* Enable "sourceURLs" in the build.
*
* @api public
*/
Builder.prototype.addSourceURLs = function(){
this.sourceUrls = true;
};
/**
* Check if this build has deps.

@@ -324,17 +336,17 @@ *

* ./inherit -> component-inherit
*
*
* ./animal
* ./deps
* ./inherit -> component-inherit
*
*
* ./component-inherit
*
*
* ./pet-list
* ./deps
* ./pet -> pet
*
*
* ./user-list
* ./deps
* ./user -> user
*
*
* ./boot

@@ -648,5 +660,11 @@ * ./deps

return 'require.register("' + file + '", function(module, exports, require){\n'
+ js
+ '\n});';
if (builder.sourceUrls) {
return 'require.register("' + file + '", Function("module, exports, require",\n'
+ JSON.stringify(js + '//@ sourceURL=' + file)
+ '\n));';
} else {
return 'require.register("' + file + '", function(module, exports, require){\n'
+ js
+ '\n});';
}
}

@@ -676,3 +694,3 @@

var name = normalize(builder.name);
return join(builder.urlPrefix, '/', name, url);
return join(builder.urlPrefix, '/', name, dirname(file), url);
}

@@ -679,0 +697,0 @@

{
"name": "component-builder",
"version": "0.4.2",
"version": "0.5.0",
"description": "Component build tool",

@@ -12,3 +12,3 @@ "keywords": [

"component-require": "0.1.0",
"batch": "0.1.1",
"batch": "0.2.1",
"rework": "0.7.0",

@@ -15,0 +15,0 @@ "mkdirp": "0.3.4",

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