Socket
Socket
Sign inDemoInstall

@api-components/api-annotation-document

Package Overview
Dependencies
Maintainers
4
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-components/api-annotation-document - npm Package Compare versions

Comparing version 4.2.1 to 4.2.2

2

package.json
{
"name": "@api-components/api-annotation-document",
"description": "An element to render RAML annotations based on AMF data model",
"version": "4.2.1",
"version": "4.2.2",
"license": "Apache-2.0",

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

@@ -134,4 +134,12 @@ /* eslint-disable class-methods-use-this */

}
const keys = custom.map((item) => item['@id']);
const properties = keys.map((k) => this.ensureObject(shape[k] || shape[`amf://id${k}`]));
const idKey = this._getAmfKey('amf://id');
const properties = custom.map((item) => {
const k = item['@id'];
const name = this._computeName(item);
const nameKey = this._getAmfKey(this.ns.aml.vocabularies.core.extensionName);
const object = this.ensureObject(shape[k] || shape[`amf://id${k}`] || shape[`${idKey}:${k}`])
object[nameKey] = object[nameKey] || name;
return object;
});
this._customList = properties;

@@ -138,0 +146,0 @@ }

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