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

els-component-extraction-addon

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

els-component-extraction-addon - npm Package Compare versions

Comparing version 0.1.11 to 0.1.12

2

package.json
{
"name": "els-component-extraction-addon",
"version": "0.1.11",
"version": "0.1.12",
"description": "Ember Language Server Templates Code Actions extension",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -16,2 +16,3 @@ const babel = require("@babel/core");

name.endsWith("s") ||
name.endsWith("list") ||
lowerName.includes("collection") ||

@@ -27,2 +28,3 @@ lowerName.includes("array")

(name.startsWith("on") && isUpperCased(name.charAt(2))) ||
(name.startsWith("set") && isUpperCased(name.charAt(3))) ||
name.includes("handle") ||

@@ -45,2 +47,3 @@ name.includes("load")

name.startsWith("checked") ||
name.startsWith("should") ||
name.includes("show") ||

@@ -90,2 +93,6 @@ name.includes("hide") ||

scopeValues[name] = shape[name];
const isPseudoArray = !Array.isArray(scopeValues[name]) && typeof shape === 'object' && shape !== null && 'length' in shape && shape.length === 'any' && Object.keys(shape).length === 1;
if (isPseudoArray) {
scopeValues[name] = ['one', 'two', 'three'];
}
} else {

@@ -92,0 +99,0 @@ scopeValues[name] = variableMockByName(name);

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