resumon 1.0.15 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/resumon.umd.js +1 -1
- package/package.json +16 -16
package/dist/resumon.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var l=Object.defineProperty;var d=(r,e,n)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var o=(r,e,n)=>(d(r,typeof e!="symbol"?e+"":e,n),n);
|
|
1
|
+
(function(r,e){typeof exports=="object"&&typeof module!="undefined"?e(exports):typeof define=="function"&&define.amd?define(["exports"],e):(r=typeof globalThis!="undefined"?globalThis:r||self,e(r.resumon={}))})(this,function(r){"use strict";var l=Object.defineProperty;var d=(r,e,n)=>e in r?l(r,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):r[e]=n;var o=(r,e,n)=>(d(r,typeof e!="symbol"?e+"":e,n),n);class e extends Error{}class n{constructor(t){o(this,"isOk",!1);o(this,"isError",!0);this.error=t}get(){throw new e("Cannot get data or Err")}getOrElse(t){return t}getOrNull(){return null}getOrUndefined(){}getError(){return this.error}getErrorOrElse(){return this.error}getErrorOrNull(){return this.error}getErrorOrUndefined(){return this.error}andThen(){return this}map(){return this}mapError(t){return new n(t(this.error))}}function s(i){return new n(i)}class u{constructor(t){o(this,"isOk",!0);o(this,"isError",!1);this.data=t}get(){return this.data}getOrElse(){return this.data}getOrNull(){return this.data}getOrUndefined(){return this.data}getError(){throw new e("Cannot get error of Ok")}getErrorOrElse(t){return t}getErrorOrNull(){return null}getErrorOrUndefined(){}andThen(t){return t(this.data)}map(t){return new u(t(this.data))}mapError(){return this}}function a(i){return new u(i)}r.Err=n,r.IllegalStateError=e,r.Ok=u,r.err=s,r.ok=a,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "resumon",
|
|
3
3
|
"description": "A tiny TypeScript result monad.",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.18",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:DerYeger/resumon",
|
|
7
7
|
"homepage": "https://resumon.yeger.eu",
|
|
@@ -48,31 +48,31 @@
|
|
|
48
48
|
"types": "dist/types/main.d.ts",
|
|
49
49
|
"sideEffects": false,
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@commitlint/cli": "16.
|
|
52
|
-
"@commitlint/config-conventional": "16.2.
|
|
53
|
-
"@types/node": "16.11.
|
|
54
|
-
"@typescript-eslint/eslint-plugin": "5.
|
|
55
|
-
"@typescript-eslint/parser": "5.
|
|
56
|
-
"@vitest/ui": "0.
|
|
51
|
+
"@commitlint/cli": "16.3.0",
|
|
52
|
+
"@commitlint/config-conventional": "16.2.4",
|
|
53
|
+
"@types/node": "16.11.35",
|
|
54
|
+
"@typescript-eslint/eslint-plugin": "5.23.0",
|
|
55
|
+
"@typescript-eslint/parser": "5.23.0",
|
|
56
|
+
"@vitest/ui": "0.12.6",
|
|
57
57
|
"@vue/component-compiler-utils": "3.3.0",
|
|
58
58
|
"@vuepress/plugin-register-components": "1.9.7",
|
|
59
59
|
"c8": "7.11.2",
|
|
60
|
-
"eslint": "8.
|
|
60
|
+
"eslint": "8.15.0",
|
|
61
61
|
"eslint-config-prettier": "8.5.0",
|
|
62
62
|
"eslint-plugin-import": "2.26.0",
|
|
63
63
|
"eslint-plugin-prettier": "4.0.0",
|
|
64
64
|
"eslint-plugin-tsdoc": "0.2.16",
|
|
65
65
|
"eslint-plugin-unused-imports": "2.0.0",
|
|
66
|
-
"eslint-plugin-vue": "8.
|
|
67
|
-
"husky": "
|
|
68
|
-
"lint-staged": "12.4.
|
|
66
|
+
"eslint-plugin-vue": "8.7.1",
|
|
67
|
+
"husky": "8.0.1",
|
|
68
|
+
"lint-staged": "12.4.1",
|
|
69
69
|
"prettier": "2.6.2",
|
|
70
70
|
"rimraf": "3.0.2",
|
|
71
|
-
"typescript": "4.6.
|
|
72
|
-
"vite": "2.9.
|
|
73
|
-
"vite-plugin-dts": "1.1.
|
|
74
|
-
"vitest": "0.
|
|
75
|
-
"vuepress": "2.0.0-beta.
|
|
71
|
+
"typescript": "4.6.4",
|
|
72
|
+
"vite": "2.9.9",
|
|
73
|
+
"vite-plugin-dts": "1.1.1",
|
|
74
|
+
"vitest": "0.12.6",
|
|
75
|
+
"vuepress": "2.0.0-beta.45"
|
|
76
76
|
},
|
|
77
77
|
"publishConfig": {
|
|
78
78
|
"access": "public"
|