Permalink
Browse files

updated jsgi-node dependency; fixes for node 0.4x; moved lib to lib/p…

…inf-loader-js
  • Loading branch information...
cadorn committed Mar 7, 2011
1 parent 1058691 commit 7b7230450ce19f4eec49c8dd6f0d798bd3985e69
Showing with 49 additions and 37 deletions.
  1. +1 −1 demos/ACE/package.json
  2. +1 −1 demos/ACE/program.json
  3. +1 −1 demos/BravoJS/main.js
  4. BIN demos/JetpackExtension/extension/extension.xpi
  5. +4 −4 demos/JetpackExtension/extension/lib/pinf-loader.js
  6. +3 −3 demos/Mappings/program.json
  7. +1 −1 demos/ProgramServer/package.json
  8. +1 −1 demos/ProgramServer/program.json
  9. +1 −1 demos/ReloadingJSGI/package.json
  10. +1 −1 demos/ReloadingJSGI/program.json
  11. 0 lib/{ → pinf-loader-js}/adapter/jetpack.js
  12. +1 −1 lib/{ → pinf-loader-js}/adapter/narwhal.js
  13. +20 −13 lib/{ → pinf-loader-js}/adapter/node.js
  14. 0 lib/{ → pinf-loader-js}/api.js
  15. 0 lib/{ → pinf-loader-js}/args.js
  16. 0 lib/{ → pinf-loader-js}/assembler.js
  17. 0 lib/{ → pinf-loader-js}/bravojs/README
  18. 0 lib/{ → pinf-loader-js}/bravojs/bravo.js
  19. 0 lib/{ → pinf-loader-js}/bravojs/demos/area/area.css
  20. 0 lib/{ → pinf-loader-js}/bravojs/demos/area/area.js
  21. 0 lib/{ → pinf-loader-js}/bravojs/demos/area/index.html
  22. 0 lib/{ → pinf-loader-js}/bravojs/demos/deps/index.html
  23. 0 lib/{ → pinf-loader-js}/bravojs/demos/hello_world/index.html
  24. 0 lib/{ → pinf-loader-js}/bravojs/demos/index.html
  25. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/console.js
  26. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/index.html
  27. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/absolute/b.js
  28. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/absolute/program.js
  29. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/absolute/submodule/a.js
  30. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/absolute/test.js
  31. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/cyclic/a.js
  32. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/cyclic/b.js
  33. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/cyclic/program.js
  34. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/cyclic/test.js
  35. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/determinism/program.js
  36. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/determinism/submodule/a.js
  37. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/determinism/submodule/b.js
  38. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/determinism/test.js
  39. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/exactExports/a.js
  40. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/exactExports/program.js
  41. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/exactExports/test.js
  42. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/hasOwnProperty/hasOwnProperty.js
  43. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/hasOwnProperty/program.js
  44. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/hasOwnProperty/test.js
  45. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/hasOwnProperty/toString.js
  46. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/method/a.js
  47. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/method/program.js
  48. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/method/test.js
  49. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/missing/program.js
  50. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/missing/test.js
  51. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/monkeys/a.js
  52. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/monkeys/program.js
  53. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/monkeys/test.js
  54. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/nested/a/b/c/d.js
  55. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/nested/program.js
  56. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/nested/test.js
  57. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/relative/program.js
  58. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/relative/submodule/a.js
  59. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/relative/submodule/b.js
  60. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/relative/test.js
  61. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/transitive/a.js
  62. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/transitive/b.js
  63. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/transitive/c.js
  64. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/transitive/program.js
  65. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/1.0/transitive/test.js
  66. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/absolute/b.js
  67. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/absolute/program.js
  68. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/absolute/submodule/a.js
  69. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/absolute/test.js
  70. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/cyclic/a.js
  71. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/cyclic/b.js
  72. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/cyclic/program.js
  73. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/cyclic/test.js
  74. BIN lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/.program.jsc
  75. BIN lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/.test.jsc
  76. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/program.js
  77. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/real.js
  78. BIN lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/submodule/.a.jsc
  79. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/submodule/a.js
  80. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/submodule/b.js
  81. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/determinism/test.js
  82. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/exactExports/a.js
  83. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/exactExports/program.js
  84. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/exactExports/test.js
  85. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/hasOwnProperty/hasOwnProperty.js
  86. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/hasOwnProperty/program.js
  87. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/hasOwnProperty/test.js
  88. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/hasOwnProperty/toString.js
  89. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/method/a.js
  90. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/method/program.js
  91. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/method/test.js
  92. BIN lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/missing/.program.jsc
  93. BIN lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/missing/.test.jsc
  94. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/missing/program.js
  95. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/missing/test.js
  96. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/monkeys/a.js
  97. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/monkeys/program.js
  98. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/monkeys/test.js
  99. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/nested/a/b/c/d.js
  100. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/nested/program.js
  101. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/nested/test.js
  102. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/relative/program.js
  103. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/relative/submodule/a.js
  104. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/relative/submodule/b.js
  105. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/relative/test.js
  106. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/transitive/a.js
  107. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/transitive/b.js
  108. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/transitive/c.js
  109. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/transitive/program.js
  110. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/modules/2.0/transitive/test.js
  111. 0 lib/{ → pinf-loader-js}/bravojs/demos/iojs_tests/tests/unit-testing/1.0/program.js
  112. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/index.html
  113. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/modules/helper.js
  114. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/modules/submodule.js
  115. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package1-dir/lib/main.js
  116. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package1-dir/lib/package1.js
  117. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package1-dir/package.json
  118. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package2-dir/lib/package2.js
  119. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package2-dir/package.json
  120. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package3-dir/lib-dir/package3.js
  121. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package3-dir/package.json
  122. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package4-dir/lib-dir/main.js
  123. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package4-dir/package.json
  124. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package5-dir/lib-dir/main.js
  125. 0 lib/{ → pinf-loader-js}/bravojs/demos/mappings/package5-dir/package.json
  126. 0 lib/{ → pinf-loader-js}/bravojs/demos/math/operations.js
  127. 0 lib/{ → pinf-loader-js}/bravojs/global-es5.js
  128. 0 lib/{ → pinf-loader-js}/bravojs/plugins/fastload/README
  129. 0 lib/{ → pinf-loader-js}/bravojs/plugins/fastload/fastload.js
  130. 0 lib/{ → pinf-loader-js}/bravojs/plugins/fastload/fastload.sh
  131. 0 lib/{ → pinf-loader-js}/bravojs/plugins/fastload/gpsee_fastload.js
  132. 0 lib/{ → pinf-loader-js}/bravojs/plugins/fastload/mmap.js
  133. 0 lib/{ → pinf-loader-js}/bravojs/plugins/jquery-loader/README
  134. 0 lib/{ → pinf-loader-js}/bravojs/plugins/jquery-loader/jquery-loader.js
  135. 0 lib/{ → pinf-loader-js}/bravojs/plugins/packages/loader.js
  136. 0 lib/{ → pinf-loader-js}/bravojs/plugins/packages/packages.js
  137. 0 lib/{ → pinf-loader-js}/bravojs/plugins/wonkoll/README
  138. 0 lib/{ → pinf-loader-js}/bravojs/plugins/wonkoll/wonkoll.js
  139. 0 lib/{ → pinf-loader-js}/descriptors.js
  140. 0 lib/{ → pinf-loader-js}/downloader.js
  141. 0 lib/{ → pinf-loader-js}/loader.js
  142. 0 lib/{ → pinf-loader-js}/modules/pinf/loader.js
  143. +4 −4 lib/{ → pinf-loader-js}/modules/pinf/program-server.js
  144. 0 lib/{ → pinf-loader-js}/modules/pinf/protocol-handler.js
  145. 0 lib/{ → pinf-loader-js}/package.js
  146. 0 lib/{ → pinf-loader-js}/platform/jetpack/light-traits.js
  147. 0 lib/{ → pinf-loader-js}/platform/jetpack/protocol.js
  148. 0 lib/{ → pinf-loader-js}/program.js
  149. 0 lib/{ → pinf-loader-js}/sandbox.js
  150. 0 lib/{ → pinf-loader-js}/sha1.js
  151. 0 lib/{ → pinf-loader-js}/term.js
  152. 0 lib/{ → pinf-loader-js}/util.js
  153. +7 −2 package.json
  154. +1 −1 pinf-loader
  155. +1 −1 pinf-loader.js
  156. +1 −1 programs/bundle-loader/main.js
View
@@ -15,7 +15,7 @@
"id": "pinf.org/loader"
},
"jsgi": {
- "archive": "https://github.com/kriszyp/jsgi-node/zipball/v0.2.3"
+ "archive": "https://github.com/kriszyp/jsgi-node/zipball/master"
},
"paperboy": {
"archive": "https://github.com/felixge/node-paperboy/zipball/master"
View
@@ -11,7 +11,7 @@
},
"github.com/ajaxorg/ace/zipball/master": {
},
- "github.com/kriszyp/jsgi-node/zipball/v0.2.3": {
+ "github.com/kriszyp/jsgi-node/zipball/master": {
"locator": {
"descriptor": {
"native": true
View
@@ -9,7 +9,7 @@ module.declare(["paperboy/paperboy", "nodejs/path", "nodejs/http", "pinf/loader"
// Config options
var port = 8003,
- docroot = PATH.dirname(PATH.dirname(PATH.dirname(module.id))) + "/lib/bravojs";
+ docroot = PATH.dirname(PATH.dirname(PATH.dirname(module.id))) + "/lib/pinf-loader-js/bravojs";
exports.main = function()
{
Binary file not shown.
@@ -6075,16 +6075,16 @@ JSGI.prototype.respond = function(request, callback)
// Pull in BravoJS and plugins
- path = API.ENV.loaderRoot + "/lib/bravojs/global-es5.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/global-es5.js";
body.push(API.FILE.read(path));
- path = API.ENV.loaderRoot + "/lib/bravojs/bravo.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/bravo.js";
body.push(API.FILE.read(path));
- path = API.ENV.loaderRoot + "/lib/bravojs/plugins/packages/packages.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/plugins/packages/packages.js";
body.push(API.FILE.read(path));
- path = API.ENV.loaderRoot + "/lib/bravojs/plugins/packages/loader.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/plugins/packages/loader.js";
body.push(API.FILE.read(path));
// Memoize modules
@@ -3,12 +3,12 @@
"packages": {
"registry/hostname/path/package1/": {
"locator": {
- "location": "../../lib/bravojs/demos/mappings/package1-dir/"
+ "location": "../../lib/pinf-loader-js/bravojs/demos/mappings/package1-dir/"
}
},
"registry/hostname/path/package4/": {
"locator": {
- "location": "../../lib/bravojs/demos/mappings/package4-dir/",
+ "location": "../../lib/pinf-loader-js/bravojs/demos/mappings/package4-dir/",
"descriptor": {
"uid": "http://registry/hostname/path/package4/"
}
@@ -21,7 +21,7 @@
},
"registry/hostname/path/catalog.json/package3/": {
"locator": {
- "location": "../../lib/bravojs/demos/mappings/package3-dir/"
+ "location": "../../lib/pinf-loader-js/bravojs/demos/mappings/package3-dir/"
}
}
}
@@ -12,7 +12,7 @@
"id": "pinf.org/loader"
},
"jsgi": {
- "archive": "https://github.com/kriszyp/jsgi-node/zipball/v0.2.3"
+ "archive": "https://github.com/kriszyp/jsgi-node/zipball/master"
},
"paperboy": {
"archive": "https://github.com/felixge/node-paperboy/zipball/master"
@@ -6,7 +6,7 @@
"location": "./"
}
},
- "github.com/kriszyp/jsgi-node/zipball/v0.2.3": {
+ "github.com/kriszyp/jsgi-node/zipball/master": {
"locator": {
"descriptor": {
"native": true
@@ -9,7 +9,7 @@
},
"mappings": {
"jsgi": {
- "archive": "https://github.com/kriszyp/jsgi-node/zipball/v0.2.3"
+ "archive": "https://github.com/kriszyp/jsgi-node/zipball/master"
},
"pinf": {
"id": "pinf.org/loader"
@@ -6,7 +6,7 @@
"location": "./"
}
},
- "github.com/kriszyp/jsgi-node/zipball/v0.2.3": {
+ "github.com/kriszyp/jsgi-node/zipball/master": {
"locator": {
"descriptor": {
"native": true
File renamed without changes.
@@ -18,7 +18,7 @@ exports.init = function(api)
HTTP_CLIENT = api.ENV.platformRequire("http-client");
- api.ENV.loaderRoot = FILE.dirname(FILE.dirname(FILE.dirname(module.id)));
+ api.ENV.loaderRoot = FILE.dirname(FILE.dirname(FILE.dirname(FILE.dirname(module.id))));
api.ENV.packageProviders["narwhaljs.org"] = {
requireModule: function(id)
@@ -16,14 +16,15 @@ exports.init = function(api)
FS = api.ENV.platformRequire("fs"),
URL = api.ENV.platformRequire("url"),
HTTP = api.ENV.platformRequire("http"),
+ HTTPS = api.ENV.platformRequire("https"),
PATH = api.ENV.platformRequire("path"),
EXEC = api.ENV.platformRequire('child_process').exec,
SPAWN = api.ENV.platformRequire('child_process').spawn;
// process = provided by nodejs as a global
// JSON = provided by nodejs as a global
- api.ENV.loaderRoot = PATH.dirname(PATH.dirname(PATH.dirname(__filename)));
+ api.ENV.loaderRoot = PATH.dirname(PATH.dirname(PATH.dirname(PATH.dirname(__filename))));
api.ENV.packageProviders["nodejs.org"] = {
requireModule: function(id)
@@ -132,18 +133,8 @@ exports.init = function(api)
{
var urlInfo = URL.parse(url);
var port = ((urlInfo.port)?urlInfo.port:((urlInfo.protocol=="https:")?443:80));
- var httpClient = HTTP.createClient(port, urlInfo.hostname, (port==443));
- httpClient.addListener('error', function (error)
- {
- console.log(error);
- });
-
- var request = httpClient.request('GET', urlInfo.pathname, {
- "host": urlInfo.hostname
- });
-
- request.addListener('response', function (response)
+ function handleResponse(response)
{
if (response.statusCode == 302 || response.statusCode == 301)
{
@@ -166,8 +157,24 @@ exports.init = function(api)
file.end();
});
}
+ }
+
+ var options = {
+ host: urlInfo.hostname,
+ port: port,
+ path: urlInfo.pathname
+ };
+
+ var request;
+ if (port == 443)
+ request = HTTPS.get(options, handleResponse);
+ else
+ request = HTTP.get(options, handleResponse);
+
+ request.on('error', function (error)
+ {
+ console.log(error);
});
- request.end();
}
api.JSON.parse = JSON.parse;
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -332,16 +332,16 @@ JSGI.prototype.respond = function(request, callback)
// Pull in BravoJS and plugins
- path = API.ENV.loaderRoot + "/lib/bravojs/global-es5.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/global-es5.js";
body.push(API.FILE.read(path));
- path = API.ENV.loaderRoot + "/lib/bravojs/bravo.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/bravo.js";
body.push(API.FILE.read(path));
- path = API.ENV.loaderRoot + "/lib/bravojs/plugins/packages/packages.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/plugins/packages/packages.js";
body.push(API.FILE.read(path));
- path = API.ENV.loaderRoot + "/lib/bravojs/plugins/packages/loader.js";
+ path = API.ENV.loaderRoot + "/lib/pinf-loader-js/bravojs/plugins/packages/loader.js";
body.push(API.FILE.read(path));
// Memoize modules
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
View
@@ -1,8 +1,10 @@
{
"uid": "http://registry.pinf.org/pinf.org/github/loader-js/",
- "name": "loader-js",
+ "name": "pinf-loader-js",
+ "version": "0.0.1",
"label": "CommonJS Module Loader",
"description": "Versatile & Complete Cross-Platform CommonJS JavaScript Module, Package & Program Loader",
+ "homepage": "https://github.com/pinf/loader-js",
"repositories": [
{
"type": "git",
@@ -21,5 +23,8 @@
"type": "MIT",
"url": "http://www.opensource.org/licenses/mit-license.php"
}
- ]
+ ],
+ "directories": {
+ "lib": "lib/pinf-loader-js"
+ }
}
View
@@ -1,3 +1,3 @@
#! /usr/bin/env commonjs
-require("./lib/loader").boot();
+require("./lib/pinf-loader-js/loader").boot();
View
@@ -1,2 +1,2 @@
-require("./lib/loader").boot();
+require("./lib/pinf-loader-js/loader").boot();
@@ -21,7 +21,7 @@ exports.main = function(env)
if (outputPath.charAt(0) != "/")
outputPath = process.cwd() + "/" + outputPath;
- var files = SCANNER.scan(PATH.dirname(PATH.dirname(PATH.dirname(module.id))) + "/lib", {
+ var files = SCANNER.scan(PATH.dirname(PATH.dirname(PATH.dirname(module.id))) + "/lib/pinf-loader-js", {
platform: platform
});

0 comments on commit 7b72304

Please sign in to comment.