@adviser/cement 0.2.33 → 0.2.35
Sign up to get free protection for your applications and to get access to all the features.
- package/index.cjs +98 -32
- package/index.cjs.map +1 -1
- package/index.d.cts +10 -6
- package/index.d.ts +10 -6
- package/index.js +98 -31
- package/index.js.map +1 -1
- package/package.json +1 -1
- package/src/jsr.json +1 -1
- package/src/logger-impl.ts +51 -4
- package/src/logger.ts +47 -16
- package/src/uri.ts +54 -28
- package/src/utils/stripper.ts +11 -4
- package/ts/logger-impl.d.ts +2 -0
- package/ts/logger-impl.d.ts.map +1 -1
- package/ts/logger-impl.js +49 -4
- package/ts/logger-impl.js.map +1 -1
- package/ts/logger.d.ts +2 -1
- package/ts/logger.d.ts.map +1 -1
- package/ts/logger.js +23 -15
- package/ts/logger.js.map +1 -1
- package/ts/logger.test.js +175 -0
- package/ts/logger.test.js.map +1 -1
- package/ts/uri.d.ts +5 -4
- package/ts/uri.d.ts.map +1 -1
- package/ts/uri.js +24 -12
- package/ts/uri.js.map +1 -1
- package/ts/uri.test.js +50 -0
- package/ts/uri.test.js.map +1 -1
- package/ts/utils/stripper.d.ts +1 -1
- package/ts/utils/stripper.d.ts.map +1 -1
- package/ts/utils/stripper.js +3 -0
- package/ts/utils/stripper.js.map +1 -1
- package/ts/utils/stripper.test.js +31 -0
- package/ts/utils/stripper.test.js.map +1 -1
package/ts/uri.test.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"uri.test.js","sourceRoot":"","sources":["../../src/uri.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAiB,UAAU,EAAiB,GAAG,EAAE,MAAM,iBAAiB,CAAC;AAE1F,QAAQ,CAAC,UAAU,EAAE,GAAG,EAAE;IACxB,IAAI,GAAa,CAAC;IAClB,UAAU,CAAC,GAAG,EAAE;QACd,GAAG,GAAG,QAAQ,CAAC,IAAI,CAAC,IAAI,UAAU,CAAC,oBAAoB,CAAC,CAAC,CAAC;QAC1D,GAAG,CAAC,QAAQ,CAAC,SAAS,C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AI,CAAC,sDAAsD,CAAC;KACtE,EAAE,CAAC;QACF,EAAE,CAAC,oBAAoB,GAAG,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,GAAG,EAAE;YAClD,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;YAChD,YAAY,CAAC,OAAO,CAAC,CAAC,aAAa,EAAU,CAAC;YAC9C,MAAM,OAAO,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;YACrC,YAAY,CAAC,OAAO,CAAC,CAAC,aAAa,EAAsB,CAAC;YAE1D,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACxD,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,EAAE,CAAC;YACzC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACzC,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACtD,CAAC,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,CAAC"}
|
package/ts/utils/stripper.d.ts
CHANGED
@@ -1,3 +1,3 @@
|
|
1
1
|
export type StripCommand = string | RegExp;
|
2
|
-
export declare function stripper<T
|
2
|
+
export declare function stripper<T extends unknown | ArrayLike<unknown>>(strip: StripCommand | StripCommand[], obj: T): T extends ArrayLike<unknown> ? Record<string, unknown>[] : Record<string, unknown>;
|
3
3
|
//# sourceMappingURL=stripper.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stripper.d.ts","sourceRoot":"","sources":["../../../src/utils/stripper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C,wBAAgB,QAAQ,CAAC,CAAC,
|
1
|
+
{"version":3,"file":"stripper.d.ts","sourceRoot":"","sources":["../../../src/utils/stripper.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,MAAM,CAAC;AAE3C,wBAAgB,QAAQ,CAAC,CAAC,SAAS,OAAO,GAAG,SAAS,CAAC,OAAO,CAAC,EAC7D,KAAK,EAAE,YAAY,GAAG,YAAY,EAAE,EACpC,GAAG,EAAE,CAAC,GACL,CAAC,SAAS,SAAS,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAYpF"}
|
package/ts/utils/stripper.js
CHANGED
@@ -13,6 +13,9 @@ function localStripper(path, restrips, obj) {
|
|
13
13
|
if (typeof obj !== "object" || obj === null) {
|
14
14
|
return obj;
|
15
15
|
}
|
16
|
+
if (Array.isArray(obj)) {
|
17
|
+
return obj.map((i) => localStripper(path, restrips, i));
|
18
|
+
}
|
16
19
|
const ret = Object.assign({}, obj);
|
17
20
|
const matcher = (key, nextPath) => {
|
18
21
|
for (const re of restrips) {
|
package/ts/utils/stripper.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stripper.js","sourceRoot":"","sources":["../../../src/utils/stripper.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,QAAQ,
|
1
|
+
{"version":3,"file":"stripper.js","sourceRoot":"","sources":["../../../src/utils/stripper.ts"],"names":[],"mappings":"AAEA,MAAM,UAAU,QAAQ,CACtB,KAAoC,EACpC,GAAM;IAEN,MAAM,MAAM,GAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,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98
|
+
const plain = stripper(["main"], { main: "main" });
|
99
|
+
expectTypeOf(plain).toEqualTypeOf();
|
100
|
+
const aplain = stripper(["main"], [{ main: "main" }]);
|
101
|
+
expectTypeOf(aplain).toEqualTypeOf();
|
102
|
+
});
|
103
|
+
it("array top level stripper", () => {
|
104
|
+
expect(stripper(["main"], [
|
105
|
+
{ o: 1, main: "main" },
|
106
|
+
{ o: 2, main: "main" },
|
107
|
+
[
|
108
|
+
{ o: 3, main: "main" },
|
109
|
+
{ o: 4, main: "main" },
|
110
|
+
],
|
111
|
+
])).toEqual([
|
112
|
+
{
|
113
|
+
o: 1,
|
114
|
+
},
|
115
|
+
{
|
116
|
+
o: 2,
|
117
|
+
},
|
118
|
+
[
|
119
|
+
{
|
120
|
+
o: 3,
|
121
|
+
},
|
122
|
+
{
|
123
|
+
o: 4,
|
124
|
+
},
|
125
|
+
],
|
126
|
+
]);
|
127
|
+
});
|
97
128
|
//# sourceMappingURL=stripper.test.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"stripper.test.js","sourceRoot":"","sources":["../../../src/utils/stripper.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAEzC,MAAM,OAAO,GAAG;IACd,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,MAAM;IACZ,MAAM,EAAE;QACN,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,MAAM;QACZ,MAAM,EAAE;YACN,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;SACb;KACF;IACD,MAAM,EAAE;QACN,MAAM;QACN,MAAM;QACN;YACE,IAAI,EAAE,MAAM;YACZ,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE;gBACN,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,MAAM;aACb;SACF;KACF;CACF,CAAC;AACF,EAAE,CAAC,gBAAgB,EAAE,GAAG,EAAE;IACxB,MAAM,CAAC,QAAQ,CAAC,EAAE,EA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