Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-plugin-reanimated

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-reanimated - npm Package Compare versions

Comparing version 1.0.10 to 1.0.11

18

dist/rules/js-function-in-worklet.js

@@ -37,2 +37,3 @@ "use strict";

"Number",
"CallableFunction",
];

@@ -42,2 +43,15 @@ const functionNames = Array.from(functionHooks.keys());

const JSFunctionInWorkletMessage = "{{name}} is not a worklet. Use runOnJS instead.";
const isVarInScope = (name, scope) => {
const { variables } = scope;
if (variables.find((v) => v.name === name) !== undefined) {
return true;
}
else if (scope.type === "function") {
return false;
}
else if (scope.upper === null) {
return false;
}
return isVarInScope(name, scope.upper);
};
exports.default = createRule({

@@ -132,4 +146,4 @@ name: "js-function-in-worklet",

const declaration = signature === null || signature === void 0 ? void 0 : signature.declaration;
const { variables } = context.getScope();
if (variables.find((v) => v.name === name) !== undefined) {
const inScope = isVarInScope(name, context.getScope());
if (inScope) {
return;

@@ -136,0 +150,0 @@ }

2

package.json
{
"name": "eslint-plugin-reanimated",
"version": "1.0.10",
"version": "1.0.11",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "license": "MIT",

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