@hardkas/artifacts 0.9.1-alpha → 0.9.2-alpha
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 +5 -5
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// package.json
|
|
2
2
|
var package_default = {
|
|
3
3
|
name: "@hardkas/artifacts",
|
|
4
|
-
version: "0.9.
|
|
4
|
+
version: "0.9.2-alpha",
|
|
5
5
|
type: "module",
|
|
6
6
|
license: "MIT",
|
|
7
7
|
author: "Javier Rodriguez",
|
|
@@ -1325,11 +1325,11 @@ function verifyArtifactIntegritySync(artifactOrPath, context = {}) {
|
|
|
1325
1325
|
result.issues.push({
|
|
1326
1326
|
code: "ARTIFACT_SCHEMA_INVALID",
|
|
1327
1327
|
severity: zodSeverity,
|
|
1328
|
-
message: `${pathStr}: ${e.message}`,
|
|
1328
|
+
message: `${pathStr}: ${e instanceof Error ? e instanceof Error ? e.message : String(e) : String(e)}`,
|
|
1329
1329
|
...pathStr ? { path: pathStr } : {}
|
|
1330
1330
|
});
|
|
1331
1331
|
} else {
|
|
1332
|
-
addError("ARTIFACT_SCHEMA_INVALID", `${pathStr}: ${e.message}`, pathStr);
|
|
1332
|
+
addError("ARTIFACT_SCHEMA_INVALID", `${pathStr}: ${e instanceof Error ? e instanceof Error ? e.message : String(e) : String(e)}`, pathStr);
|
|
1333
1333
|
}
|
|
1334
1334
|
});
|
|
1335
1335
|
}
|
|
@@ -1345,9 +1345,9 @@ function verifyArtifactIntegritySync(artifactOrPath, context = {}) {
|
|
|
1345
1345
|
return result;
|
|
1346
1346
|
} catch (e) {
|
|
1347
1347
|
if (e instanceof SyntaxError) {
|
|
1348
|
-
addError("ARTIFACT_JSON_INVALID", `Invalid JSON: ${e.message}`);
|
|
1348
|
+
addError("ARTIFACT_JSON_INVALID", `Invalid JSON: ${e instanceof Error ? e instanceof Error ? e.message : String(e) : String(e)}`);
|
|
1349
1349
|
} else if (e instanceof Error) {
|
|
1350
|
-
addError("ARTIFACT_ID_INVALID", `Unexpected verification error: ${e.message}`);
|
|
1350
|
+
addError("ARTIFACT_ID_INVALID", `Unexpected verification error: ${e instanceof Error ? e instanceof Error ? e.message : String(e) : String(e)}`);
|
|
1351
1351
|
} else {
|
|
1352
1352
|
addError("ARTIFACT_ID_INVALID", `Unexpected verification error: ${String(e)}`);
|
|
1353
1353
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hardkas/artifacts",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.2-alpha",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Javier Rodriguez",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"types": "./dist/index.d.ts",
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"zod": "^3.24.1",
|
|
31
|
-
"@hardkas/
|
|
32
|
-
"@hardkas/
|
|
31
|
+
"@hardkas/tx-builder": "0.9.2-alpha",
|
|
32
|
+
"@hardkas/core": "0.9.2-alpha"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"tsup": "^8.3.5",
|