els-component-extraction-addon
Advanced tools
Comparing version 0.1.11 to 0.1.12
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129758
635