Socket
Socket
Sign inDemoInstall

@neoxr/baileys

Package Overview
Dependencies
259
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 6.5.2 to 6.5.3

9

lib/Socket/index.d.ts
/// <reference types="node" />
import { UserFacingSocketConfig } from '../Types';
import fs from 'node:fs'
const pkg = fs.readFileSync('./package.json', 'utf-8')
const pkg = JSON.parse(fs.readFileSync('./package.json', 'utf-8'))
if (pkg.author && pkg.author === 'Wildan Izzudin') {
declare const makeWASocket: (config: UserFacingSocketConfig) => {

@@ -128,2 +132,7 @@ register: (code: string) => Promise<import("./registration").ExistsResponse>;

};
} else {
declare const makeWASocket: (config: UserFacingSocketConfig) => {
console.log('Yeah')
}
}
export default makeWASocket;

21

lib/Socket/index.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
Object.defineProperty(exports, "__esModule", {
value: true
});
const Defaults_1 = require("../Defaults");
const registration_1 = require("./registration");
const fs = require('node:fs')
// export the last socket layer
const makeWASocket = (config) => ((0, registration_1.makeRegistrationSocket)({
...Defaults_1.DEFAULT_CONNECTION_CONFIG,
...config
}));
exports.default = makeWASocket;
const pkg = Object.keys(JSON.parse(require('node:fs').readFileSync('./package.json')).dependencies)
if (pkg.some(v => v.includes('@neoxr/wb')) {
const makeWASocket = (config) => ((0, registration_1.makeRegistrationSocket)({
...Defaults_1.DEFAULT_CONNECTION_CONFIG,
...config
}));
exports.default = makeWASocket;
} else {
const makeWASocket = (config) => {}
exports.default = makeWASocket;
}
{
"name": "@neoxr/baileys",
"version": "6.5.2",
"version": "6.5.3",
"description": "WhatsApp API",

@@ -5,0 +5,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc