@xyo-network/payload-wrapper
Advanced tools
Comparing version
@@ -37,2 +37,10 @@ "use strict"; | ||
} | ||
static tryParse(obj) { | ||
try { | ||
return this.parse(obj); | ||
} | ||
catch (ex) { | ||
return undefined; | ||
} | ||
} | ||
} | ||
@@ -39,0 +47,0 @@ exports.PayloadWrapperBase = PayloadWrapperBase; |
@@ -10,3 +10,3 @@ { | ||
{ | ||
"id": 63, | ||
"id": 68, | ||
"name": "PayloadWrapper", | ||
@@ -18,3 +18,3 @@ "kind": 128, | ||
{ | ||
"id": 93, | ||
"id": 103, | ||
"name": "constructor", | ||
@@ -33,3 +33,3 @@ "kind": 512, | ||
{ | ||
"id": 94, | ||
"id": 104, | ||
"name": "new PayloadWrapper", | ||
@@ -41,3 +41,3 @@ "kind": 16384, | ||
{ | ||
"id": 99, | ||
"id": 109, | ||
"name": "TPayload", | ||
@@ -61,3 +61,3 @@ "kind": 131072, | ||
"declaration": { | ||
"id": 95, | ||
"id": 105, | ||
"name": "__type", | ||
@@ -69,3 +69,3 @@ "kind": 65536, | ||
{ | ||
"id": 96, | ||
"id": 106, | ||
"name": "schema", | ||
@@ -92,3 +92,3 @@ "kind": 1024, | ||
"children": [ | ||
96 | ||
106 | ||
] | ||
@@ -122,3 +122,3 @@ } | ||
"declaration": { | ||
"id": 97, | ||
"id": 107, | ||
"name": "__type", | ||
@@ -130,3 +130,3 @@ "kind": 65536, | ||
{ | ||
"id": 98, | ||
"id": 108, | ||
"name": "schema", | ||
@@ -153,3 +153,3 @@ "kind": 1024, | ||
"children": [ | ||
98 | ||
108 | ||
] | ||
@@ -173,3 +173,3 @@ } | ||
{ | ||
"id": 100, | ||
"id": 110, | ||
"name": "obj", | ||
@@ -181,3 +181,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 99, | ||
"id": 109, | ||
"name": "TPayload" | ||
@@ -189,7 +189,7 @@ } | ||
"type": "reference", | ||
"id": 63, | ||
"id": 68, | ||
"typeArguments": [ | ||
{ | ||
"type": "reference", | ||
"id": 99, | ||
"id": 109, | ||
"name": "TPayload" | ||
@@ -202,3 +202,3 @@ } | ||
"type": "reference", | ||
"id": 32, | ||
"id": 37, | ||
"name": "PayloadWrapperBase.constructor" | ||
@@ -210,3 +210,3 @@ } | ||
"type": "reference", | ||
"id": 31, | ||
"id": 36, | ||
"name": "PayloadWrapperBase.constructor" | ||
@@ -216,3 +216,3 @@ } | ||
{ | ||
"id": 101, | ||
"id": 111, | ||
"name": "isPayloadWrapper", | ||
@@ -227,5 +227,5 @@ "kind": 1024, | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 52, | ||
"line": 60, | ||
"character": 10, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L52" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L60" | ||
} | ||
@@ -240,3 +240,3 @@ ], | ||
{ | ||
"id": 122, | ||
"id": 132, | ||
"name": "obj", | ||
@@ -257,3 +257,3 @@ "kind": 1024, | ||
"type": "reference", | ||
"id": 99, | ||
"id": 109, | ||
"name": "TPayload" | ||
@@ -263,3 +263,3 @@ }, | ||
"type": "reference", | ||
"id": 59, | ||
"id": 64, | ||
"name": "PayloadWrapperBase.obj" | ||
@@ -269,3 +269,3 @@ } | ||
{ | ||
"id": 64, | ||
"id": 69, | ||
"name": "loaderFactory", | ||
@@ -281,5 +281,5 @@ "kind": 1024, | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 50, | ||
"line": 58, | ||
"character": 17, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L50" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L58" | ||
} | ||
@@ -304,3 +304,3 @@ ], | ||
{ | ||
"id": 102, | ||
"id": 112, | ||
"name": "body", | ||
@@ -317,7 +317,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L11" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L11" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 103, | ||
"id": 113, | ||
"name": "body", | ||
@@ -329,3 +329,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -340,3 +340,3 @@ }, | ||
"type": "reference", | ||
"id": 39, | ||
"id": 44, | ||
"name": "PayloadWrapperBase.body" | ||
@@ -346,3 +346,3 @@ } | ||
{ | ||
"id": 104, | ||
"id": 114, | ||
"name": "errors", | ||
@@ -357,7 +357,7 @@ "kind": 262144, | ||
"character": 6, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L15" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L15" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 105, | ||
"id": 115, | ||
"name": "errors", | ||
@@ -383,3 +383,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 41, | ||
"id": 46, | ||
"name": "PayloadWrapperBase.errors" | ||
@@ -389,3 +389,3 @@ } | ||
{ | ||
"id": 116, | ||
"id": 126, | ||
"name": "hash", | ||
@@ -403,3 +403,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 117, | ||
"id": 127, | ||
"name": "hash", | ||
@@ -420,3 +420,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 53, | ||
"id": 58, | ||
"name": "PayloadWrapperBase.hash" | ||
@@ -426,3 +426,3 @@ } | ||
{ | ||
"id": 118, | ||
"id": 128, | ||
"name": "hashFields", | ||
@@ -440,3 +440,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 119, | ||
"id": 129, | ||
"name": "hashFields", | ||
@@ -457,3 +457,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 55, | ||
"id": 60, | ||
"name": "PayloadWrapperBase.hashFields" | ||
@@ -463,3 +463,3 @@ } | ||
{ | ||
"id": 106, | ||
"id": 116, | ||
"name": "payload", | ||
@@ -476,7 +476,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L19" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L19" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 107, | ||
"id": 117, | ||
"name": "payload", | ||
@@ -488,3 +488,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -499,3 +499,3 @@ }, | ||
"type": "reference", | ||
"id": 43, | ||
"id": 48, | ||
"name": "PayloadWrapperBase.payload" | ||
@@ -505,3 +505,3 @@ } | ||
{ | ||
"id": 108, | ||
"id": 118, | ||
"name": "previousHash", | ||
@@ -518,7 +518,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L23" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L23" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 109, | ||
"id": 119, | ||
"name": "previousHash", | ||
@@ -539,3 +539,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 45, | ||
"id": 50, | ||
"name": "PayloadWrapperBase.previousHash" | ||
@@ -545,3 +545,3 @@ } | ||
{ | ||
"id": 110, | ||
"id": 120, | ||
"name": "schema", | ||
@@ -558,7 +558,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L27" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L27" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 111, | ||
"id": 121, | ||
"name": "schema", | ||
@@ -579,3 +579,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 47, | ||
"id": 52, | ||
"name": "PayloadWrapperBase.schema" | ||
@@ -585,3 +585,3 @@ } | ||
{ | ||
"id": 112, | ||
"id": 122, | ||
"name": "schemaName", | ||
@@ -598,7 +598,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L32" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L32" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 113, | ||
"id": 123, | ||
"name": "schemaName", | ||
@@ -619,3 +619,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 49, | ||
"id": 54, | ||
"name": "PayloadWrapperBase.schemaName" | ||
@@ -625,3 +625,3 @@ } | ||
{ | ||
"id": 123, | ||
"id": 133, | ||
"name": "stringKeyObj", | ||
@@ -641,3 +641,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 124, | ||
"id": 134, | ||
"name": "stringKeyObj", | ||
@@ -658,3 +658,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 60, | ||
"id": 65, | ||
"name": "PayloadWrapperBase.stringKeyObj" | ||
@@ -664,3 +664,3 @@ } | ||
{ | ||
"id": 120, | ||
"id": 130, | ||
"name": "stringified", | ||
@@ -678,3 +678,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 121, | ||
"id": 131, | ||
"name": "stringified", | ||
@@ -695,3 +695,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 57, | ||
"id": 62, | ||
"name": "PayloadWrapperBase.stringified" | ||
@@ -701,3 +701,3 @@ } | ||
{ | ||
"id": 114, | ||
"id": 124, | ||
"name": "valid", | ||
@@ -712,7 +712,7 @@ "kind": 262144, | ||
"character": 6, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L36" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L36" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 115, | ||
"id": 125, | ||
"name": "valid", | ||
@@ -733,3 +733,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 51, | ||
"id": 56, | ||
"name": "PayloadWrapperBase.valid" | ||
@@ -739,3 +739,3 @@ } | ||
{ | ||
"id": 81, | ||
"id": 91, | ||
"name": "hash", | ||
@@ -756,3 +756,3 @@ "kind": 2048, | ||
{ | ||
"id": 82, | ||
"id": 92, | ||
"name": "hash", | ||
@@ -764,3 +764,3 @@ "kind": 4096, | ||
{ | ||
"id": 83, | ||
"id": 93, | ||
"name": "T", | ||
@@ -778,3 +778,3 @@ "kind": 131072, | ||
{ | ||
"id": 84, | ||
"id": 94, | ||
"name": "obj", | ||
@@ -786,3 +786,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 21, | ||
"id": 26, | ||
"name": "T" | ||
@@ -798,3 +798,3 @@ } | ||
"type": "reference", | ||
"id": 20, | ||
"id": 25, | ||
"name": "PayloadWrapperBase.hash" | ||
@@ -806,3 +806,3 @@ } | ||
"type": "reference", | ||
"id": 19, | ||
"id": 24, | ||
"name": "PayloadWrapperBase.hash" | ||
@@ -812,3 +812,3 @@ } | ||
{ | ||
"id": 85, | ||
"id": 95, | ||
"name": "hashFields", | ||
@@ -829,3 +829,3 @@ "kind": 2048, | ||
{ | ||
"id": 86, | ||
"id": 96, | ||
"name": "hashFields", | ||
@@ -837,3 +837,3 @@ "kind": 4096, | ||
{ | ||
"id": 87, | ||
"id": 97, | ||
"name": "T", | ||
@@ -851,3 +851,3 @@ "kind": 131072, | ||
{ | ||
"id": 88, | ||
"id": 98, | ||
"name": "obj", | ||
@@ -859,3 +859,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 25, | ||
"id": 30, | ||
"name": "T" | ||
@@ -867,3 +867,3 @@ } | ||
"type": "reference", | ||
"id": 25, | ||
"id": 30, | ||
"name": "T" | ||
@@ -873,3 +873,3 @@ }, | ||
"type": "reference", | ||
"id": 24, | ||
"id": 29, | ||
"name": "PayloadWrapperBase.hashFields" | ||
@@ -881,3 +881,3 @@ } | ||
"type": "reference", | ||
"id": 23, | ||
"id": 28, | ||
"name": "PayloadWrapperBase.hashFields" | ||
@@ -887,3 +887,3 @@ } | ||
{ | ||
"id": 65, | ||
"id": 70, | ||
"name": "load", | ||
@@ -899,5 +899,5 @@ "kind": 2048, | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 54, | ||
"line": 62, | ||
"character": 31, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L54" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L62" | ||
} | ||
@@ -907,3 +907,3 @@ ], | ||
{ | ||
"id": 66, | ||
"id": 71, | ||
"name": "load", | ||
@@ -915,3 +915,3 @@ "kind": 4096, | ||
{ | ||
"id": 67, | ||
"id": 72, | ||
"name": "address", | ||
@@ -939,3 +939,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 63, | ||
"id": 68, | ||
"typeArguments": [ | ||
@@ -956,3 +956,3 @@ { | ||
"declaration": { | ||
"id": 68, | ||
"id": 73, | ||
"name": "__type", | ||
@@ -964,3 +964,3 @@ "kind": 65536, | ||
{ | ||
"id": 69, | ||
"id": 74, | ||
"name": "schema", | ||
@@ -987,3 +987,3 @@ "kind": 1024, | ||
"children": [ | ||
69 | ||
74 | ||
] | ||
@@ -1027,3 +1027,3 @@ } | ||
{ | ||
"id": 70, | ||
"id": 75, | ||
"name": "parse", | ||
@@ -1039,5 +1039,5 @@ "kind": 2048, | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 64, | ||
"line": 72, | ||
"character": 25, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L64" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L72" | ||
} | ||
@@ -1047,3 +1047,3 @@ ], | ||
{ | ||
"id": 71, | ||
"id": 76, | ||
"name": "parse", | ||
@@ -1055,3 +1055,3 @@ "kind": 4096, | ||
{ | ||
"id": 76, | ||
"id": 81, | ||
"name": "T", | ||
@@ -1075,3 +1075,3 @@ "kind": 131072, | ||
"declaration": { | ||
"id": 72, | ||
"id": 77, | ||
"name": "__type", | ||
@@ -1083,3 +1083,3 @@ "kind": 65536, | ||
{ | ||
"id": 73, | ||
"id": 78, | ||
"name": "schema", | ||
@@ -1106,3 +1106,3 @@ "kind": 1024, | ||
"children": [ | ||
73 | ||
78 | ||
] | ||
@@ -1136,3 +1136,3 @@ } | ||
"declaration": { | ||
"id": 74, | ||
"id": 79, | ||
"name": "__type", | ||
@@ -1144,3 +1144,3 @@ "kind": 65536, | ||
{ | ||
"id": 75, | ||
"id": 80, | ||
"name": "schema", | ||
@@ -1167,3 +1167,3 @@ "kind": 1024, | ||
"children": [ | ||
75 | ||
80 | ||
] | ||
@@ -1187,3 +1187,3 @@ } | ||
{ | ||
"id": 77, | ||
"id": 82, | ||
"name": "obj", | ||
@@ -1201,7 +1201,7 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 63, | ||
"id": 68, | ||
"typeArguments": [ | ||
{ | ||
"type": "reference", | ||
"id": 76, | ||
"id": 81, | ||
"name": "T" | ||
@@ -1226,3 +1226,3 @@ } | ||
{ | ||
"id": 78, | ||
"id": 83, | ||
"name": "setLoaderFactory", | ||
@@ -1238,5 +1238,5 @@ "kind": 2048, | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 78, | ||
"line": 86, | ||
"character": 16, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L78" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L86" | ||
} | ||
@@ -1246,3 +1246,3 @@ ], | ||
{ | ||
"id": 79, | ||
"id": 84, | ||
"name": "setLoaderFactory", | ||
@@ -1254,3 +1254,3 @@ "kind": 4096, | ||
{ | ||
"id": 80, | ||
"id": 85, | ||
"name": "factory", | ||
@@ -1284,3 +1284,3 @@ "kind": 32768, | ||
{ | ||
"id": 89, | ||
"id": 99, | ||
"name": "stringify", | ||
@@ -1301,3 +1301,3 @@ "kind": 2048, | ||
{ | ||
"id": 90, | ||
"id": 100, | ||
"name": "stringify", | ||
@@ -1309,3 +1309,3 @@ "kind": 4096, | ||
{ | ||
"id": 91, | ||
"id": 101, | ||
"name": "T", | ||
@@ -1323,3 +1323,3 @@ "kind": 131072, | ||
{ | ||
"id": 92, | ||
"id": 102, | ||
"name": "obj", | ||
@@ -1331,3 +1331,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 29, | ||
"id": 34, | ||
"name": "T" | ||
@@ -1343,3 +1343,3 @@ } | ||
"type": "reference", | ||
"id": 28, | ||
"id": 33, | ||
"name": "PayloadWrapperBase.stringify" | ||
@@ -1351,5 +1351,129 @@ } | ||
"type": "reference", | ||
"id": 27, | ||
"id": 32, | ||
"name": "PayloadWrapperBase.stringify" | ||
} | ||
}, | ||
{ | ||
"id": 86, | ||
"name": "tryParse", | ||
"kind": 2048, | ||
"kindString": "Method", | ||
"flags": { | ||
"isPublic": true, | ||
"isStatic": true | ||
}, | ||
"sources": [ | ||
{ | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 48, | ||
"character": 16, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L48" | ||
} | ||
], | ||
"signatures": [ | ||
{ | ||
"id": 87, | ||
"name": "tryParse", | ||
"kind": 4096, | ||
"kindString": "Call signature", | ||
"flags": {}, | ||
"parameters": [ | ||
{ | ||
"id": 88, | ||
"name": "obj", | ||
"kind": 32768, | ||
"kindString": "Parameter", | ||
"flags": {}, | ||
"type": { | ||
"type": "intrinsic", | ||
"name": "unknown" | ||
} | ||
} | ||
], | ||
"type": { | ||
"type": "union", | ||
"types": [ | ||
{ | ||
"type": "intrinsic", | ||
"name": "undefined" | ||
}, | ||
{ | ||
"type": "reference", | ||
"id": 8, | ||
"typeArguments": [ | ||
{ | ||
"type": "intersection", | ||
"types": [ | ||
{ | ||
"type": "reference", | ||
"name": "SchemaFields" | ||
}, | ||
{ | ||
"type": "reference", | ||
"name": "PayloadFields" | ||
}, | ||
{ | ||
"type": "reflection", | ||
"declaration": { | ||
"id": 89, | ||
"name": "__type", | ||
"kind": 65536, | ||
"kindString": "Type literal", | ||
"flags": {}, | ||
"children": [ | ||
{ | ||
"id": 90, | ||
"name": "schema", | ||
"kind": 1024, | ||
"kindString": "Property", | ||
"flags": {}, | ||
"sources": [ | ||
{ | ||
"fileName": "payload/packages/model/dist/types/XyoPayload.d.ts", | ||
"line": 19, | ||
"character": 4 | ||
} | ||
], | ||
"type": { | ||
"type": "intrinsic", | ||
"name": "string" | ||
} | ||
} | ||
], | ||
"groups": [ | ||
{ | ||
"title": "Properties", | ||
"children": [ | ||
90 | ||
] | ||
} | ||
], | ||
"sources": [ | ||
{ | ||
"fileName": "payload/packages/model/dist/types/XyoPayload.d.ts", | ||
"line": 18, | ||
"character": 17 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"name": "PayloadWrapperBase" | ||
} | ||
] | ||
}, | ||
"inheritedFrom": { | ||
"type": "reference", | ||
"id": 20, | ||
"name": "PayloadWrapperBase.tryParse" | ||
} | ||
} | ||
], | ||
"inheritedFrom": { | ||
"type": "reference", | ||
"id": 19, | ||
"name": "PayloadWrapperBase.tryParse" | ||
} | ||
} | ||
@@ -1361,3 +1485,3 @@ ], | ||
"children": [ | ||
93 | ||
103 | ||
] | ||
@@ -1368,5 +1492,5 @@ }, | ||
"children": [ | ||
101, | ||
122, | ||
64 | ||
111, | ||
132, | ||
69 | ||
] | ||
@@ -1377,13 +1501,13 @@ }, | ||
"children": [ | ||
102, | ||
104, | ||
112, | ||
114, | ||
126, | ||
128, | ||
116, | ||
118, | ||
106, | ||
108, | ||
110, | ||
112, | ||
123, | ||
120, | ||
114 | ||
122, | ||
133, | ||
130, | ||
124 | ||
] | ||
@@ -1394,8 +1518,9 @@ }, | ||
"children": [ | ||
81, | ||
85, | ||
65, | ||
91, | ||
95, | ||
70, | ||
78, | ||
89 | ||
75, | ||
83, | ||
99, | ||
86 | ||
] | ||
@@ -1407,5 +1532,5 @@ } | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 49, | ||
"line": 57, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L49" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L57" | ||
} | ||
@@ -1415,3 +1540,3 @@ ], | ||
{ | ||
"id": 125, | ||
"id": 135, | ||
"name": "TPayload", | ||
@@ -1438,3 +1563,3 @@ "kind": 131072, | ||
"type": "reference", | ||
"id": 99, | ||
"id": 109, | ||
"name": "TPayload" | ||
@@ -1457,3 +1582,3 @@ } | ||
{ | ||
"id": 31, | ||
"id": 36, | ||
"name": "constructor", | ||
@@ -1472,3 +1597,3 @@ "kind": 512, | ||
{ | ||
"id": 32, | ||
"id": 37, | ||
"name": "new PayloadWrapperBase", | ||
@@ -1480,3 +1605,3 @@ "kind": 16384, | ||
{ | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload", | ||
@@ -1500,3 +1625,3 @@ "kind": 131072, | ||
"declaration": { | ||
"id": 33, | ||
"id": 38, | ||
"name": "__type", | ||
@@ -1508,3 +1633,3 @@ "kind": 65536, | ||
{ | ||
"id": 34, | ||
"id": 39, | ||
"name": "schema", | ||
@@ -1531,3 +1656,3 @@ "kind": 1024, | ||
"children": [ | ||
34 | ||
39 | ||
] | ||
@@ -1561,3 +1686,3 @@ } | ||
"declaration": { | ||
"id": 35, | ||
"id": 40, | ||
"name": "__type", | ||
@@ -1569,3 +1694,3 @@ "kind": 65536, | ||
{ | ||
"id": 36, | ||
"id": 41, | ||
"name": "schema", | ||
@@ -1592,3 +1717,3 @@ "kind": 1024, | ||
"children": [ | ||
36 | ||
41 | ||
] | ||
@@ -1612,3 +1737,3 @@ } | ||
{ | ||
"id": 38, | ||
"id": 43, | ||
"name": "obj", | ||
@@ -1620,3 +1745,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -1632,3 +1757,3 @@ } | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -1651,3 +1776,3 @@ } | ||
{ | ||
"id": 59, | ||
"id": 64, | ||
"name": "obj", | ||
@@ -1668,3 +1793,3 @@ "kind": 1024, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -1678,3 +1803,3 @@ }, | ||
{ | ||
"id": 39, | ||
"id": 44, | ||
"name": "body", | ||
@@ -1691,7 +1816,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L11" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L11" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 40, | ||
"id": 45, | ||
"name": "body", | ||
@@ -1703,3 +1828,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -1710,3 +1835,3 @@ } | ||
{ | ||
"id": 41, | ||
"id": 46, | ||
"name": "errors", | ||
@@ -1721,7 +1846,7 @@ "kind": 262144, | ||
"character": 6, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L15" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L15" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 42, | ||
"id": 47, | ||
"name": "errors", | ||
@@ -1743,3 +1868,3 @@ "kind": 524288, | ||
{ | ||
"id": 53, | ||
"id": 58, | ||
"name": "hash", | ||
@@ -1757,3 +1882,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 54, | ||
"id": 59, | ||
"name": "hash", | ||
@@ -1778,3 +1903,3 @@ "kind": 524288, | ||
{ | ||
"id": 55, | ||
"id": 60, | ||
"name": "hashFields", | ||
@@ -1792,3 +1917,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 56, | ||
"id": 61, | ||
"name": "hashFields", | ||
@@ -1813,3 +1938,3 @@ "kind": 524288, | ||
{ | ||
"id": 43, | ||
"id": 48, | ||
"name": "payload", | ||
@@ -1826,7 +1951,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L19" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L19" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 44, | ||
"id": 49, | ||
"name": "payload", | ||
@@ -1838,3 +1963,3 @@ "kind": 524288, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -1845,3 +1970,3 @@ } | ||
{ | ||
"id": 45, | ||
"id": 50, | ||
"name": "previousHash", | ||
@@ -1858,7 +1983,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L23" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L23" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 46, | ||
"id": 51, | ||
"name": "previousHash", | ||
@@ -1875,3 +2000,3 @@ "kind": 524288, | ||
{ | ||
"id": 47, | ||
"id": 52, | ||
"name": "schema", | ||
@@ -1888,7 +2013,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L27" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L27" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 48, | ||
"id": 53, | ||
"name": "schema", | ||
@@ -1905,3 +2030,3 @@ "kind": 524288, | ||
{ | ||
"id": 49, | ||
"id": 54, | ||
"name": "schemaName", | ||
@@ -1918,7 +2043,7 @@ "kind": 262144, | ||
"character": 13, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L32" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L32" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 50, | ||
"id": 55, | ||
"name": "schemaName", | ||
@@ -1935,3 +2060,3 @@ "kind": 524288, | ||
{ | ||
"id": 60, | ||
"id": 65, | ||
"name": "stringKeyObj", | ||
@@ -1951,3 +2076,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 61, | ||
"id": 66, | ||
"name": "stringKeyObj", | ||
@@ -1972,3 +2097,3 @@ "kind": 524288, | ||
{ | ||
"id": 57, | ||
"id": 62, | ||
"name": "stringified", | ||
@@ -1986,3 +2111,3 @@ "kind": 262144, | ||
"getSignature": { | ||
"id": 58, | ||
"id": 63, | ||
"name": "stringified", | ||
@@ -2007,3 +2132,3 @@ "kind": 524288, | ||
{ | ||
"id": 51, | ||
"id": 56, | ||
"name": "valid", | ||
@@ -2018,7 +2143,7 @@ "kind": 262144, | ||
"character": 6, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L36" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L36" | ||
} | ||
], | ||
"getSignature": { | ||
"id": 52, | ||
"id": 57, | ||
"name": "valid", | ||
@@ -2035,3 +2160,3 @@ "kind": 524288, | ||
{ | ||
"id": 19, | ||
"id": 24, | ||
"name": "hash", | ||
@@ -2052,3 +2177,3 @@ "kind": 2048, | ||
{ | ||
"id": 20, | ||
"id": 25, | ||
"name": "hash", | ||
@@ -2060,3 +2185,3 @@ "kind": 4096, | ||
{ | ||
"id": 21, | ||
"id": 26, | ||
"name": "T", | ||
@@ -2074,3 +2199,3 @@ "kind": 131072, | ||
{ | ||
"id": 22, | ||
"id": 27, | ||
"name": "obj", | ||
@@ -2082,3 +2207,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 21, | ||
"id": 26, | ||
"name": "T" | ||
@@ -2104,3 +2229,3 @@ } | ||
{ | ||
"id": 23, | ||
"id": 28, | ||
"name": "hashFields", | ||
@@ -2121,3 +2246,3 @@ "kind": 2048, | ||
{ | ||
"id": 24, | ||
"id": 29, | ||
"name": "hashFields", | ||
@@ -2129,3 +2254,3 @@ "kind": 4096, | ||
{ | ||
"id": 25, | ||
"id": 30, | ||
"name": "T", | ||
@@ -2143,3 +2268,3 @@ "kind": 131072, | ||
{ | ||
"id": 26, | ||
"id": 31, | ||
"name": "obj", | ||
@@ -2151,3 +2276,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 25, | ||
"id": 30, | ||
"name": "T" | ||
@@ -2159,3 +2284,3 @@ } | ||
"type": "reference", | ||
"id": 25, | ||
"id": 30, | ||
"name": "T" | ||
@@ -2188,3 +2313,3 @@ }, | ||
"character": 16, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L40" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L40" | ||
} | ||
@@ -2313,3 +2438,3 @@ ], | ||
"character": 16, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L44" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L44" | ||
} | ||
@@ -2406,3 +2531,3 @@ ], | ||
{ | ||
"id": 27, | ||
"id": 32, | ||
"name": "stringify", | ||
@@ -2423,3 +2548,3 @@ "kind": 2048, | ||
{ | ||
"id": 28, | ||
"id": 33, | ||
"name": "stringify", | ||
@@ -2431,3 +2556,3 @@ "kind": 4096, | ||
{ | ||
"id": 29, | ||
"id": 34, | ||
"name": "T", | ||
@@ -2445,3 +2570,3 @@ "kind": 131072, | ||
{ | ||
"id": 30, | ||
"id": 35, | ||
"name": "obj", | ||
@@ -2453,3 +2578,3 @@ "kind": 32768, | ||
"type": "reference", | ||
"id": 29, | ||
"id": 34, | ||
"name": "T" | ||
@@ -2473,2 +2598,116 @@ } | ||
} | ||
}, | ||
{ | ||
"id": 19, | ||
"name": "tryParse", | ||
"kind": 2048, | ||
"kindString": "Method", | ||
"flags": { | ||
"isPublic": true, | ||
"isStatic": true | ||
}, | ||
"sources": [ | ||
{ | ||
"fileName": "payload/packages/wrapper/src/Wrapper.ts", | ||
"line": 48, | ||
"character": 16, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L48" | ||
} | ||
], | ||
"signatures": [ | ||
{ | ||
"id": 20, | ||
"name": "tryParse", | ||
"kind": 4096, | ||
"kindString": "Call signature", | ||
"flags": {}, | ||
"parameters": [ | ||
{ | ||
"id": 21, | ||
"name": "obj", | ||
"kind": 32768, | ||
"kindString": "Parameter", | ||
"flags": {}, | ||
"type": { | ||
"type": "intrinsic", | ||
"name": "unknown" | ||
} | ||
} | ||
], | ||
"type": { | ||
"type": "union", | ||
"types": [ | ||
{ | ||
"type": "intrinsic", | ||
"name": "undefined" | ||
}, | ||
{ | ||
"type": "reference", | ||
"id": 8, | ||
"typeArguments": [ | ||
{ | ||
"type": "intersection", | ||
"types": [ | ||
{ | ||
"type": "reference", | ||
"name": "SchemaFields" | ||
}, | ||
{ | ||
"type": "reference", | ||
"name": "PayloadFields" | ||
}, | ||
{ | ||
"type": "reflection", | ||
"declaration": { | ||
"id": 22, | ||
"name": "__type", | ||
"kind": 65536, | ||
"kindString": "Type literal", | ||
"flags": {}, | ||
"children": [ | ||
{ | ||
"id": 23, | ||
"name": "schema", | ||
"kind": 1024, | ||
"kindString": "Property", | ||
"flags": {}, | ||
"sources": [ | ||
{ | ||
"fileName": "payload/packages/model/dist/types/XyoPayload.d.ts", | ||
"line": 19, | ||
"character": 4 | ||
} | ||
], | ||
"type": { | ||
"type": "intrinsic", | ||
"name": "string" | ||
} | ||
} | ||
], | ||
"groups": [ | ||
{ | ||
"title": "Properties", | ||
"children": [ | ||
23 | ||
] | ||
} | ||
], | ||
"sources": [ | ||
{ | ||
"fileName": "payload/packages/model/dist/types/XyoPayload.d.ts", | ||
"line": 18, | ||
"character": 17 | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"name": "PayloadWrapperBase" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} | ||
@@ -2480,3 +2719,3 @@ ], | ||
"children": [ | ||
31 | ||
36 | ||
] | ||
@@ -2487,3 +2726,3 @@ }, | ||
"children": [ | ||
59 | ||
64 | ||
] | ||
@@ -2494,13 +2733,13 @@ }, | ||
"children": [ | ||
39, | ||
41, | ||
53, | ||
55, | ||
43, | ||
45, | ||
47, | ||
49, | ||
44, | ||
46, | ||
58, | ||
60, | ||
57, | ||
51 | ||
48, | ||
50, | ||
52, | ||
54, | ||
65, | ||
62, | ||
56 | ||
] | ||
@@ -2511,7 +2750,8 @@ }, | ||
"children": [ | ||
19, | ||
23, | ||
24, | ||
28, | ||
9, | ||
14, | ||
27 | ||
32, | ||
19 | ||
] | ||
@@ -2525,3 +2765,3 @@ } | ||
"character": 22, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L10" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L10" | ||
} | ||
@@ -2531,3 +2771,3 @@ ], | ||
{ | ||
"id": 62, | ||
"id": 67, | ||
"name": "TPayload", | ||
@@ -2553,3 +2793,3 @@ "kind": 131072, | ||
"type": "reference", | ||
"id": 37, | ||
"id": 42, | ||
"name": "TPayload" | ||
@@ -2564,3 +2804,3 @@ } | ||
"type": "reference", | ||
"id": 63, | ||
"id": 68, | ||
"name": "PayloadWrapper" | ||
@@ -2581,3 +2821,3 @@ } | ||
"character": 12, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L7" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L7" | ||
} | ||
@@ -2598,3 +2838,3 @@ ], | ||
"character": 28, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L7" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L7" | ||
} | ||
@@ -2659,3 +2899,3 @@ ], | ||
"character": 12, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L8" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L8" | ||
} | ||
@@ -2676,3 +2916,3 @@ ], | ||
"character": 35, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L8" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/Wrapper.ts#L8" | ||
} | ||
@@ -2702,3 +2942,3 @@ ], | ||
"children": [ | ||
63, | ||
68, | ||
8 | ||
@@ -2720,5 +2960,5 @@ ] | ||
"character": 0, | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/561a1435a/packages/protocol/packages/payload/packages/wrapper/src/index.ts#L1" | ||
"url": "https://github.com/XYOracleNetwork/sdk-xyo-client-js/blob/49dca501d38/packages/protocol/packages/payload/packages/wrapper/src/index.ts#L1" | ||
} | ||
] | ||
} |
@@ -33,2 +33,10 @@ import { assertEx } from '@xylabs/assert'; | ||
} | ||
static tryParse(obj) { | ||
try { | ||
return this.parse(obj); | ||
} | ||
catch (ex) { | ||
return undefined; | ||
} | ||
} | ||
} | ||
@@ -35,0 +43,0 @@ export class PayloadWrapper extends PayloadWrapperBase { |
@@ -16,2 +16,5 @@ import { DataLike, Hasher } from '@xyo-network/core'; | ||
static parse(_obj: unknown): PayloadWrapperBase; | ||
static tryParse(obj: unknown): PayloadWrapperBase<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & { | ||
schema: string; | ||
}> | undefined; | ||
} | ||
@@ -18,0 +21,0 @@ export declare class PayloadWrapper<TPayload extends XyoPayload = XyoPayload> extends PayloadWrapperBase<TPayload> { |
@@ -14,10 +14,10 @@ { | ||
"@xylabs/assert": "^2.7.1", | ||
"@xyo-network/core": "^2.43.31", | ||
"@xyo-network/payload-model": "^2.43.31", | ||
"@xyo-network/payload-validator": "^2.43.31", | ||
"@xyo-network/promise": "^2.43.31" | ||
"@xyo-network/core": "^2.43.32", | ||
"@xyo-network/payload-model": "^2.43.32", | ||
"@xyo-network/payload-validator": "^2.43.32", | ||
"@xyo-network/promise": "^2.43.32" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^2.14.1", | ||
"@xylabs/tsconfig": "^2.14.1", | ||
"@xylabs/ts-scripts-yarn3": "^2.14.3", | ||
"@xylabs/tsconfig": "^2.14.3", | ||
"typescript": "^4.9.5" | ||
@@ -58,3 +58,3 @@ }, | ||
"types": "dist/types/index.d.ts", | ||
"version": "2.43.31" | ||
"version": "2.43.32" | ||
} |
@@ -47,2 +47,10 @@ import { assertEx } from '@xylabs/assert' | ||
} | ||
public static tryParse(obj: unknown) { | ||
try { | ||
return this.parse(obj) | ||
} catch (ex) { | ||
return undefined | ||
} | ||
} | ||
} | ||
@@ -49,0 +57,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
87866
8.63%3037
9.6%