@robinpath/assert 0.1.0
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/assert.d.ts +204 -0
- package/dist/assert.d.ts.map +1 -0
- package/dist/assert.js +153 -0
- package/dist/assert.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -0
- package/package.json +13 -0
package/dist/assert.d.ts
ADDED
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
import type { BuiltinHandler } from "@wiredwp/robinpath";
|
|
2
|
+
export declare const AssertFunctions: Record<string, BuiltinHandler>;
|
|
3
|
+
export declare const AssertFunctionMetadata: {
|
|
4
|
+
equal: {
|
|
5
|
+
description: string;
|
|
6
|
+
parameters: {
|
|
7
|
+
name: string;
|
|
8
|
+
dataType: string;
|
|
9
|
+
description: string;
|
|
10
|
+
formInputType: string;
|
|
11
|
+
required: boolean;
|
|
12
|
+
}[];
|
|
13
|
+
returnType: string;
|
|
14
|
+
returnDescription: string;
|
|
15
|
+
example: string;
|
|
16
|
+
};
|
|
17
|
+
notEqual: {
|
|
18
|
+
description: string;
|
|
19
|
+
parameters: {
|
|
20
|
+
name: string;
|
|
21
|
+
dataType: string;
|
|
22
|
+
description: string;
|
|
23
|
+
formInputType: string;
|
|
24
|
+
required: boolean;
|
|
25
|
+
}[];
|
|
26
|
+
returnType: string;
|
|
27
|
+
returnDescription: string;
|
|
28
|
+
example: string;
|
|
29
|
+
};
|
|
30
|
+
deepEqual: {
|
|
31
|
+
description: string;
|
|
32
|
+
parameters: {
|
|
33
|
+
name: string;
|
|
34
|
+
dataType: string;
|
|
35
|
+
description: string;
|
|
36
|
+
formInputType: string;
|
|
37
|
+
required: boolean;
|
|
38
|
+
}[];
|
|
39
|
+
returnType: string;
|
|
40
|
+
returnDescription: string;
|
|
41
|
+
example: string;
|
|
42
|
+
};
|
|
43
|
+
truthy: {
|
|
44
|
+
description: string;
|
|
45
|
+
parameters: {
|
|
46
|
+
name: string;
|
|
47
|
+
dataType: string;
|
|
48
|
+
description: string;
|
|
49
|
+
formInputType: string;
|
|
50
|
+
required: boolean;
|
|
51
|
+
}[];
|
|
52
|
+
returnType: string;
|
|
53
|
+
returnDescription: string;
|
|
54
|
+
example: string;
|
|
55
|
+
};
|
|
56
|
+
falsy: {
|
|
57
|
+
description: string;
|
|
58
|
+
parameters: {
|
|
59
|
+
name: string;
|
|
60
|
+
dataType: string;
|
|
61
|
+
description: string;
|
|
62
|
+
formInputType: string;
|
|
63
|
+
required: boolean;
|
|
64
|
+
}[];
|
|
65
|
+
returnType: string;
|
|
66
|
+
returnDescription: string;
|
|
67
|
+
example: string;
|
|
68
|
+
};
|
|
69
|
+
isNull: {
|
|
70
|
+
description: string;
|
|
71
|
+
parameters: {
|
|
72
|
+
name: string;
|
|
73
|
+
dataType: string;
|
|
74
|
+
description: string;
|
|
75
|
+
formInputType: string;
|
|
76
|
+
required: boolean;
|
|
77
|
+
}[];
|
|
78
|
+
returnType: string;
|
|
79
|
+
returnDescription: string;
|
|
80
|
+
example: string;
|
|
81
|
+
};
|
|
82
|
+
isNotNull: {
|
|
83
|
+
description: string;
|
|
84
|
+
parameters: {
|
|
85
|
+
name: string;
|
|
86
|
+
dataType: string;
|
|
87
|
+
description: string;
|
|
88
|
+
formInputType: string;
|
|
89
|
+
required: boolean;
|
|
90
|
+
}[];
|
|
91
|
+
returnType: string;
|
|
92
|
+
returnDescription: string;
|
|
93
|
+
example: string;
|
|
94
|
+
};
|
|
95
|
+
isType: {
|
|
96
|
+
description: string;
|
|
97
|
+
parameters: {
|
|
98
|
+
name: string;
|
|
99
|
+
dataType: string;
|
|
100
|
+
description: string;
|
|
101
|
+
formInputType: string;
|
|
102
|
+
required: boolean;
|
|
103
|
+
}[];
|
|
104
|
+
returnType: string;
|
|
105
|
+
returnDescription: string;
|
|
106
|
+
example: string;
|
|
107
|
+
};
|
|
108
|
+
includes: {
|
|
109
|
+
description: string;
|
|
110
|
+
parameters: {
|
|
111
|
+
name: string;
|
|
112
|
+
dataType: string;
|
|
113
|
+
description: string;
|
|
114
|
+
formInputType: string;
|
|
115
|
+
required: boolean;
|
|
116
|
+
}[];
|
|
117
|
+
returnType: string;
|
|
118
|
+
returnDescription: string;
|
|
119
|
+
example: string;
|
|
120
|
+
};
|
|
121
|
+
matches: {
|
|
122
|
+
description: string;
|
|
123
|
+
parameters: {
|
|
124
|
+
name: string;
|
|
125
|
+
dataType: string;
|
|
126
|
+
description: string;
|
|
127
|
+
formInputType: string;
|
|
128
|
+
required: boolean;
|
|
129
|
+
}[];
|
|
130
|
+
returnType: string;
|
|
131
|
+
returnDescription: string;
|
|
132
|
+
example: string;
|
|
133
|
+
};
|
|
134
|
+
throws: {
|
|
135
|
+
description: string;
|
|
136
|
+
parameters: {
|
|
137
|
+
name: string;
|
|
138
|
+
dataType: string;
|
|
139
|
+
description: string;
|
|
140
|
+
formInputType: string;
|
|
141
|
+
required: boolean;
|
|
142
|
+
}[];
|
|
143
|
+
returnType: string;
|
|
144
|
+
returnDescription: string;
|
|
145
|
+
example: string;
|
|
146
|
+
};
|
|
147
|
+
lengthOf: {
|
|
148
|
+
description: string;
|
|
149
|
+
parameters: {
|
|
150
|
+
name: string;
|
|
151
|
+
dataType: string;
|
|
152
|
+
description: string;
|
|
153
|
+
formInputType: string;
|
|
154
|
+
required: boolean;
|
|
155
|
+
}[];
|
|
156
|
+
returnType: string;
|
|
157
|
+
returnDescription: string;
|
|
158
|
+
example: string;
|
|
159
|
+
};
|
|
160
|
+
hasProperty: {
|
|
161
|
+
description: string;
|
|
162
|
+
parameters: {
|
|
163
|
+
name: string;
|
|
164
|
+
dataType: string;
|
|
165
|
+
description: string;
|
|
166
|
+
formInputType: string;
|
|
167
|
+
required: boolean;
|
|
168
|
+
}[];
|
|
169
|
+
returnType: string;
|
|
170
|
+
returnDescription: string;
|
|
171
|
+
example: string;
|
|
172
|
+
};
|
|
173
|
+
isAbove: {
|
|
174
|
+
description: string;
|
|
175
|
+
parameters: {
|
|
176
|
+
name: string;
|
|
177
|
+
dataType: string;
|
|
178
|
+
description: string;
|
|
179
|
+
formInputType: string;
|
|
180
|
+
required: boolean;
|
|
181
|
+
}[];
|
|
182
|
+
returnType: string;
|
|
183
|
+
returnDescription: string;
|
|
184
|
+
example: string;
|
|
185
|
+
};
|
|
186
|
+
isBelow: {
|
|
187
|
+
description: string;
|
|
188
|
+
parameters: {
|
|
189
|
+
name: string;
|
|
190
|
+
dataType: string;
|
|
191
|
+
description: string;
|
|
192
|
+
formInputType: string;
|
|
193
|
+
required: boolean;
|
|
194
|
+
}[];
|
|
195
|
+
returnType: string;
|
|
196
|
+
returnDescription: string;
|
|
197
|
+
example: string;
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export declare const AssertModuleMetadata: {
|
|
201
|
+
description: string;
|
|
202
|
+
methods: string[];
|
|
203
|
+
};
|
|
204
|
+
//# sourceMappingURL=assert.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../src/assert.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAoC,MAAM,oBAAoB,CAAC;AAsH3F,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,cAAc,CAE1D,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBlC,CAAC;AAEF,eAAO,MAAM,oBAAoB;;;CAGhC,CAAC"}
|
package/dist/assert.js
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
function deepEqual(a, b) {
|
|
2
|
+
if (a === b)
|
|
3
|
+
return true;
|
|
4
|
+
if (a == null || b == null)
|
|
5
|
+
return false;
|
|
6
|
+
if (typeof a !== typeof b)
|
|
7
|
+
return false;
|
|
8
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
9
|
+
if (a.length !== b.length)
|
|
10
|
+
return false;
|
|
11
|
+
return a.every((val, i) => deepEqual(val, b[i]));
|
|
12
|
+
}
|
|
13
|
+
if (typeof a === "object" && typeof b === "object") {
|
|
14
|
+
const keysA = Object.keys(a);
|
|
15
|
+
const keysB = Object.keys(b);
|
|
16
|
+
if (keysA.length !== keysB.length)
|
|
17
|
+
return false;
|
|
18
|
+
return keysA.every((key) => deepEqual(a[key], b[key]));
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
const equal = (args) => {
|
|
23
|
+
if (args[0] !== args[1])
|
|
24
|
+
throw new Error(`Expected ${JSON.stringify(args[0])} to equal ${JSON.stringify(args[1])}`);
|
|
25
|
+
return true;
|
|
26
|
+
};
|
|
27
|
+
const notEqual = (args) => {
|
|
28
|
+
if (args[0] === args[1])
|
|
29
|
+
throw new Error(`Expected values to not be equal: ${JSON.stringify(args[0])}`);
|
|
30
|
+
return true;
|
|
31
|
+
};
|
|
32
|
+
const deepEqualHandler = (args) => {
|
|
33
|
+
if (!deepEqual(args[0], args[1]))
|
|
34
|
+
throw new Error(`Expected deep equality.\nActual: ${JSON.stringify(args[0])}\nExpected: ${JSON.stringify(args[1])}`);
|
|
35
|
+
return true;
|
|
36
|
+
};
|
|
37
|
+
const truthy = (args) => {
|
|
38
|
+
if (!args[0])
|
|
39
|
+
throw new Error(`Expected truthy value, got: ${JSON.stringify(args[0])}`);
|
|
40
|
+
return true;
|
|
41
|
+
};
|
|
42
|
+
const falsy = (args) => {
|
|
43
|
+
if (args[0])
|
|
44
|
+
throw new Error(`Expected falsy value, got: ${JSON.stringify(args[0])}`);
|
|
45
|
+
return true;
|
|
46
|
+
};
|
|
47
|
+
const isNull = (args) => {
|
|
48
|
+
if (args[0] != null)
|
|
49
|
+
throw new Error(`Expected null/undefined, got: ${JSON.stringify(args[0])}`);
|
|
50
|
+
return true;
|
|
51
|
+
};
|
|
52
|
+
const isNotNull = (args) => {
|
|
53
|
+
if (args[0] == null)
|
|
54
|
+
throw new Error("Expected non-null value, got null/undefined");
|
|
55
|
+
return true;
|
|
56
|
+
};
|
|
57
|
+
const isType = (args) => {
|
|
58
|
+
const actual = typeof args[0];
|
|
59
|
+
const expected = String(args[1] ?? "");
|
|
60
|
+
if (actual !== expected)
|
|
61
|
+
throw new Error(`Expected type "${expected}", got "${actual}"`);
|
|
62
|
+
return true;
|
|
63
|
+
};
|
|
64
|
+
const includes = (args) => {
|
|
65
|
+
const haystack = args[0];
|
|
66
|
+
const needle = args[1];
|
|
67
|
+
if (typeof haystack === "string") {
|
|
68
|
+
if (!haystack.includes(String(needle)))
|
|
69
|
+
throw new Error(`Expected string to include "${needle}"`);
|
|
70
|
+
}
|
|
71
|
+
else if (Array.isArray(haystack)) {
|
|
72
|
+
if (!haystack.includes(needle))
|
|
73
|
+
throw new Error(`Expected array to include ${JSON.stringify(needle)}`);
|
|
74
|
+
}
|
|
75
|
+
else {
|
|
76
|
+
throw new Error("First argument must be a string or array");
|
|
77
|
+
}
|
|
78
|
+
return true;
|
|
79
|
+
};
|
|
80
|
+
const matches = (args) => {
|
|
81
|
+
const str = String(args[0] ?? "");
|
|
82
|
+
const pattern = new RegExp(String(args[1] ?? ""));
|
|
83
|
+
if (!pattern.test(str))
|
|
84
|
+
throw new Error(`Expected "${str}" to match pattern ${pattern}`);
|
|
85
|
+
return true;
|
|
86
|
+
};
|
|
87
|
+
const throws = (args) => {
|
|
88
|
+
const fn = args[0];
|
|
89
|
+
if (typeof fn === "function") {
|
|
90
|
+
try {
|
|
91
|
+
fn();
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
catch {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
throw new Error("First argument must be a function");
|
|
99
|
+
};
|
|
100
|
+
const lengthOf = (args) => {
|
|
101
|
+
const value = args[0];
|
|
102
|
+
const expected = Number(args[1]);
|
|
103
|
+
const actual = typeof value === "string" ? value.length : Array.isArray(value) ? value.length : -1;
|
|
104
|
+
if (actual !== expected)
|
|
105
|
+
throw new Error(`Expected length ${expected}, got ${actual}`);
|
|
106
|
+
return true;
|
|
107
|
+
};
|
|
108
|
+
const hasProperty = (args) => {
|
|
109
|
+
const obj = args[0];
|
|
110
|
+
const prop = String(args[1] ?? "");
|
|
111
|
+
if (!obj || typeof obj !== "object" || !(prop in obj))
|
|
112
|
+
throw new Error(`Expected object to have property "${prop}"`);
|
|
113
|
+
return true;
|
|
114
|
+
};
|
|
115
|
+
const isAbove = (args) => {
|
|
116
|
+
const value = Number(args[0]);
|
|
117
|
+
const threshold = Number(args[1]);
|
|
118
|
+
if (value <= threshold)
|
|
119
|
+
throw new Error(`Expected ${value} to be above ${threshold}`);
|
|
120
|
+
return true;
|
|
121
|
+
};
|
|
122
|
+
const isBelow = (args) => {
|
|
123
|
+
const value = Number(args[0]);
|
|
124
|
+
const threshold = Number(args[1]);
|
|
125
|
+
if (value >= threshold)
|
|
126
|
+
throw new Error(`Expected ${value} to be below ${threshold}`);
|
|
127
|
+
return true;
|
|
128
|
+
};
|
|
129
|
+
export const AssertFunctions = {
|
|
130
|
+
equal, notEqual, deepEqual: deepEqualHandler, truthy, falsy, isNull, isNotNull, isType, includes, matches, throws, lengthOf, hasProperty, isAbove, isBelow,
|
|
131
|
+
};
|
|
132
|
+
export const AssertFunctionMetadata = {
|
|
133
|
+
equal: { description: "Assert two values are strictly equal (===)", parameters: [{ name: "actual", dataType: "any", description: "Actual value", formInputType: "text", required: true }, { name: "expected", dataType: "any", description: "Expected value", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if equal, throws otherwise", example: "assert.equal $a $b" },
|
|
134
|
+
notEqual: { description: "Assert two values are not equal", parameters: [{ name: "actual", dataType: "any", description: "Actual value", formInputType: "text", required: true }, { name: "expected", dataType: "any", description: "Value to not match", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if not equal", example: "assert.notEqual $a $b" },
|
|
135
|
+
deepEqual: { description: "Assert deep equality of two values", parameters: [{ name: "actual", dataType: "any", description: "Actual value", formInputType: "json", required: true }, { name: "expected", dataType: "any", description: "Expected value", formInputType: "json", required: true }], returnType: "boolean", returnDescription: "True if deeply equal", example: "assert.deepEqual $obj1 $obj2" },
|
|
136
|
+
truthy: { description: "Assert value is truthy", parameters: [{ name: "value", dataType: "any", description: "Value to check", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if truthy", example: "assert.truthy $val" },
|
|
137
|
+
falsy: { description: "Assert value is falsy", parameters: [{ name: "value", dataType: "any", description: "Value to check", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if falsy", example: "assert.falsy $val" },
|
|
138
|
+
isNull: { description: "Assert value is null or undefined", parameters: [{ name: "value", dataType: "any", description: "Value to check", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if null/undefined", example: "assert.isNull $val" },
|
|
139
|
+
isNotNull: { description: "Assert value is not null/undefined", parameters: [{ name: "value", dataType: "any", description: "Value to check", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if not null", example: "assert.isNotNull $val" },
|
|
140
|
+
isType: { description: "Assert typeof value matches expected type", parameters: [{ name: "value", dataType: "any", description: "Value to check", formInputType: "text", required: true }, { name: "type", dataType: "string", description: "Expected type string", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if type matches", example: 'assert.isType $val "string"' },
|
|
141
|
+
includes: { description: "Assert array/string includes a value", parameters: [{ name: "haystack", dataType: "any", description: "Array or string to search", formInputType: "text", required: true }, { name: "needle", dataType: "any", description: "Value to find", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if includes", example: 'assert.includes "hello" "ell"' },
|
|
142
|
+
matches: { description: "Assert string matches a regex pattern", parameters: [{ name: "str", dataType: "string", description: "String to test", formInputType: "text", required: true }, { name: "pattern", dataType: "string", description: "Regex pattern", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if matches", example: 'assert.matches "hello" "^h"' },
|
|
143
|
+
throws: { description: "Assert that a function throws", parameters: [{ name: "fn", dataType: "string", description: "Function to call", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if throws", example: "assert.throws $fn" },
|
|
144
|
+
lengthOf: { description: "Assert array/string has specific length", parameters: [{ name: "value", dataType: "any", description: "Array or string", formInputType: "text", required: true }, { name: "length", dataType: "number", description: "Expected length", formInputType: "number", required: true }], returnType: "boolean", returnDescription: "True if length matches", example: "assert.lengthOf $arr 3" },
|
|
145
|
+
hasProperty: { description: "Assert object has a specific property", parameters: [{ name: "obj", dataType: "object", description: "Object to check", formInputType: "json", required: true }, { name: "property", dataType: "string", description: "Property name", formInputType: "text", required: true }], returnType: "boolean", returnDescription: "True if has property", example: 'assert.hasProperty $obj "name"' },
|
|
146
|
+
isAbove: { description: "Assert number is above threshold", parameters: [{ name: "value", dataType: "number", description: "Number to check", formInputType: "number", required: true }, { name: "threshold", dataType: "number", description: "Threshold", formInputType: "number", required: true }], returnType: "boolean", returnDescription: "True if above", example: "assert.isAbove 5 3" },
|
|
147
|
+
isBelow: { description: "Assert number is below threshold", parameters: [{ name: "value", dataType: "number", description: "Number to check", formInputType: "number", required: true }, { name: "threshold", dataType: "number", description: "Threshold", formInputType: "number", required: true }], returnType: "boolean", returnDescription: "True if below", example: "assert.isBelow 3 5" },
|
|
148
|
+
};
|
|
149
|
+
export const AssertModuleMetadata = {
|
|
150
|
+
description: "Testing assertions: equal, deepEqual, truthy, falsy, type checks, includes, matches, throws, and more",
|
|
151
|
+
methods: ["equal", "notEqual", "deepEqual", "truthy", "falsy", "isNull", "isNotNull", "isType", "includes", "matches", "throws", "lengthOf", "hasProperty", "isAbove", "isBelow"],
|
|
152
|
+
};
|
|
153
|
+
//# sourceMappingURL=ass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AAQ,EAAE,QAAQ,EAAE,WAAW,EAAE,WAAW,EAAE,aAAa,EAAE,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,UAAU,EAAE,SAAS,EAAE,iBAAiB,EAAE,eAAe,EAAE,OAAO,EAAE,oBAAoB,EAAE;CACnY,CAAC;AAEF,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,WAAW,EAAE,uGAAuG;IACpH,OAAO,EAAE,CAAC,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,aAAa,EAAE,SAAS,EAAE,SAAS,CAAC;CAClL,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ModuleAdapter } from "@wiredwp/robinpath";
|
|
2
|
+
declare const AssertModule: ModuleAdapter;
|
|
3
|
+
export default AssertModule;
|
|
4
|
+
export { AssertModule };
|
|
5
|
+
export { AssertFunctions, AssertFunctionMetadata, AssertModuleMetadata } from "./assert.js";
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAGxD,QAAA,MAAM,YAAY,EAAE,aAMnB,CAAC;AAEF,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AssertFunctions, AssertFunctionMetadata, AssertModuleMetadata } from "./assert.js";
|
|
2
|
+
const AssertModule = {
|
|
3
|
+
name: "assert",
|
|
4
|
+
functions: AssertFunctions,
|
|
5
|
+
functionMetadata: AssertFunctionMetadata,
|
|
6
|
+
moduleMetadata: AssertModuleMetadata,
|
|
7
|
+
global: false,
|
|
8
|
+
}; // as ModuleAdapter
|
|
9
|
+
export default AssertModule;
|
|
10
|
+
export { AssertModule };
|
|
11
|
+
export { AssertFunctions, AssertFunctionMetadata, AssertModuleMetadata } from "./assert.js";
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAE5F,MAAM,YAAY,GAAkB;IAClC,IAAI,EAAE,QAAQ;IACd,SAAS,EAAE,eAAe;IAC1B,gBAAgB,EAAE,sBAA6B;IAC/C,cAAc,EAAE,oBAA2B;IAC3C,MAAM,EAAE,KAAK;CACd,CAAC,CAAC,mBAAmB;AAEtB,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@robinpath/assert",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"publishConfig": { "access": "public" },
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": { ".": { "import": "./dist/index.js", "types": "./dist/index.d.ts" } },
|
|
9
|
+
"files": ["dist"],
|
|
10
|
+
"scripts": { "build": "tsc", "test": "node --import tsx --test tests/*.test.ts" },
|
|
11
|
+
"peerDependencies": { "@wiredwp/robinpath": ">=0.20.0" },
|
|
12
|
+
"devDependencies": { "@wiredwp/robinpath": "^0.30.1", "tsx": "^4.19.0", "typescript": "^5.6.0" }
|
|
13
|
+
}
|