![Maven Central Adds Sigstore Signature Validation](https://cdn.sanity.io/images/cgdhsj6q/production/7da3bc8a946cfb5df15d7fcf49767faedc72b483-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
workdesk-common-module
Advanced tools
npm install --save ../common-module
import { isEmptyObject } from "common-module/util"; console.log(isEmptyObject({}));
import { Logger } from "common-module/util/logger"; Logger.info("This is my info", null, true);
import { Bcrypt } from "common-module/util/bcrypt"; console.log(Bcrypt.createHash("sanjay"));
import { Jwt } from "common-module/util/jwt"; console.log(Jwt.createToken({ id: 11 }));
import { Crypto } from "common-module/util/crypto"; const d1 = Crypto.encrypt("sanjay"); console.log(d1); const d2 = Crypto.decrypt(d1); console.log(d2);
import { sendMail, MailArg } from "common-module/util/mail"; let mailData = new MailArg( "sanjay.mscit7@gmail.com", "Test mail", "test by sanjay" ); sendMail(mailData, function (error, info) { if (error) { console.error(error); } if (info) console.log("Mail email sent successfully, messageId => ", info.messageId); });
import { DeviceType, NotificationBodyArg, sendPushNotification, } from "common-module/util/notification"; let notificationData = new NotificationBodyArg( "Test notification", "test by sanjay", 1, "profile", { name: "sanjay" }, 2 ); sendPushNotification( "qwertyuiopasdfghjklzxcvbnm", DeviceType.IOS, notificationData, function (error, info) { if (error) { console.error(error); } if (info) { console.log("Notification sent successfully, messageId => "); console.log(info); } } );
import { sendSms } from "common-module/util/sms"; sendSms("+917778899848", "this is test", function (error, info) { if (error) { console.log("error => ", error); } if (info) { console.log("info => ", info); } });
import apiAuthMiddleware from "common-module/middleware/api-auth"; import decryptRequestMiddleware from "common-module/middleware/decrypt-request"; import encryptResponseMiddleware from "common-module/middleware/encrypt-response";
app.use(apiAuthMiddleware); app.use(encryptResponseMiddleware); app.use(decryptRequestMiddleware);
import {encryptErrorHandler,errorHandler,InternalServerError} from "common-module/handler/error-handler";
import {HttpResponse} from "common-module/response/http-response";
import { EncryptHttpResponse } from "common-module/response/encrypt-http-response";
FAQs
npm install --save ../common-module
We found that workdesk-common-module demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.