@sapphire/lexure
Advanced tools
Comparing version 1.0.0 to 1.0.1-next.14ddf5f.0
@@ -94,2 +94,5 @@ "use strict"; | ||
} | ||
mapInto(cb) { | ||
return cb(this.value); | ||
} | ||
mapOr(_, cb) { | ||
@@ -104,2 +107,5 @@ return cb(this.value); | ||
} | ||
mapErrInto() { | ||
return this; | ||
} | ||
inspect(cb) { | ||
@@ -211,2 +217,5 @@ cb(this.value); | ||
} | ||
mapInto(cb) { | ||
return cb(this.value); | ||
} | ||
mapOr(_, cb) { | ||
@@ -218,2 +227,5 @@ return cb(this.value); | ||
} | ||
mapNoneInto() { | ||
return this; | ||
} | ||
inspect(cb) { | ||
@@ -317,2 +329,5 @@ cb(this.value); | ||
} | ||
mapInto() { | ||
return this; | ||
} | ||
mapOr(defaultValue) { | ||
@@ -327,2 +342,5 @@ return defaultValue; | ||
} | ||
mapErrInto(cb) { | ||
return cb(this.error); | ||
} | ||
inspect() { | ||
@@ -431,2 +449,5 @@ return this; | ||
} | ||
mapInto() { | ||
return this; | ||
} | ||
mapOr(defaultValue) { | ||
@@ -438,2 +459,5 @@ return defaultValue; | ||
} | ||
mapNoneInto(cb) { | ||
return cb(); | ||
} | ||
inspect() { | ||
@@ -440,0 +464,0 @@ return this; |
{ | ||
"name": "@sapphire/lexure", | ||
"version": "1.0.0", | ||
"version": "1.0.1-next.14ddf5f.0", | ||
"description": "Parser and utilities for non-technical user input", | ||
@@ -60,3 +60,3 @@ "author": "@sapphire", | ||
"dependencies": { | ||
"@sapphire/result": "^2.0.1" | ||
"@sapphire/result": "^2.1.0" | ||
}, | ||
@@ -63,0 +63,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
258929
2658
0
1
Updated@sapphire/result@^2.1.0