@powerhousedao/shared 6.0.0-dev.188 → 6.0.0-dev.190
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/clis/index.d.mts +11 -11
- package/dist/clis/index.d.mts.map +1 -1
- package/dist/clis/index.mjs +20 -9
- package/dist/clis/index.mjs.map +1 -1
- package/dist/document-drive/index.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/registry/index.d.ts +1 -1
- package/dist/{types-PMQAHMMh.d.ts → types-Dd4sfL9W.d.ts} +5 -1
- package/dist/{types-PMQAHMMh.d.ts.map → types-Dd4sfL9W.d.ts.map} +1 -1
- package/package.json +1 -1
package/dist/clis/index.mjs
CHANGED
|
@@ -6828,8 +6828,16 @@ async function getPowerhouseProjectUninstallCommand(projectDirPath, args = []) {
|
|
|
6828
6828
|
}
|
|
6829
6829
|
async function makeDependenciesWithVersions(dependencies, registryUrl) {
|
|
6830
6830
|
return await Promise.all(dependencies.map(async (dependency) => {
|
|
6831
|
-
const
|
|
6831
|
+
const parsed = npa(dependency);
|
|
6832
|
+
const { name } = parsed;
|
|
6832
6833
|
if (!name) throw new Error(`Package name for ${dependency} is invalid.`);
|
|
6834
|
+
if (parsed.type === "tag") {
|
|
6835
|
+
const tag = parsed.fetchSpec ?? parsed.rawSpec;
|
|
6836
|
+
if (tag) return {
|
|
6837
|
+
name,
|
|
6838
|
+
version: tag
|
|
6839
|
+
};
|
|
6840
|
+
}
|
|
6833
6841
|
return {
|
|
6834
6842
|
name,
|
|
6835
6843
|
version: await fetchPackageVersionFromNpmRegistry(dependency, registryUrl)
|
|
@@ -6981,12 +6989,15 @@ function scrubString(input) {
|
|
|
6981
6989
|
return out;
|
|
6982
6990
|
}
|
|
6983
6991
|
function scrubEvent(event) {
|
|
6992
|
+
const e = event;
|
|
6984
6993
|
try {
|
|
6985
|
-
if (
|
|
6986
|
-
if (
|
|
6987
|
-
|
|
6994
|
+
if (e.message) e.message = scrubString(e.message);
|
|
6995
|
+
if (e.logentry?.message) e.logentry.message = scrubString(e.logentry.message);
|
|
6996
|
+
const values = e.exception?.values;
|
|
6997
|
+
if (Array.isArray(values)) for (const ex of values) {
|
|
6988
6998
|
if (ex.value) ex.value = scrubString(ex.value);
|
|
6989
|
-
|
|
6999
|
+
const frames = ex.stacktrace?.frames;
|
|
7000
|
+
if (Array.isArray(frames)) for (const f of frames) {
|
|
6990
7001
|
if (f.filename) f.filename = scrubString(f.filename);
|
|
6991
7002
|
if (f.abs_path) f.abs_path = scrubString(f.abs_path);
|
|
6992
7003
|
delete f.pre_context;
|
|
@@ -6995,10 +7006,10 @@ function scrubEvent(event) {
|
|
|
6995
7006
|
delete f.vars;
|
|
6996
7007
|
}
|
|
6997
7008
|
}
|
|
6998
|
-
delete
|
|
6999
|
-
if (
|
|
7000
|
-
delete
|
|
7001
|
-
delete
|
|
7009
|
+
delete e.server_name;
|
|
7010
|
+
if (e.extra) {
|
|
7011
|
+
delete e.extra.argv;
|
|
7012
|
+
delete e.extra.env;
|
|
7002
7013
|
}
|
|
7003
7014
|
} catch {}
|
|
7004
7015
|
return event;
|