Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
apostrophe-anchor-field-type
Advanced tools
Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL
Improves apostrophe-schemas
to add an anchor
field type that displays all id
and name
attributes from the target remote URL.
An anchor field depends on other schema fields to tell it what URLs it should look up to find id
s and name
s. You must provide a remoteAnchorsFields
property to tell it what fields to connect to.
// ... other schema fields
{
type: 'anchor',
name: 'anchor',
label: 'Anchor ID',
remoteAnchorsFields: ['_page', 'url'],
}
remoteAnchorsFields
is an array of field names in the schema.
Shorthand makes the assumption that _page
is a join (because of the leading _ in its name) and, conversely, that url
is a string field. These assumptions also mean that:
joinByOne
field type, and should be treated as such in the context of the current site. // ... other schema fields
{
type: 'anchor',
name: 'anchor',
label: 'Anchor ID',
remoteAnchorsFields: {
fieldName: '_page',
urlType: 'relative',
fieldType: 'join'
},
}
Spells out what is assumed in shorthand syntax.
urlType
tells module how to request the remote page.fieldType
tells module what type of apostrophe field to connect to. // ... other schema fields
{
type: 'anchor',
name: 'anchor',
label: 'Anchor ID',
remoteAnchorsFields: [
{
fieldName: '_page',
urlType: 'relative',
fieldType: 'join'
},
{
fieldName: 'url',
urlType: 'absolute',
fieldType: 'string'
},
],
}
FAQs
Adds an `anchor` field type to apostrophe-schemas that populates a select with ID and name attributes from a target URL
The npm package apostrophe-anchor-field-type receives a total of 6 weekly downloads. As such, apostrophe-anchor-field-type popularity was classified as not popular.
We found that apostrophe-anchor-field-type demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.