@verdocs/js-sdk 3.0.8 → 3.0.10

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.
@@ -12,4 +12,4 @@ export interface IInitials {
12
12
  * create and store an initials block. Thereafter, the ID of the initials block may be re-used for each initials field
13
13
  * to be "stamped" by the user.
14
14
  */
15
- export declare const createInitials: (endpoint: VerdocsEndpoint, name: string, initials: string | Blob) => Promise<IInitials>;
15
+ export declare const createInitials: (endpoint: VerdocsEndpoint, name: string, initials: Blob) => Promise<IInitials>;
@@ -6,8 +6,7 @@
6
6
  */
7
7
  export var createInitials = function (endpoint, name, initials) {
8
8
  var data = new FormData();
9
- data.append(name, initials);
10
- // data.append('initial', initials, name);
9
+ data.append('initial', initials, name);
11
10
  return endpoint.api //
12
11
  .post("/initials", data)
13
12
  .then(function (r) { return r.data; });
@@ -13,7 +13,7 @@ export interface ISignature {
13
13
  * create and store a signature block. Thereafter, the ID of the signature block may be re-used for each signature field
14
14
  * to be "stamped" by the user.
15
15
  */
16
- export declare const createSignature: (endpoint: VerdocsEndpoint, name: string, signature: string | Blob) => Promise<ISignature>;
16
+ export declare const createSignature: (endpoint: VerdocsEndpoint, name: string, signature: Blob) => Promise<ISignature>;
17
17
  /**
18
18
  * Get the availbable signatures for a user.
19
19
  */
@@ -6,8 +6,7 @@
6
6
  */
7
7
  export var createSignature = function (endpoint, name, signature) {
8
8
  var data = new FormData();
9
- data.append(name, signature);
10
- // data.append('signature', signature, name);
9
+ data.append('signature', signature, name);
11
10
  return endpoint.api //
12
11
  .post("/signatures", data)
13
12
  .then(function (r) { return r.data; });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@verdocs/js-sdk",
3
- "version": "3.0.8",
3
+ "version": "3.0.10",
4
4
  "private": false,
5
5
  "homepage": "https://github.com/Verdocs/js-sdk",
6
6
  "description": "Verdocs JS SDK",