You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -281,7 +281,7 @@ To sign xml documents:
281
281
-`existingPrefixes` - A hash of prefixes and namespaces `prefix: namespace` that shouldn't be in the signature because they already exist in the xml
282
282
-`getSignedXml()` - returns the original xml document with the signature in it, **must be called only after `computeSignature`**
283
283
-`getSignatureXml()` - returns just the signature part, **must be called only after `computeSignature`**
284
-
-`getOriginalXmlWithIds()` - returns the original xml with Id attributes added on relevant elements (required for validation), **must be called only after `computeSignature`**
284
+
-`getOriginalXmlWithIds()` - **[deprecated]**returns the original xml with Id attributes added on relevant elements, **must be called only after `computeSignature`**. This method is deprecated and will be removed in a future version. Use `ComputeSignatureOptionsLocation` to control where the signature will be placed in the original XML.
Copy file name to clipboardExpand all lines: src/signed-xml.ts
+4-3Lines changed: 4 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -1423,13 +1423,14 @@ export class SignedXml {
1423
1423
}
1424
1424
1425
1425
/**
1426
-
* Returns the original xml with Id attributes added on relevant elements (required for validation), must be called only after {@link computeSignature}
1426
+
* Returns the original xml with Id attributes added on relevant elements, must be called only after {@link computeSignature}
1427
1427
*
1428
1428
* @returns The original XML with IDs.
1429
+
* @deprecated This function is deprecated and will be removed in a future version. Use ComputeSignatureOptionsLocation to control where the signature will be placed in the original XML.
1429
1430
*/
1430
-
getOriginalXmlWithIds(): string{
1431
+
getOriginalXmlWithIds=deprecate((): string=>{
1431
1432
returnthis.originalXmlWithIds;
1432
-
}
1433
+
},"`getOriginalXmlWithIds()` is deprecated and will be removed in a future version. Use ComputeSignatureOptionsLocation to control where the signature will be placed in the original XML.");
1433
1434
1434
1435
/**
1435
1436
* Returns the original xml document with the signature in it, must be called only after {@link computeSignature}
0 commit comments