
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
ember-cli-addon-docs-yuidoc
Advanced tools
YUIDoc plugin for Ember CLI Addon Docs. This plugin adds automatic API documentation to your addon through a modified version of YUIDoc with support for:
ember install ember-cli-addon-docs-yuidoc
You can document classes using standard YUIDoc syntax with a few modifications
@field
as an alias for @property
@accessor
to reference a native getter/setter, or @computed
for an Ember computed. These document the same, but @computed
assumes a
setter exists, whereas @accessor
requires you to add the @set
tag.@static
, @async
, and @generator
modifiers to methods/**
A foo class
@class Foo
@anArbitraryTag
@public
*/
export default class Foo {
/**
A field named foo
@field foo
@type number
*/
foo = 123;
/**
An accessor named baz
@accessor baz
@type any
@set
*/
get bar() {
return this._baz;
}
set bar(val) {
this._baz = val;
}
/**
A static async method named grault
@method grault
@static
@async
*/
static async baz() {
// ...
}
}
Components can be documented the same as classes, and will be automatically detected based on folder structure. They also have two extra types of properties:
@yield
which must be applied to the class itself@argument
which is meant to represent an argument passed into the
component/**
A foo-bar component. Usage:
```hbs
{{#foo-bar baz=123 as |hash|}}
{{/foo-bar}}
```
@class FooBarComponent
@yield {Hash} hash
@yield {number} hash.foo
*/
export default Ember.Component.extend({
/**
@argument baz
@type {number}
*/
baz: -1
});
Modules will automatically be detected - no need to use @module
. You can use
the following tags:
@function
documents plain functions@variable
, @const
, or @constant
documents variable values@export [named|default]
specifies the export type
/**
@class Foo
@export named
*/
export class Foo {}
/**
@function bar
@export default
*/
export default function bar() {}
/**
@const baz
@type {number}
*/
export const baz = 123;
See the Contributing guide for details.
This project is licensed under the MIT License.
v1.1.0 (2024-02-22)
FAQs
YUIDoc plugin for ember-cli-addon-docs
The npm package ember-cli-addon-docs-yuidoc receives a total of 5,357 weekly downloads. As such, ember-cli-addon-docs-yuidoc popularity was classified as popular.
We found that ember-cli-addon-docs-yuidoc demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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.
Research
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.