@sapphire/result
Advanced tools
Comparing version 2.7.0-next.4b7c3e6c to 2.7.0-next.bb6c8891
@@ -1053,2 +1053,5 @@ var SapphireResult = (function (exports) { | ||
} | ||
isNoneOr(cb) { | ||
return this.match({ some: /* @__PURE__ */ __name((value) => cb(value), "some"), none: /* @__PURE__ */ __name(() => true, "none") }); | ||
} | ||
/** | ||
@@ -1055,0 +1058,0 @@ * Returns the contained `Some` value. |
{ | ||
"name": "@sapphire/result", | ||
"version": "2.7.0-next.4b7c3e6c", | ||
"version": "2.7.0-next.bb6c8891", | ||
"description": "A TypeScript port of Nightly Rust's Result and Option structs", | ||
@@ -13,2 +13,3 @@ "author": "@sapphire", | ||
"exports": { | ||
"browser": "./dist/iife/index.global.js", | ||
"import": { | ||
@@ -21,4 +22,3 @@ "types": "./dist/esm/index.d.mts", | ||
"default": "./dist/cjs/index.cjs" | ||
}, | ||
"browser": "./dist/iife/index.global.js" | ||
} | ||
}, | ||
@@ -25,0 +25,0 @@ "sideEffects": false, |
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
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
617279
5665
0