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

@bettercorp/tools

Package Overview
Dependencies
Maintainers
2
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bettercorp/tools - npm Package Compare versions

Comparing version 1.0.6 to 1.0.7

2

lib/Tools.d.ts
import * as MOMENT from 'moment';
import { MergeObjectsKey } from './Interfaces';
export declare class Tools {
static encrypt(text: string, key: string): string;
static decrypt(text: string, key: string): string;
static inIframe(): boolean;

@@ -5,0 +7,0 @@ static setUpdatedTemplatePathFinder(path: string, endObj: any, workingTemplate: any): any;

@@ -14,2 +14,4 @@ "use strict";

const MOMENT = require("moment");
const CryptoAES = require("crypto-js/aes");
const CryptoENC = require("crypto-js/enc-utf8");
var stream = require('stream');

@@ -26,2 +28,8 @@ var Transform = stream.Transform;

class Tools {
static encrypt(text, key) {
return CryptoAES.encrypt(text, key).toString();
}
static decrypt(text, key) {
return CryptoAES.decrypt(text, key).toString(CryptoENC);
}
static inIframe() {

@@ -28,0 +36,0 @@ try {

5

package.json

@@ -17,6 +17,8 @@ {

"main": "lib/index.js",
"version": "1.0.6",
"version": "1.0.7",
"dependencies": {
"@types/node": "^14.10.2",
"@types/uuid": "^8.0.0",
"crypto": "^1.0.1",
"crypto-js": "^4.0.0",
"events": "^3.1.0",

@@ -30,2 +32,3 @@ "express": "^4.16.4",

"devDependencies": {
"@types/crypto-js": "^4.0.1",
"ts-node": "^8.0.2",

@@ -32,0 +35,0 @@ "tslint": "^5.12.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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