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
@@ -282,7 +282,7 @@ To sign xml documents:
282
282
-`existingPrefixes` - A hash of prefixes and namespaces `prefix: namespace` that shouldn't be in the signature because they already exist in the xml
283
283
-`getSignedXml()` - returns the original xml document with the signature in it, **must be called only after `computeSignature`**
284
284
-`getSignatureXml()` - returns just the signature part, **must be called only after `computeSignature`**
285
-
-`getOriginalXmlWithIds()` - returns the original xml with Id attributes added on relevant elements (required for validation), **must be called only after `computeSignature`**
285
+
-`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
@@ -1273,13 +1273,14 @@ export class SignedXml {
1273
1273
}
1274
1274
1275
1275
/**
1276
-
* Returns the original xml with Id attributes added on relevant elements (required for validation), must be called only after {@link computeSignature}
1276
+
* Returns the original xml with Id attributes added on relevant elements, must be called only after {@link computeSignature}
1277
1277
*
1278
1278
* @returns The original XML with IDs.
1279
+
* @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.
1279
1280
*/
1280
-
getOriginalXmlWithIds(): string{
1281
+
getOriginalXmlWithIds=deprecate((): string=>{
1281
1282
returnthis.originalXmlWithIds;
1282
-
}
1283
+
},"`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.");
1283
1284
1284
1285
/**
1285
1286
* Returns the original xml document with the signature in it, must be called only after {@link computeSignature}
0 commit comments