Skip to content
This repository

Update loader.js #65

Merged
merged 1 commit into from over 1 year ago

3 participants

Nate Cavanaugh Caridy Patino Dav Glass
Nate Cavanaugh

Node v0.10 no longer silently ignores non-string values, but throws an exception.

Nate Cavanaugh natecavanaugh Update loader.js
Node v0.10 no longer silently ignores non-string values, but throws an exception.
1b515c1
Caridy Patino
Owner

:+1:

Dav Glass davglass merged commit 122b3a4 into from
Dav Glass davglass closed this
Dav Glass
Owner

Published yogi@0.0.77

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Mar 22, 2013
Nate Cavanaugh natecavanaugh Update loader.js
Node v0.10 no longer silently ignores non-string values, but throws an exception.
1b515c1
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 4 additions and 3 deletions. Show diff stats Hide diff stats

  1. +4 3 lib/cmds/loader.js
7 lib/cmds/loader.js
@@ -130,15 +130,16 @@ mods = {
130 130 scan: function() {
131 131 var self = this,
132 132 dirs = fs.readdirSync(this.start),
133   - metaFiles = [];
  133 + metaFiles = [],
  134 + base = self.base || '';
134 135
135 136 dirs.forEach(function(d) {
136 137 if (self.strict) {
137   - if (!util.exists(path.join(self.base, d, 'build.json'))) {
  138 + if (!util.exists(path.join(base, d, 'build.json'))) {
138 139 return; //No build.json file, exclude this automatically
139 140 }
140 141 }
141   - var p = path.join(self.base, d, 'meta'),
  142 + var p = path.join(base, d, 'meta'),
142 143 files;
143 144 if (util.exists(p)) {
144 145 files = fs.readdirSync(p);

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.