@tscircuit/footprinter 0.0.231 → 0.0.232
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.js +4 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7195,7 +7195,7 @@ var m2host = (raw_params) => {
|
|
|
7195
7195
|
|
|
7196
7196
|
// src/helpers/is-not-null.ts
|
|
7197
7197
|
function isNotNull(value) {
|
|
7198
|
-
return value !== null;
|
|
7198
|
+
return value !== null && value !== void 0;
|
|
7199
7199
|
}
|
|
7200
7200
|
|
|
7201
7201
|
// src/helpers/apply-origin.ts
|
|
@@ -7297,8 +7297,9 @@ var string2 = (def) => {
|
|
|
7297
7297
|
const modifiedDef = def.replace(/^((?:\d{4}|\d{5}))(?=$|_)/, "res$1");
|
|
7298
7298
|
const def_parts = modifiedDef.split(/_(?!metric)/).map((s) => {
|
|
7299
7299
|
const m = s.match(/([a-z]+)([\(\d\.\+\?].*)?/);
|
|
7300
|
-
|
|
7301
|
-
|
|
7300
|
+
if (!m) return null;
|
|
7301
|
+
const [, fn, v] = m;
|
|
7302
|
+
if (!fn || v?.includes("?")) return null;
|
|
7302
7303
|
return { fn, v };
|
|
7303
7304
|
}).filter(isNotNull);
|
|
7304
7305
|
for (const { fn, v } of def_parts) {
|