New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@wppconnect/wa-js

Package Overview
Dependencies
Maintainers
2
Versions
168
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wppconnect/wa-js - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

dist/conn/patch.d.ts

7

CHANGELOG.md

@@ -1,4 +0,9 @@

# 3.0.0 (2024-03-09)
## 3.0.1 (2024-03-25)
### Bug Fixes
* Fixed isOfficialClient check ([#1769](https://github.com/wppconnect-team/wa-js/issues/1769)) ([88f1f0e](https://github.com/wppconnect-team/wa-js/commit/88f1f0e6daf18b0492ceffb6274adef02323dc35))

@@ -17,3 +17,4 @@ /*!

import './events';
import './patch';
export * from './functions';
export * from './types';

7

dist/labels/functions/addNewLabel.d.ts

@@ -31,6 +31,7 @@ /*!

* await WPP.labels.addNewLabel(`Name of label`, { labelColor: '#dfaef0' });
* //or
* await WPP.labels.addNewLabel(`Name of label`, { labelColor: 4292849392 });
* ```
* //or with color index
* await WPP.labels.addNewLabel(`Name of label`, { labelColor: 16 });
* ```
*/
export declare function addNewLabel(labelName: string, options?: NewLabelOptions): Promise<any>;
export declare function addNewLabel(labelName: string, options?: NewLabelOptions): Promise<import("..").Label>;
/*!
* Copyright 2021 WPPConnect Team
* Copyright 2023 WPPConnect Team
*

@@ -4,0 +4,0 @@ * Licensed under the Apache License, Version 2.0 (the "License");

@@ -17,4 +17,4 @@ /*!

/**
* Returns an array of color palette in positive decimal
* Returns an array of color palette in hex code
*/
export declare function getLabelColorPalette(): Promise<number[]>;
export declare function getLabelColorPalette(): Promise<string[]>;

@@ -21,2 +21,3 @@ /*!

export { deleteLabel, DeleteLabelReturn } from './deleteLabel';
export { editLabel } from './editLabel';
export { getAllLabels } from './getAllLabels';

@@ -23,0 +24,0 @@ export { getLabelById } from './getLabelById';

@@ -22,2 +22,3 @@ /*!

hexColor: string;
colorIndex: number;
}

@@ -34,2 +34,3 @@ /*!

getNewLabelColor(): any;
getNextAvailableColor(): any;
getLabelColorPalette(): any;

@@ -36,0 +37,0 @@ handleRemove(e?: any): any;

@@ -25,2 +25,3 @@ /*!

export * from './collections';
export * from './colorIndexToHex';
export * from './contactFunctions';

@@ -61,2 +62,3 @@ export * from './createFanoutMsgStanza';

export * from './getMembershipApprovalRequests';
export * from './getNextLabelId';
export * from './getNumChatsPinned';

@@ -82,2 +84,4 @@ export * from './getOrderInfo';

export * from './keepMessage';
export * from './labelAddAction';
export * from './labelAddAction';
export * from './markSeen';

@@ -84,0 +88,0 @@ export * from './mediaTypeFromProtobuf';

@@ -18,6 +18,15 @@ /*!

/**
* @deprecated
* @whatsapp 59992
* @whatsapp 259992 >= 2.2222.8
* @whatsapp 503153 >= 2.2228.4
* <= 2.3000.x
*/
export declare function setArchive(chat: ChatModel, archive: boolean, id?: string): Promise<void>;
/**
* @whatsapp >= 2.3000.1012117641
*/
export declare function setArchive(args: {
id: string;
archive: boolean;
}[]): Promise<void>;

@@ -24,2 +24,3 @@ /*!

export * from './ImageUtils';
export * from './IsOfficialClient';
export * from './MediaBlobCache';

@@ -26,0 +27,0 @@ export * from './MediaEntry';

@@ -193,2 +193,3 @@ /*!

mdDowngrade?: any;
isCaptionByUser: boolean;
isSendFailure: boolean;

@@ -195,0 +196,0 @@ appStateSyncKeyShare?: any;

@@ -60,2 +60,18 @@ /*!

/*!
* Copyright 2024 WPPConnect Team
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/*!
* EventEmitter2

@@ -62,0 +78,0 @@ * https://github.com/hij1nx/EventEmitter2

{
"name": "@wppconnect/wa-js",
"version": "3.0.0",
"version": "3.0.1",
"description": "WPPConnect/WA-JS is an open-source project with the aim of exporting functions from WhatsApp Web",

@@ -42,8 +42,8 @@ "license": "Apache-2.0",

"devDependencies": {
"@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^19.0.3",
"@commitlint/prompt-cli": "^19.0.3",
"@commitlint/cli": "^19.2.1",
"@commitlint/config-conventional": "^19.1.0",
"@commitlint/prompt-cli": "^19.2.0",
"@playwright/test": "^1.42.1",
"@types/debug": "^4.1.12",
"@types/node": "^16.18.87",
"@types/node": "^16.18.91",
"@types/node-fetch": "^2.6.11",

@@ -53,5 +53,5 @@ "@types/parse-data-url": "^3.0.2",

"@types/shelljs": "^0.8.15",
"@typescript-eslint/eslint-plugin": "^7.1.1",
"@typescript-eslint/parser": "^7.1.1",
"@wppconnect/wa-version": "^1.2.267",
"@typescript-eslint/eslint-plugin": "^7.3.1",
"@typescript-eslint/parser": "^7.3.1",
"@wppconnect/wa-version": "^1.4.6",
"buffer": "^6.0.3",

@@ -80,10 +80,10 @@ "compare-versions": "^6.1.0",

"ts-loader": "^9.5.1",
"ts-morph": "^21.0.1",
"ts-morph": "^22.0.0",
"ts-node": "^10.9.2",
"typedoc": "^0.25.11",
"typedoc-plugin-mdn-links": "^3.1.17",
"typedoc": "^0.25.12",
"typedoc-plugin-mdn-links": "^3.1.18",
"typedoc-plugin-missing-exports": "^2.2.0",
"typescript": "^5.4.2",
"typescript": "^5.4.3",
"typescript-debounce-decorator": "^0.0.18",
"webpack": "^5.90.3",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4"

@@ -90,0 +90,0 @@ },

@@ -102,3 +102,3 @@ # WPPConnect/WA-JS

const browser = await playwright.chromium.launch();
const page = browser.newPage();
const page = await browser.newPage();

@@ -116,3 +116,3 @@ await page.goto('https://web.whatsapp.com/');

const isAuthenticated: string = await page.evaluate(() =>
WPP.auth.isAuthenticated()
WPP.conn.isAuthenticated()
);

@@ -119,0 +119,0 @@

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc