decoders 2.2.0-test → 2.2.0-test3
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/index.cjs +193 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +63 -5
- package/dist/index.d.ts +63 -5
- package/dist/index.js +177 -13
- package/dist/index.js.map +1 -1
- package/package.json +16 -100
- package/dist/annotate-0PUmWHxH.d.cts +0 -33
- package/dist/annotate-0PUmWHxH.d.ts +0 -33
- package/dist/chunk-2C72BP5L.cjs +0 -179
- package/dist/chunk-2C72BP5L.cjs.map +0 -1
- package/dist/chunk-BPSZE2VX.js +0 -13
- package/dist/chunk-BPSZE2VX.js.map +0 -1
- package/dist/chunk-Q3YXBCTD.cjs +0 -13
- package/dist/chunk-Q3YXBCTD.cjs.map +0 -1
- package/dist/chunk-RUMDX66L.js +0 -179
- package/dist/chunk-RUMDX66L.js.map +0 -1
- package/dist/format.cjs +0 -13
- package/dist/format.cjs.map +0 -1
- package/dist/format.d.cts +0 -9
- package/dist/format.d.ts +0 -9
- package/dist/format.js +0 -13
- package/dist/format.js.map +0 -1
- package/dist/result.cjs +0 -9
- package/dist/result.cjs.map +0 -1
- package/dist/result.d.cts +0 -26
- package/dist/result.d.ts +0 -26
- package/dist/result.js +0 -9
- package/dist/result.js.map +0 -1
- package/format.cjs +0 -13
- package/result.cjs +0 -9
package/dist/format.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk2C72BP5Lcjs = require('./chunk-2C72BP5L.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.formatInline = _chunk2C72BP5Lcjs.formatInline; exports.formatShort = _chunk2C72BP5Lcjs.formatShort; exports.serializeAnnotation = _chunk2C72BP5Lcjs.serializeAnnotation; exports.serializeValue = _chunk2C72BP5Lcjs.serializeValue;
|
|
13
|
-
//# sourceMappingURL=format.cjs.map
|
package/dist/format.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/format.d.cts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { A as Annotation } from './annotate-0PUmWHxH.cjs';
|
|
2
|
-
|
|
3
|
-
type Formatter = (err: Annotation) => string | Error;
|
|
4
|
-
declare function serializeValue(value: unknown): string;
|
|
5
|
-
declare function serializeAnnotation(ann: Annotation, prefix?: string): [string, string | undefined];
|
|
6
|
-
declare function formatInline(ann: Annotation): string;
|
|
7
|
-
declare function formatShort(ann: Annotation): string;
|
|
8
|
-
|
|
9
|
-
export { type Formatter, formatInline, formatShort, serializeAnnotation, serializeValue };
|
package/dist/format.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { A as Annotation } from './annotate-0PUmWHxH.js';
|
|
2
|
-
|
|
3
|
-
type Formatter = (err: Annotation) => string | Error;
|
|
4
|
-
declare function serializeValue(value: unknown): string;
|
|
5
|
-
declare function serializeAnnotation(ann: Annotation, prefix?: string): [string, string | undefined];
|
|
6
|
-
declare function formatInline(ann: Annotation): string;
|
|
7
|
-
declare function formatShort(ann: Annotation): string;
|
|
8
|
-
|
|
9
|
-
export { type Formatter, formatInline, formatShort, serializeAnnotation, serializeValue };
|
package/dist/format.js
DELETED
package/dist/format.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/dist/result.cjs
DELETED
package/dist/result.cjs.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":""}
|
package/dist/result.d.cts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Result <value> <error>
|
|
3
|
-
* = Ok <value>
|
|
4
|
-
* | Err <error>
|
|
5
|
-
*/
|
|
6
|
-
type Ok<T> = {
|
|
7
|
-
readonly ok: true;
|
|
8
|
-
readonly value: T;
|
|
9
|
-
readonly error?: never;
|
|
10
|
-
};
|
|
11
|
-
type Err<E> = {
|
|
12
|
-
readonly ok: false;
|
|
13
|
-
readonly value?: never;
|
|
14
|
-
readonly error: E;
|
|
15
|
-
};
|
|
16
|
-
type Result<T, E> = Ok<T> | Err<E>;
|
|
17
|
-
/**
|
|
18
|
-
* Create a new Result instance representing a successful computation.
|
|
19
|
-
*/
|
|
20
|
-
declare function ok<T>(value: T): Ok<T>;
|
|
21
|
-
/**
|
|
22
|
-
* Create a new Result instance representing a failed computation.
|
|
23
|
-
*/
|
|
24
|
-
declare function err<E>(error: E): Err<E>;
|
|
25
|
-
|
|
26
|
-
export { type Err, type Ok, type Result, err, ok };
|
package/dist/result.d.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Result <value> <error>
|
|
3
|
-
* = Ok <value>
|
|
4
|
-
* | Err <error>
|
|
5
|
-
*/
|
|
6
|
-
type Ok<T> = {
|
|
7
|
-
readonly ok: true;
|
|
8
|
-
readonly value: T;
|
|
9
|
-
readonly error?: never;
|
|
10
|
-
};
|
|
11
|
-
type Err<E> = {
|
|
12
|
-
readonly ok: false;
|
|
13
|
-
readonly value?: never;
|
|
14
|
-
readonly error: E;
|
|
15
|
-
};
|
|
16
|
-
type Result<T, E> = Ok<T> | Err<E>;
|
|
17
|
-
/**
|
|
18
|
-
* Create a new Result instance representing a successful computation.
|
|
19
|
-
*/
|
|
20
|
-
declare function ok<T>(value: T): Ok<T>;
|
|
21
|
-
/**
|
|
22
|
-
* Create a new Result instance representing a failed computation.
|
|
23
|
-
*/
|
|
24
|
-
declare function err<E>(error: E): Err<E>;
|
|
25
|
-
|
|
26
|
-
export { type Err, type Ok, type Result, err, ok };
|
package/dist/result.js
DELETED
package/dist/result.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
package/format.cjs
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunk2C72BP5Lcjs = require('./chunk-2C72BP5L.cjs');
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
exports.formatInline = _chunk2C72BP5Lcjs.formatInline; exports.formatShort = _chunk2C72BP5Lcjs.formatShort; exports.serializeAnnotation = _chunk2C72BP5Lcjs.serializeAnnotation; exports.serializeValue = _chunk2C72BP5Lcjs.serializeValue;
|
|
13
|
-
//# sourceMappingURL=format.cjs.map
|
package/result.cjs
DELETED