@wppconnect/wa-js 1.1.2 → 1.1.3

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/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+ ## 1.1.3 (2022-01-08)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * Fixed WPP.chat.downloadMedia for Videos in Chromium ([ba07dfc](https://github.com/wppconnect-team/wa-js/commit/ba07dfcf7d11dda6d379766932bdd43adc9cd319))
7
+
8
+
9
+
1
10
  ## 1.1.2 (2022-01-08)
2
11
 
3
12
 
@@ -18,4 +18,4 @@
18
18
  *
19
19
  * @category Message
20
20
  */
21
- export declare function downloadMedia(id: string): Promise<any>;
21
+ export declare function downloadMedia(id: string): Promise<Blob>;
package/dist/index.d.ts CHANGED
@@ -27,6 +27,7 @@ export * as contact from './contact';
27
27
  export * as group from './group';
28
28
  export * as labels from './labels';
29
29
  export * as status from './status';
30
+ export * as util from './util';
30
31
  export * as whatsapp from './whatsapp';
31
32
  export declare const version: string;
32
33
  export declare const license = "Apache-2.0";
@@ -0,0 +1,16 @@
1
+ /*!
2
+ * Copyright 2021 WPPConnect Team
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License");
5
+ * you may not use this file except in compliance with the License.
6
+ * You may obtain a copy of the License at
7
+ *
8
+ * http://www.apache.org/licenses/LICENSE-2.0
9
+ *
10
+ * Unless required by applicable law or agreed to in writing, software
11
+ * distributed under the License is distributed on an "AS IS" BASIS,
12
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
+ * See the License for the specific language governing permissions and
14
+ * limitations under the License.
15
+ */
16
+ export declare function blobToBase64(blob: Blob): Promise<string>;
@@ -13,6 +13,8 @@
13
13
  * See the License for the specific language governing permissions and
14
14
  * limitations under the License.
15
15
  */
16
+ export * from './blobToBase64';
17
+ export * from './convertToFile';
16
18
  export * from './createWid';
17
19
  export * from './errors';
18
20
  export * from './types';
@@ -29,6 +29,7 @@ export declare class MediaObject {
29
29
  contentInfo: any;
30
30
  progressiveStage: any;
31
31
  parsedVcards: any;
32
+ type: string;
32
33
  consolidate(e: any): any;
33
34
  clearBlob(): void;
34
35
  contentFields(): any;
@@ -32,7 +32,7 @@ export declare class OpaqueData extends OpaqueDataBase {
32
32
  size(): number;
33
33
  formData(): string;
34
34
  type(): string;
35
- forceToBlob(): string;
35
+ forceToBlob(): Blob;
36
36
  isBlobEqual(e: any): string;
37
37
  static createFromBase64Jpeg(base64: string): Promise<OpaqueData>;
38
38
  static createFromData(blob: BlobPart, type?: string): Promise<OpaqueData>;