Comparing version 0.1.4 to 0.1.5
@@ -15,5 +15,7 @@ var fs = require("fs") | ||
var pkg = grunt.file.readJSON('package.json'); | ||
grunt.initConfig({ | ||
pkg: grunt.file.readJSON('package.json'), | ||
pkg: pkg, | ||
@@ -42,3 +44,4 @@ browserify: { | ||
data: { | ||
texts: texts | ||
texts: texts, | ||
pkg: pkg | ||
} | ||
@@ -45,0 +48,0 @@ }, |
@@ -21,8 +21,2 @@ "use strict"; | ||
this.out = []; | ||
this.selector = {}; | ||
this.blockIndent = 0; | ||
this.options = require("extend")(true, {}, defaults.options, options); | ||
@@ -32,3 +26,3 @@ | ||
this.inline.out = this.out; | ||
this.reset(); | ||
@@ -35,0 +29,0 @@ }; |
@@ -19,6 +19,6 @@ "use strict"; | ||
this.out = []; | ||
this.options = require("extend")(true, {}, defaults.options, options); | ||
this.reset(); | ||
}; | ||
@@ -25,0 +25,0 @@ |
"use strict"; | ||
var extend = require("extend"); | ||
/* # Generic character sequence walker | ||
@@ -368,20 +370,22 @@ | ||
SubWalker.prototype = new Walker; | ||
SubWalker.prototype = extend({}, new Walker, { | ||
SubWalker.prototype.charAt = function(i) { | ||
if (i >= this.length) | ||
return ""; | ||
return this.source.charAt(this.start + i); | ||
}; | ||
charAt: function(i) { | ||
if (i >= this.length) | ||
return ""; | ||
return this.source.charAt(this.start + i); | ||
}, | ||
SubWalker.prototype.substring = function(s, e) { | ||
if (typeof(e) == 'undefined') | ||
e = this.length; | ||
return this.source.substring(this.start + s, this.start + e); | ||
}; | ||
substring: function(s, e) { | ||
if (typeof(e) == 'undefined') | ||
e = this.length; | ||
return this.source.substring(this.start + s, this.start + e); | ||
}, | ||
SubWalker.prototype.toString = function() { | ||
return this.source.substring(this.start, this.end); | ||
}; | ||
toString: function() { | ||
return this.source.substring(this.start, this.end); | ||
} | ||
}); | ||
/* # Multi sequence walker | ||
@@ -414,17 +418,19 @@ | ||
MultiWalker.prototype = new Walker; | ||
MultiWalker.prototype = extend({}, new Walker, { | ||
MultiWalker.prototype.charAt = function(idx) { | ||
return this.string.charAt(idx); | ||
}; | ||
charAt: function(idx) { | ||
return this.string.charAt(idx); | ||
}, | ||
MultiWalker.prototype.substring = function(s, e) { | ||
if (this.regions.length == 0) | ||
return ""; | ||
return this.string.substring(s, e); | ||
}; | ||
substring: function(s, e) { | ||
if (this.regions.length == 0) | ||
return ""; | ||
return this.string.substring(s, e); | ||
}, | ||
MultiWalker.prototype.toString = function() { | ||
return this.string; | ||
}; | ||
toString: function() { | ||
return this.string; | ||
} | ||
}); | ||
{ | ||
"name": "rho", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Easy-to-{read,write,understand} semantic markup language for Node", | ||
@@ -5,0 +5,0 @@ "author": "Boris Okunskiy <boris@okunskiy.name>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2194956
86
8915
5
16