Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorForrest L Norvell <forrest@npmjs.com>2015-12-11 06:22:07 +0300
committerForrest L Norvell <forrest@npmjs.com>2015-12-11 07:00:04 +0300
commitb835b72d1dd23b0a17321a85d8d395322d18005d (patch)
tree21cd38b3c1717f1936bdbd14b0b135a15205e4b2 /node_modules/semver/semver.js
parent95e99faadcdc85a16210dd79c0e7d83add1b9f3e (diff)
semver@5.1.0
Add BNF grammar to documentation. Credit: @isaacs Reviewed-By: @othiym23
Diffstat (limited to 'node_modules/semver/semver.js')
-rw-r--r--node_modules/semver/semver.js12
1 files changed, 0 insertions, 12 deletions
diff --git a/node_modules/semver/semver.js b/node_modules/semver/semver.js
index 19392d8ff..71795f6f0 100644
--- a/node_modules/semver/semver.js
+++ b/node_modules/semver/semver.js
@@ -332,10 +332,6 @@ SemVer.prototype.format = function() {
return this.version;
};
-SemVer.prototype.inspect = function() {
- return '<SemVer "' + this + '">';
-};
-
SemVer.prototype.toString = function() {
return this.version;
};
@@ -692,10 +688,6 @@ Comparator.prototype.parse = function(comp) {
this.semver = new SemVer(m[2], this.loose);
};
-Comparator.prototype.inspect = function() {
- return '<SemVer Comparator "' + this + '">';
-};
-
Comparator.prototype.toString = function() {
return this.value;
};
@@ -739,10 +731,6 @@ function Range(range, loose) {
this.format();
}
-Range.prototype.inspect = function() {
- return '<SemVer Range "' + this.range + '">';
-};
-
Range.prototype.format = function() {
this.range = this.set.map(function(comps) {
return comps.join(' ').trim();