@logtape/redaction 0.11.0-dev.174 → 0.12.0-dev.181
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/deno.json +34 -0
- package/dist/field.cjs +101 -0
- package/dist/field.d.cts +88 -0
- package/dist/field.d.cts.map +1 -0
- package/{types → dist}/field.d.ts +29 -33
- package/dist/field.d.ts.map +1 -0
- package/dist/field.js +100 -0
- package/dist/field.js.map +1 -0
- package/dist/mod.cjs +11 -0
- package/dist/mod.d.cts +3 -0
- package/dist/mod.d.ts +3 -0
- package/dist/mod.js +4 -0
- package/dist/pattern.cjs +75 -0
- package/dist/pattern.d.cts +126 -0
- package/dist/pattern.d.cts.map +1 -0
- package/{types → dist}/pattern.d.ts +27 -21
- package/dist/pattern.d.ts.map +1 -0
- package/dist/pattern.js +70 -0
- package/dist/pattern.js.map +1 -0
- package/field.test.ts +217 -0
- package/field.ts +164 -0
- package/mod.ts +8 -0
- package/package.json +28 -25
- package/pattern.test.ts +351 -0
- package/pattern.ts +209 -0
- package/tsdown.config.ts +11 -0
- package/esm/field.js +0 -112
- package/esm/mod.js +0 -2
- package/esm/package.json +0 -3
- package/esm/pattern.js +0 -84
- package/script/field.js +0 -118
- package/script/mod.js +0 -21
- package/script/package.json +0 -3
- package/script/pattern.js +0 -88
- package/types/_dnt.test_shims.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/_constants.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/_diff.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/_format.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert_equals.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert_exists.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert_false.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert_is_error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert_match.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assert_throws.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/assertion_error.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/assert/0.222.1/equal.d.ts.map +0 -1
- package/types/deps/jsr.io/@std/fmt/0.222.1/colors.d.ts.map +0 -1
- package/types/field.d.ts.map +0 -1
- package/types/field.test.d.ts.map +0 -1
- package/types/mod.d.ts +0 -3
- package/types/mod.d.ts.map +0 -1
- package/types/pattern.d.ts.map +0 -1
- package/types/pattern.test.d.ts.map +0 -1
package/esm/pattern.js
DELETED
|
@@ -1,84 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* A redaction pattern for email addresses.
|
|
3
|
-
* @since 0.10.0
|
|
4
|
-
*/
|
|
5
|
-
export const EMAIL_ADDRESS_PATTERN = {
|
|
6
|
-
pattern: /[\p{L}0-9.!#$%&'*+/=?^_`{|}~-]+@[\p{L}0-9](?:[\p{L}0-9-]{0,61}[\p{L}0-9])?(?:\.[\p{L}0-9](?:[\p{L}0-9-]{0,61}[\p{L}0-9])?)+/gu,
|
|
7
|
-
replacement: "REDACTED@EMAIL.ADDRESS",
|
|
8
|
-
};
|
|
9
|
-
/**
|
|
10
|
-
* A redaction pattern for credit card numbers (including American Express).
|
|
11
|
-
* @since 0.10.0
|
|
12
|
-
*/
|
|
13
|
-
export const CREDIT_CARD_NUMBER_PATTERN = {
|
|
14
|
-
pattern: /(?:\d{4}-){3}\d{4}|(?:\d{4}-){2}\d{6}/g,
|
|
15
|
-
replacement: "XXXX-XXXX-XXXX-XXXX",
|
|
16
|
-
};
|
|
17
|
-
/**
|
|
18
|
-
* A redaction pattern for U.S. Social Security numbers.
|
|
19
|
-
* @since 0.10.0
|
|
20
|
-
*/
|
|
21
|
-
export const US_SSN_PATTERN = {
|
|
22
|
-
pattern: /\d{3}-\d{2}-\d{4}/g,
|
|
23
|
-
replacement: "XXX-XX-XXXX",
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* A redaction pattern for South Korean resident registration numbers
|
|
27
|
-
* (住民登錄番號).
|
|
28
|
-
* @since 0.10.0
|
|
29
|
-
*/
|
|
30
|
-
export const KR_RRN_PATTERN = {
|
|
31
|
-
pattern: /\d{6}-\d{7}/g,
|
|
32
|
-
replacement: "XXXXXX-XXXXXXX",
|
|
33
|
-
};
|
|
34
|
-
/**
|
|
35
|
-
* A redaction pattern for JSON Web Tokens (JWT).
|
|
36
|
-
* @since 0.10.0
|
|
37
|
-
*/
|
|
38
|
-
export const JWT_PATTERN = {
|
|
39
|
-
pattern: /eyJ[a-zA-Z0-9_-]*\.[a-zA-Z0-9_-]*\.[a-zA-Z0-9_-]*/g,
|
|
40
|
-
replacement: "[JWT REDACTED]",
|
|
41
|
-
};
|
|
42
|
-
export function redactByPattern(formatter, patterns) {
|
|
43
|
-
for (const { pattern } of patterns) {
|
|
44
|
-
if (!pattern.global) {
|
|
45
|
-
throw new TypeError(`Pattern ${pattern} does not have the global flag set.`);
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
function replaceString(str) {
|
|
49
|
-
for (const p of patterns) {
|
|
50
|
-
// The following ternary operator may seem strange, but it's for
|
|
51
|
-
// making TypeScript happy:
|
|
52
|
-
str = typeof p.replacement === "string"
|
|
53
|
-
? str.replaceAll(p.pattern, p.replacement)
|
|
54
|
-
: str.replaceAll(p.pattern, p.replacement);
|
|
55
|
-
}
|
|
56
|
-
return str;
|
|
57
|
-
}
|
|
58
|
-
function replaceObject(object) {
|
|
59
|
-
if (typeof object === "string")
|
|
60
|
-
return replaceString(object);
|
|
61
|
-
else if (Array.isArray(object))
|
|
62
|
-
return object.map(replaceObject);
|
|
63
|
-
else if (typeof object === "object" && object !== null) {
|
|
64
|
-
// Check if object is a vanilla object:
|
|
65
|
-
if (Object.getPrototypeOf(object) === Object.prototype ||
|
|
66
|
-
Object.getPrototypeOf(object) === null) {
|
|
67
|
-
const redacted = {};
|
|
68
|
-
for (const key in object) {
|
|
69
|
-
redacted[key] =
|
|
70
|
-
// @ts-ignore: object always has key
|
|
71
|
-
replaceObject(object[key]);
|
|
72
|
-
}
|
|
73
|
-
return redacted;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
return object;
|
|
77
|
-
}
|
|
78
|
-
return (record) => {
|
|
79
|
-
const output = formatter(record);
|
|
80
|
-
if (typeof output === "string")
|
|
81
|
-
return replaceString(output);
|
|
82
|
-
return output.map(replaceObject);
|
|
83
|
-
};
|
|
84
|
-
}
|
package/script/field.js
DELETED
|
@@ -1,118 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DEFAULT_REDACT_FIELDS = void 0;
|
|
4
|
-
exports.redactByField = redactByField;
|
|
5
|
-
exports.redactProperties = redactProperties;
|
|
6
|
-
exports.shouldFieldRedacted = shouldFieldRedacted;
|
|
7
|
-
/**
|
|
8
|
-
* Default field patterns for redaction. These patterns will match
|
|
9
|
-
* common sensitive fields such as passwords, tokens, and personal
|
|
10
|
-
* information.
|
|
11
|
-
* @since 0.10.0
|
|
12
|
-
*/
|
|
13
|
-
exports.DEFAULT_REDACT_FIELDS = [
|
|
14
|
-
/pass(?:code|phrase|word)/i,
|
|
15
|
-
/secret/i,
|
|
16
|
-
/token/i,
|
|
17
|
-
/key/i,
|
|
18
|
-
/credential/i,
|
|
19
|
-
/auth/i,
|
|
20
|
-
/signature/i,
|
|
21
|
-
/sensitive/i,
|
|
22
|
-
/private/i,
|
|
23
|
-
/ssn/i,
|
|
24
|
-
/email/i,
|
|
25
|
-
/phone/i,
|
|
26
|
-
/address/i,
|
|
27
|
-
];
|
|
28
|
-
/**
|
|
29
|
-
* Redacts properties in a {@link LogRecord} based on the provided field
|
|
30
|
-
* patterns and action.
|
|
31
|
-
*
|
|
32
|
-
* Note that it is a decorator which wraps the sink and redacts properties
|
|
33
|
-
* before passing them to the sink.
|
|
34
|
-
*
|
|
35
|
-
* @example
|
|
36
|
-
* ```ts
|
|
37
|
-
* import { getConsoleSink } from "@logtape/logtape";
|
|
38
|
-
* import { redactByField } from "@logtape/redaction";
|
|
39
|
-
*
|
|
40
|
-
* const sink = redactByField(getConsoleSink());
|
|
41
|
-
* ```
|
|
42
|
-
*
|
|
43
|
-
* @param sink The sink to wrap.
|
|
44
|
-
* @param options The redaction options.
|
|
45
|
-
* @returns The wrapped sink.
|
|
46
|
-
* @since 0.10.0
|
|
47
|
-
*/
|
|
48
|
-
function redactByField(sink, options = exports.DEFAULT_REDACT_FIELDS) {
|
|
49
|
-
const opts = Array.isArray(options) ? { fieldPatterns: options } : options;
|
|
50
|
-
const wrapped = (record) => {
|
|
51
|
-
sink({ ...record, properties: redactProperties(record.properties, opts) });
|
|
52
|
-
};
|
|
53
|
-
if (Symbol.dispose in sink)
|
|
54
|
-
wrapped[Symbol.dispose] = sink[Symbol.dispose];
|
|
55
|
-
if (Symbol.asyncDispose in sink) {
|
|
56
|
-
wrapped[Symbol.asyncDispose] = sink[Symbol.asyncDispose];
|
|
57
|
-
}
|
|
58
|
-
return wrapped;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Redacts properties from an object based on specified field patterns.
|
|
62
|
-
*
|
|
63
|
-
* This function creates a shallow copy of the input object and applies
|
|
64
|
-
* redaction rules to its properties. For properties that match the redaction
|
|
65
|
-
* patterns, the function either removes them or transforms their values based
|
|
66
|
-
* on the provided action.
|
|
67
|
-
*
|
|
68
|
-
* The redaction process is recursive and will be applied to nested objects
|
|
69
|
-
* as well, allowing for deep redaction of sensitive data in complex object
|
|
70
|
-
* structures.
|
|
71
|
-
* @param properties The properties to redact.
|
|
72
|
-
* @param options The redaction options.
|
|
73
|
-
* @returns The redacted properties.
|
|
74
|
-
* @since 0.10.0
|
|
75
|
-
*/
|
|
76
|
-
function redactProperties(properties, options) {
|
|
77
|
-
const copy = { ...properties };
|
|
78
|
-
for (const field in copy) {
|
|
79
|
-
if (shouldFieldRedacted(field, options.fieldPatterns)) {
|
|
80
|
-
if (options.action == null || options.action === "delete") {
|
|
81
|
-
delete copy[field];
|
|
82
|
-
}
|
|
83
|
-
else {
|
|
84
|
-
copy[field] = options.action(copy[field]);
|
|
85
|
-
}
|
|
86
|
-
continue;
|
|
87
|
-
}
|
|
88
|
-
const value = copy[field];
|
|
89
|
-
// Check if value is a vanilla object:
|
|
90
|
-
if (typeof value === "object" && value !== null &&
|
|
91
|
-
(Object.getPrototypeOf(value) === Object.prototype ||
|
|
92
|
-
Object.getPrototypeOf(value) === null)) {
|
|
93
|
-
// @ts-ignore: value is always Record<string, unknown>
|
|
94
|
-
copy[field] = redactProperties(value, options);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
return copy;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Checks if a field should be redacted based on the provided field patterns.
|
|
101
|
-
* @param field The field name to check.
|
|
102
|
-
* @param fieldPatterns The field patterns to match against.
|
|
103
|
-
* @returns `true` if the field should be redacted, `false` otherwise.
|
|
104
|
-
* @since 0.10.0
|
|
105
|
-
*/
|
|
106
|
-
function shouldFieldRedacted(field, fieldPatterns) {
|
|
107
|
-
for (const fieldPattern of fieldPatterns) {
|
|
108
|
-
if (typeof fieldPattern === "string") {
|
|
109
|
-
if (fieldPattern === field)
|
|
110
|
-
return true;
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
if (fieldPattern.test(field))
|
|
114
|
-
return true;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return false;
|
|
118
|
-
}
|
package/script/mod.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.redactByField = exports.DEFAULT_REDACT_FIELDS = void 0;
|
|
18
|
-
var field_js_1 = require("./field.js");
|
|
19
|
-
Object.defineProperty(exports, "DEFAULT_REDACT_FIELDS", { enumerable: true, get: function () { return field_js_1.DEFAULT_REDACT_FIELDS; } });
|
|
20
|
-
Object.defineProperty(exports, "redactByField", { enumerable: true, get: function () { return field_js_1.redactByField; } });
|
|
21
|
-
__exportStar(require("./pattern.js"), exports);
|
package/script/package.json
DELETED
package/script/pattern.js
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.JWT_PATTERN = exports.KR_RRN_PATTERN = exports.US_SSN_PATTERN = exports.CREDIT_CARD_NUMBER_PATTERN = exports.EMAIL_ADDRESS_PATTERN = void 0;
|
|
4
|
-
exports.redactByPattern = redactByPattern;
|
|
5
|
-
/**
|
|
6
|
-
* A redaction pattern for email addresses.
|
|
7
|
-
* @since 0.10.0
|
|
8
|
-
*/
|
|
9
|
-
exports.EMAIL_ADDRESS_PATTERN = {
|
|
10
|
-
pattern: /[\p{L}0-9.!#$%&'*+/=?^_`{|}~-]+@[\p{L}0-9](?:[\p{L}0-9-]{0,61}[\p{L}0-9])?(?:\.[\p{L}0-9](?:[\p{L}0-9-]{0,61}[\p{L}0-9])?)+/gu,
|
|
11
|
-
replacement: "REDACTED@EMAIL.ADDRESS",
|
|
12
|
-
};
|
|
13
|
-
/**
|
|
14
|
-
* A redaction pattern for credit card numbers (including American Express).
|
|
15
|
-
* @since 0.10.0
|
|
16
|
-
*/
|
|
17
|
-
exports.CREDIT_CARD_NUMBER_PATTERN = {
|
|
18
|
-
pattern: /(?:\d{4}-){3}\d{4}|(?:\d{4}-){2}\d{6}/g,
|
|
19
|
-
replacement: "XXXX-XXXX-XXXX-XXXX",
|
|
20
|
-
};
|
|
21
|
-
/**
|
|
22
|
-
* A redaction pattern for U.S. Social Security numbers.
|
|
23
|
-
* @since 0.10.0
|
|
24
|
-
*/
|
|
25
|
-
exports.US_SSN_PATTERN = {
|
|
26
|
-
pattern: /\d{3}-\d{2}-\d{4}/g,
|
|
27
|
-
replacement: "XXX-XX-XXXX",
|
|
28
|
-
};
|
|
29
|
-
/**
|
|
30
|
-
* A redaction pattern for South Korean resident registration numbers
|
|
31
|
-
* (住民登錄番號).
|
|
32
|
-
* @since 0.10.0
|
|
33
|
-
*/
|
|
34
|
-
exports.KR_RRN_PATTERN = {
|
|
35
|
-
pattern: /\d{6}-\d{7}/g,
|
|
36
|
-
replacement: "XXXXXX-XXXXXXX",
|
|
37
|
-
};
|
|
38
|
-
/**
|
|
39
|
-
* A redaction pattern for JSON Web Tokens (JWT).
|
|
40
|
-
* @since 0.10.0
|
|
41
|
-
*/
|
|
42
|
-
exports.JWT_PATTERN = {
|
|
43
|
-
pattern: /eyJ[a-zA-Z0-9_-]*\.[a-zA-Z0-9_-]*\.[a-zA-Z0-9_-]*/g,
|
|
44
|
-
replacement: "[JWT REDACTED]",
|
|
45
|
-
};
|
|
46
|
-
function redactByPattern(formatter, patterns) {
|
|
47
|
-
for (const { pattern } of patterns) {
|
|
48
|
-
if (!pattern.global) {
|
|
49
|
-
throw new TypeError(`Pattern ${pattern} does not have the global flag set.`);
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
function replaceString(str) {
|
|
53
|
-
for (const p of patterns) {
|
|
54
|
-
// The following ternary operator may seem strange, but it's for
|
|
55
|
-
// making TypeScript happy:
|
|
56
|
-
str = typeof p.replacement === "string"
|
|
57
|
-
? str.replaceAll(p.pattern, p.replacement)
|
|
58
|
-
: str.replaceAll(p.pattern, p.replacement);
|
|
59
|
-
}
|
|
60
|
-
return str;
|
|
61
|
-
}
|
|
62
|
-
function replaceObject(object) {
|
|
63
|
-
if (typeof object === "string")
|
|
64
|
-
return replaceString(object);
|
|
65
|
-
else if (Array.isArray(object))
|
|
66
|
-
return object.map(replaceObject);
|
|
67
|
-
else if (typeof object === "object" && object !== null) {
|
|
68
|
-
// Check if object is a vanilla object:
|
|
69
|
-
if (Object.getPrototypeOf(object) === Object.prototype ||
|
|
70
|
-
Object.getPrototypeOf(object) === null) {
|
|
71
|
-
const redacted = {};
|
|
72
|
-
for (const key in object) {
|
|
73
|
-
redacted[key] =
|
|
74
|
-
// @ts-ignore: object always has key
|
|
75
|
-
replaceObject(object[key]);
|
|
76
|
-
}
|
|
77
|
-
return redacted;
|
|
78
|
-
}
|
|
79
|
-
}
|
|
80
|
-
return object;
|
|
81
|
-
}
|
|
82
|
-
return (record) => {
|
|
83
|
-
const output = formatter(record);
|
|
84
|
-
if (typeof output === "string")
|
|
85
|
-
return replaceString(output);
|
|
86
|
-
return output.map(replaceObject);
|
|
87
|
-
};
|
|
88
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_dnt.test_shims.d.ts","sourceRoot":"","sources":["../src/_dnt.test_shims.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AACvC,OAAO,EAAE,IAAI,EAAE,MAAM,iBAAiB,CAAC;AAKvC,eAAO,MAAM,aAAa;;CAA2C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_constants.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/_constants.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,eAAe,qBAAqB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_diff.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/_diff.ts"],"names":[],"mappings":"AAUA,eAAO,MAAM,QAAQ;;;;CAIX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,MAAM,OAAO,QAAQ,CAAC;AAE7C,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,IAAI,EAAE,QAAQ,CAAC;IACf,KAAK,EAAE,CAAC,CAAC;IACT,OAAO,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC;CAChC;AA4BD;;;;GAIG;AACH,wBAAgB,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CA+L5D;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,wBAsI3C;AAwCD,wBAAgB,YAAY,CAC1B,UAAU,EAAE,aAAa,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,EAC7C,EAAE,UAAkB,EAAE;;CAAK,GAC1B,MAAM,EAAE,CAyBV"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_format.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/_format.ts"],"names":[],"mappings":"AAYA,wBAAgB,MAAM,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,CAezC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;GAUG;AACH,wBAAgB,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,CAI5D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert_equals.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert_equals.ts"],"names":[],"mappings":"AASA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,QAAQ,EAAE,CAAC,EACX,GAAG,CAAC,EAAE,MAAM,EACZ,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,MAAM,CAAA;CAAO,QAuBzD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert_exists.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert_exists.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAC5B,MAAM,EAAE,CAAC,EACT,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,MAAM,IAAI,WAAW,CAAC,CAAC,CAAC,CAOlC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert_false.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert_false.ts"],"names":[],"mappings":"AAIA,uDAAuD;AACvD,MAAM,MAAM,KAAK,GAAG,KAAK,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,GAAG,SAAS,CAAC;AAE3D;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,GAAG,SAAK,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAI1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert_is_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert_is_error.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,CAAC,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACtC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,EAC5B,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC,KAAK,IAAI,CAAC,CAmCpB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert_match.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert_match.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,EAChB,GAAG,CAAC,EAAE,MAAM,QAOb"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assert_throws.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assert_throws.ts"],"names":[],"mappings":"AAKA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CAC1B,EAAE,EAAE,MAAM,OAAO,EACjB,GAAG,CAAC,EAAE,MAAM,GACX,OAAO,CAAC;AACX;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,KAAK,GAAG,KAAK,EAClD,EAAE,EAAE,MAAM,OAAO,EAEjB,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,EACrC,WAAW,CAAC,EAAE,MAAM,EACpB,GAAG,CAAC,EAAE,MAAM,GACX,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;GASG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC,iCAAiC;gBACrB,OAAO,EAAE,MAAM;CAI5B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/0.222.1/equal.ts"],"names":[],"mappings":"AAYA;;;;;;;;;;;;GAYG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA8FrD"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"colors.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/fmt/0.222.1/colors.ts"],"names":[],"mappings":"AAkEA,qEAAqE;AACrE,MAAM,WAAW,GAAG;IAClB,0BAA0B;IAC1B,CAAC,EAAE,MAAM,CAAC;IACV,4BAA4B;IAC5B,CAAC,EAAE,MAAM,CAAC;IACV,2BAA2B;IAC3B,CAAC,EAAE,MAAM,CAAC;CACX;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,QAM7C;AAED,4DAA4D;AAC5D,wBAAgB,eAAe,IAAI,OAAO,CAEzC;AA0BD;;;GAGG;AACH,wBAAgB,KAAK,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEzC;AAED;;;GAGG;AACH,wBAAgB,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAExC;AAED;;;;;;GAMG;AACH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvC;AAED;;;GAGG;AACH,wBAAgB,MAAM,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAE1C;AAED;;;GAGG;AACH,w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EAAE,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,EAAE,aAcnC,CAAC;AAEF;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC;;;;;OAKG;IACH,QAAQ,CAAC,aAAa,EAAE,aAAa,CAAC;IAEtC;;;;;;;;;OASG;IACH,QAAQ,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,CAAC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC,CAAC;CAC5D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,IAAI,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,GAAG,eAAe,EACvD,OAAO,GAAE,qBAAqB,GAAG,aAAqC,GACrE,IAAI,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,GAAG,eAAe,CAUnD;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,gBAAgB,CAC9B,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACnC,OAAO,EAAE,qBAAqB,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAuBzB;AAED;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,MAAM,EACb,aAAa,EAAE,aAAa,GAC3B,OAAO,CAST"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"field.test.d.ts","sourceRoot":"","sources":["../src/field.test.ts"],"names":[],"mappings":""}
|
package/types/mod.d.ts
DELETED
package/types/mod.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../src/mod.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,qBAAqB,EAC1B,aAAa,GACd,MAAM,YAAY,CAAC;AACpB,cAAc,cAAc,CAAC"}
|
package/types/pattern.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pattern.d.ts","sourceRoot":"","sources":["../src/pattern.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAEhB,aAAa,EACd,MAAM,kBAAkB,CAAC;AAE1B;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B;;;OAGG;IACH,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB;;;;OAIG;IACH,QAAQ,CAAC,WAAW,EAChB,MAAM,GAEN,CAAC,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,SAAS,GAAG,EAAE,KAAK,MAAM,CAAC,CAAC;CAC1D;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,gBAInC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,0BAA0B,EAAE,gBAGxC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,gBAG5B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,cAAc,EAAE,gBAG5B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,gBAGzB,CAAC;AAEF;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG,SAAS,gBAAgB,EAAE,CAAC;AAE5D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,aAAa,EACxB,QAAQ,EAAE,iBAAiB,GAC1B,aAAa,CAAC;AAEjB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,wBAAgB,eAAe,CAC7B,SAAS,EAAE,gBAAgB,EAC3B,QAAQ,EAAE,iBAAiB,GAC1B,gBAAgB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pattern.test.d.ts","sourceRoot":"","sources":["../src/pattern.test.ts"],"names":[],"mappings":""}
|