Comparing version 2.0.1 to 2.0.2
@@ -558,3 +558,3 @@ /* | ||
var dependency = subconfig.mappings[prefix]; | ||
return config.loadPackage(subconfig.mappings[prefix], subconfig, loading); | ||
return config.loadPackage(dependency, subconfig, loading); | ||
})) | ||
@@ -709,3 +709,3 @@ .then(function () { | ||
//Deal with redirects | ||
// Deal with redirects | ||
var redirects = description.redirects; | ||
@@ -749,3 +749,3 @@ if (redirects !== void 0) { | ||
Object.keys(mappings).forEach(function (name) { | ||
var mapping = mappings[name] = normalizeDependency( | ||
mappings[name] = normalizeDependency( | ||
mappings[name], | ||
@@ -752,0 +752,0 @@ config, |
// This is the browser implementation for "mr/url", | ||
// redirected from "url" within the Mr package by the Montage Require | ||
// loader because of the "browser" redirects in package.json. | ||
// This is a very small subset of the Node.js URL module, suitable only for | ||
// resolving relative module identifiers relative to fully qualified base | ||
// URL’s. | ||
// Because Montage Require only needs this part of the URL module, a | ||
// very compact implementation is possible, teasing the necessary behavior out | ||
// of the browser's own URL resolution mechanism, even though at time of | ||
// writing, browsers do not provide an explicit JavaScript interface. | ||
// The implementation takes advantage of the "href" getter/setter on an "a" | ||
// (anchor) tag in the presence of a "base" tag on the document. | ||
// We either use an existing "base" tag or temporarily introduce a fake | ||
// "base" tag into the header of the page. | ||
// We then temporarily modify the "href" of the base tag to be the base URL | ||
// for the duration of a call to URL.resolve, to be the base URL argument. | ||
// We then apply the relative URL to the "href" setter of an anchor tag, | ||
// and read back the absolute URL from the "href" getter. | ||
// The browser guarantees that the "href" property will report the fully | ||
// qualified URL relative to the page's location, albeit its "base" location. | ||
var head = document.querySelector("head"), | ||
@@ -3,0 +26,0 @@ baseElement = document.createElement("base"), |
{ | ||
"name": "mr", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"publishConfig": { | ||
"tag": "future" | ||
}, | ||
"description": "A refresh-only CommonJS module system for browsers, used in Montage", | ||
@@ -34,3 +37,3 @@ "keywords": [ | ||
"test:node": "jasminum test", | ||
"test:phantom": "jasminum-phantom test", | ||
"test:phantom": "(cd node_modules/mr && jasminum-phantom test)", | ||
"lint": "jshint .", | ||
@@ -45,16 +48,16 @@ "integration": "MOP_VERSION=^0.13 MR_VERSION=. mop-integration" | ||
"dependencies": { | ||
"q": "^2.0.1", | ||
"optimist": "^0.6.1", | ||
"util": "^0.10.3", | ||
"colors": "^0.6.2", | ||
"istanbul": "^0.1.34" | ||
"q": ">=2.0.1 <3.0.0", | ||
"optimist": ">=0.6.1 <0.7.0", | ||
"util": ">=0.10.3 <0.11.0", | ||
"colors": ">=0.6.2 <0.7.0", | ||
"istanbul": ">=0.1.34 <0.2.0" | ||
}, | ||
"devDependencies": { | ||
"qs": "^0.6.5", | ||
"wd": "^0.1.5", | ||
"joey": "^2.0.1", | ||
"q-io": "^2.0.2", | ||
"jshint": "^2.3.0", | ||
"jasminum": "^2.0.1", | ||
"websocket.io": "^0.2.1", | ||
"qs": "0.6.6", | ||
"wd": ">=0.1.5 < 0.2.0", | ||
"joey": ">=2.0.1 <3.0.0", | ||
"q-io": ">=2.0.2 <3.0.0", | ||
"jshint": ">=2.3.0 <3.0.0", | ||
"jasminum": ">=2.0.4 <3.0.0", | ||
"websocket.io": ">=0.2.1 <0.3.0", | ||
"mop-integration": "git://github.com/montagejs/mop-integration.git#master" | ||
@@ -61,0 +64,0 @@ }, |
@@ -10,2 +10,6 @@ /* | ||
// This is the Node.js implementation for "mr". | ||
// For browsers, this module identifier is redirected to browser.js by | ||
// package.json. | ||
var Require = require("./common"); | ||
@@ -12,0 +16,0 @@ var Q = require("q"); |
Sorry, the diff of this file is too big to display
301617
7728
Updatedcolors@>=0.6.2 <0.7.0
Updatedistanbul@>=0.1.34 <0.2.0
Updatedoptimist@>=0.6.1 <0.7.0
Updatedq@>=2.0.1 <3.0.0
Updatedutil@>=0.10.3 <0.11.0