
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
dyfactor-plugin-disambiguate-locals
Advanced tools
Dyfactor codemod for migrating to mandatory "this" in glimmer templates
This is a Dynamic Dyfcator Plugin that identifies local properties that are typically resolved by Ember's property fallback functionality. This is meant to provide a migration path for RFC#308.
> yarn add dyfactor-plugin-disambiguate-locals --dev
> dyfactor run template disambiguate-locals ./app --level <extract|modify>
Given a template and component that look this:
import Component from '@ember/component';
export Component.extend({
name: 'Chad',
company: 'LinkedIn'
});
<h1>{{name}}!</h1>
<h2>Company: {{company}}</h2>
<ul>
{{#each projects as |project|}}
<li>{{project.name}}</li>
{{/each}}
</ul>
This plugin will either re-write the template to:
- <h1>{{name}}!</h1>
+ <h1>{{this.name}}!</h1>
- <h2>Company: {{company}}</h2>
+ <h2>Company: {{this.company}}</h2>
<ul>
{{#each projects as |project|}}
<li>{{project.name}}</li>
{{/each}}
</ul>
or write a telemetry file to disk that looks like the following:
{
"./app/templates/components/top-card.hbs": ["name", "company"]
}
FAQs
Dyfactor codemod for migrating to mandatory "this" in glimmer templates
The npm package dyfactor-plugin-disambiguate-locals receives a total of 0 weekly downloads. As such, dyfactor-plugin-disambiguate-locals popularity was classified as not popular.
We found that dyfactor-plugin-disambiguate-locals demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.