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

@rehearsal/utils

Package Overview
Dependencies
Maintainers
3
Versions
67
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rehearsal/utils - npm Package Compare versions

Comparing version 0.0.39 to 1.0.0-beta

3

package.json
{
"name": "@rehearsal/utils",
"version": "0.0.39",
"version": "1.0.0-beta",
"description": "Rehearsal Utils",

@@ -43,2 +43,3 @@ "keywords": [

"lint:tsc-src": "tsc --noEmit",
"lint:tsc-test": "tsc --noEmit --project test/tsconfig.json",
"test": "vitest --run",

@@ -45,0 +46,0 @@ "test:watch": "vitest --coverage --watch"

@@ -108,22 +108,5 @@ /**

export function isNodeInsideJsx(node: Node): boolean {
const visit = (node: Node): boolean => {
if (node === undefined || isSourceFile(node)) {
return false;
}
if (isJsxElement(node) || isJsxFragment(node)) {
return true;
}
return visit(node.parent);
};
return visit(node);
return findAncestor(node, (node) => isJsxElement(node) || isJsxFragment(node)) !== undefined;
}
export function insertIntoText(text: string, insertAt: number, strToInsert: string): string {
const newText = `${text.substring(0, insertAt)}${strToInsert}${text.substring(insertAt)}`;
return newText;
}
/**

@@ -130,0 +113,0 @@ * Checks if node is a variable passed in catch clause.

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