New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@api-components/amf-helper-mixin

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@api-components/amf-helper-mixin - npm Package Compare versions

Comparing version 4.0.7 to 4.0.8

24

amf-helper-mixin.js

@@ -123,2 +123,4 @@ /**

ns.aml.vocabularies.shapes.AnyShape = shapesKey + 'AnyShape';
ns.aml.vocabularies.shapes.MatrixShape = shapesKey + 'MatrixShape';
ns.aml.vocabularies.shapes.TupleShape = shapesKey + 'TupleShape';
ns.aml.vocabularies.shapes.DataTypeFragment = shapesKey + 'DataTypeFragment';

@@ -136,2 +138,4 @@ ns.aml.vocabularies.shapes.range = shapesKey + 'range';

ns.aml.vocabularies.shapes.nil = shapesKey + 'nil';
ns.aml.vocabularies.shapes.dateTimeOnly = shapesKey + 'dateTimeOnly';
ns.aml.vocabularies.shapes.password = shapesKey + 'password';
ns.aml.vocabularies.shapes.schema = shapesKey + 'schema';

@@ -149,2 +153,18 @@ ns.aml.vocabularies.shapes.xmlSerialization = shapesKey + 'xmlSerialization';

ns.aml.vocabularies.data.value = dataKey + 'value';
ns.aml.vocabularies.data.type = dataKey + 'type';
ns.aml.vocabularies.data.description = dataKey + 'description';
ns.aml.vocabularies.data.required = dataKey + 'required';
ns.aml.vocabularies.data.displayName = dataKey + 'displayName';
ns.aml.vocabularies.data.minLength = dataKey + 'minLength';
ns.aml.vocabularies.data.maxLength = dataKey + 'maxLength';
ns.aml.vocabularies.data.default = dataKey + 'default';
ns.aml.vocabularies.data.multipleOf = dataKey + 'multipleOf';
ns.aml.vocabularies.data.minimum = dataKey + 'minimum';
ns.aml.vocabularies.data.maximum = dataKey + 'maximum';
ns.aml.vocabularies.data.enum = dataKey + 'enum';
ns.aml.vocabularies.data.pattern = dataKey + 'pattern';
ns.aml.vocabularies.data.items = dataKey + 'items';
ns.aml.vocabularies.data.format = dataKey + 'format';
ns.aml.vocabularies.data.example = dataKey + 'example';
ns.aml.vocabularies.data.examples = dataKey + 'examples';

@@ -182,2 +202,6 @@ ns.aml.vocabularies.docSourceMaps = ns.aml.vocabularies.key + 'document-source-maps#';

ns.w3.xmlSchema.nil = ns.w3.xmlSchema.key + 'nil';
ns.w3.xmlSchema.dateTime = ns.w3.xmlSchema.key + 'dateTime';
ns.w3.xmlSchema.time = ns.w3.xmlSchema.key + 'time';
ns.w3.xmlSchema.date = ns.w3.xmlSchema.key + 'date';
ns.w3.xmlSchema.base64Binary = ns.w3.xmlSchema.key + 'base64Binary';
// w3 types

@@ -184,0 +208,0 @@ ns.w3.shacl = {};

@@ -654,1 +654,22 @@ <a name="2.0.11"></a>

## [4.0.7](https://github.com/advanced-rest-client/amf-helper-mixin/compare/3.0.2...4.0.7) (2019-10-12)
### Bug Fixes
* fixes [#1](https://github.com/advanced-rest-client/amf-helper-mixin/issues/1) (SE-12957) ([7eced33](https://github.com/advanced-rest-client/amf-helper-mixin/commit/7eced33))
* fixes setting cache value ([05bfb11](https://github.com/advanced-rest-client/amf-helper-mixin/commit/05bfb11))
* fixing linter error ([73c0cce](https://github.com/advanced-rest-client/amf-helper-mixin/commit/73c0cce))
* fixing media type placement ([9340378](https://github.com/advanced-rest-client/amf-helper-mixin/commit/9340378))
* fixing placemenet of SecuritySchemeFragment ([851f686](https://github.com/advanced-rest-client/amf-helper-mixin/commit/851f686))
* fixing previous fix ¯\_(ツ)_/¯ ([66185a8](https://github.com/advanced-rest-client/amf-helper-mixin/commit/66185a8))
* fixing type identyfication in compact model ([5d16747](https://github.com/advanced-rest-client/amf-helper-mixin/commit/5d16747))
### Features
* adding `__amfChanged` cllaback for amf setter ([e0bf834](https://github.com/advanced-rest-client/amf-helper-mixin/commit/e0bf834))
* adding guard to call `__amfChanged` only once per model ([db717b3](https://github.com/advanced-rest-client/amf-helper-mixin/commit/db717b3))

2

changes/schema.changes.txt

@@ -32,3 +32,1 @@ schema => aml.vocabularies.core

./api-endpoint-documentation/api-endpoint-documentation.js: const name = this._getValue(item, this.ns.schema.schemaName);
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.schema.schemaName;
./api-view-model-transformer/api-view-model-transformer.js: const result = this._getValue(def, this.ns.schema.schemaName);

@@ -49,8 +49,1 @@ ./api-body-editor/api-body-editor-amf-overlay.js: } else if (this._hasType(schema, this.ns.w3.shacl.name + 'NodeShape')) {

./api-endpoint-documentation/coverage/api-endpoint-documentation.js.html: let value = this._getValue(item, this.ns.w3.shacl.name + 'defaultValue');
./api-view-model-transformer/api-view-model-transformer.js: if (this._hasType(amfItem, this.ns.w3.shacl.name + 'PropertyShape')) {
./api-view-model-transformer/api-view-model-transformer.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.w3.shacl.name + 'minCount';
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.w3.shacl.name + String(property);
./api-view-model-transformer/api-view-model-transformer.js: const valueKey = this._getAmfKey(this.ns.w3.shacl.name + 'defaultValueStr');
./api-view-model-transformer/api-view-model-transformer.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-view-model-transformer/api-view-model-transformer.js: const valueKey = this._getAmfKey(this.ns.w3.shacl.name + 'defaultValue');

@@ -7,9 +7,1 @@ ns2.aml.vocabularies.data

./api-type-document/property-range-document.js: let result = this._getValue(value, this.ns.raml.vocabularies.data + 'value');
./api-view-model-transformer/api-view-model-transformer.js: if (this._hasType(items, this.ns.raml.vocabularies.data + 'Object')) {
./api-view-model-transformer/api-view-model-transformer.js: const dataKey = this._getAmfKey(this.ns.raml.vocabularies.data);
./api-view-model-transformer/api-view-model-transformer.js: const dPrefix = this.ns.raml.vocabularies.data;
./api-view-model-transformer/api-view-model-transformer.js: const dKey = this._getAmfKey(this.ns.raml.vocabularies.data);
./api-view-model-transformer/api-view-model-transformer.js: case this._getAmfKey(this.ns.raml.vocabularies.data + 'Scalar'):
./api-view-model-transformer/api-view-model-transformer.js: case this._getAmfKey(this.ns.raml.vocabularies.data + 'Array'):
./api-view-model-transformer/api-view-model-transformer.js: const valueKey = this._getAmfKey(this.ns.raml.vocabularies.data + 'value');
./api-view-model-transformer/api-view-model-transformer.js: const vKey = this._getAmfKey(this.ns.raml.vocabularies.data + 'value');

@@ -27,10 +27,2 @@ ns.aml.vocabularies.apiContract;

./api-request-editor/src/ApiRequestEditor.js: const key = this._getAmfKey(this.ns.raml.vocabularies.http + 'payload');
./api-view-model-transformer/api-view-model-transformer.js: if (this._hasType(amfItem, this.ns.raml.vocabularies.http + 'Parameter')) {
./api-view-model-transformer/api-view-model-transformer.js: const sKey = this._getAmfKey(this.ns.raml.vocabularies.http + 'schema');
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.raml.vocabularies.http + 'binding';
./api-view-model-transformer/test/amf-model.test.js: const hKey = element._getAmfKey(element.ns.raml.vocabularies.http + 'header');
./api-view-model-transformer/test/amf-model.test.js: const pKey = element._getAmfKey(element.ns.raml.vocabularies.http + 'parameter');
./api-view-model-transformer/test/amf-model.test.js: const pKey = element._getAmfKey(element.ns.raml.vocabularies.http + 'parameter');
./api-view-model-transformer/test/amf-model.test.js: const pKey = element._getAmfKey(element.ns.raml.vocabularies.http + 'parameter');
./api-view-model-transformer/test/apic-168.test.js: const qKey = element._getAmfKey(element.ns.raml.vocabularies.http + 'queryString');
./api-documentation/api-documentation.js: name = this._getValue(item, this.ns.raml.vocabularies.http + 'path');

@@ -37,0 +29,0 @@ ./api-documentation/api-documentation.js: if (this._hasType(model, this.ns.raml.vocabularies.http + 'EndPoint')) {

@@ -8,3 +8,2 @@ raml.vocabularies.http + 'schema' => ns.aml.vocabularies.shapes.schema

./api-body-editor/src/ApiBodyEditorAmfOverlay.js: const sKey = this._getAmfKey(this.ns.raml.vocabularies.http + 'schema');
./api-view-model-transformer/api-view-model-transformer.js: const sKey = this._getAmfKey(this.ns.raml.vocabularies.http + 'schema');
./api-body-document/api-body-document.js: const key = this._getAmfKey(this.ns.raml.vocabularies.http + 'schema');

@@ -11,0 +10,0 @@ ./api-endpoint-documentation/api-endpoint-documentation.js: const key = this._getAmfKey(this.ns.raml.vocabularies.http + 'schema');

@@ -43,14 +43,1 @@ ns2.aml.vocabularies.shapes

./api-body-document/api-body-document.js: } else if (this._hasType(body, this.ns.raml.vocabularies.shapes + 'AnyShape')) {
./api-view-model-transformer/api-view-model-transformer.js: if (this._hasType(amfItem, this.ns.raml.vocabularies.shapes + 'ScalarShape')) {
./api-view-model-transformer/api-view-model-transformer.js: const rangeKey = this._getAmfKey(this.ns.raml.vocabularies.shapes + 'range');
./api-view-model-transformer/api-view-model-transformer.js: this.ns.raml.vocabularies.shapes + 'fileType');
./api-view-model-transformer/api-view-model-transformer.js: const vsh = this.ns.raml.vocabularies.shapes;
./api-view-model-transformer/api-view-model-transformer.js: case this._getAmfKey(this.ns.raml.vocabularies.shapes + 'FileShape'):
./api-view-model-transformer/api-view-model-transformer.js: return this._getValueArray(model, this.ns.raml.vocabularies.shapes + 'fileType');
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.raml.vocabularies.shapes + String(property);
./api-view-model-transformer/api-view-model-transformer.js: const vsh = this.ns.raml.vocabularies.shapes;
./api-view-model-transformer/api-view-model-transformer.js: } else if (this._hasType(shape, this.ns.raml.vocabularies.shapes + 'ArrayShape')) {
./api-view-model-transformer/api-view-model-transformer.js: if (!this._hasType(model, this.ns.raml.vocabularies.shapes + 'ArrayShape')) {
./api-view-model-transformer/api-view-model-transformer.js: const itKeys = this._getAmfKey(this.ns.raml.vocabularies.shapes + 'items');
./api-view-model-transformer/api-view-model-transformer.js: const key = this._getAmfKey(this.ns.raml.vocabularies.shapes + 'anyOf');
./api-view-model-transformer/api-view-model-transformer.js: if (this._hasType(values[i], this.ns.raml.vocabularies.shapes + 'NilShape')) {

@@ -23,2 +23,1 @@ ns2.w3.hydra.core => ns2.aml.vocabularies.apiContract;

./api-endpoint-documentation/api-endpoint-documentation.js: let name = this._getValue(method, this.ns.w3.hydra.core + 'method');
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.w3.hydra.core + 'required';

@@ -10,31 +10,2 @@ ns2.w3.shacl

./api-body-editor/api-body-editor-amf-overlay.js: if (this._hasType(item, this.ns.w3.shacl.name + 'NodeShape')) {
./api-example-generator/api-example-generator.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-example-generator/api-example-generator.js: const typeName = this._getValue(schema, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: raw = this._getValue(example, this.ns.w3.shacl.name + 'raw');
./api-example-generator/api-example-generator.js: let name = this._getValue(unionSchape, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-example-generator/api-example-generator.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-example-generator/api-example-generator.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-example-generator/api-example-generator.js: const typeName = this._getValue(schema, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: const name = this._getValue(property, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: if (this._hasType(range, this.ns.w3.shacl.name + 'NodeShape')) {
./api-example-generator/api-example-generator.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-example-generator/api-example-generator.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-example-generator/api-example-generator.js: const name = this._getValue(item, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: if (this._hasType(item, this.ns.w3.shacl.name + 'NodeShape')) {
./api-example-generator/api-example-generator.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-example-generator/api-example-generator.js: return this._getValue(example, this.ns.w3.shacl.name + 'raw');
./api-example-generator/api-example-generator.js: const dvKey = this._getAmfKey(this.ns.w3.shacl.name + 'defaultValue');
./api-example-generator/api-example-generator.js: if (this._hasType(property, this.ns.w3.shacl.name + 'NodeShape')) {
./api-example-generator/api-example-generator.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-example-generator/api-example-generator.js: name = this._getValue(range, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: if (this._hasType(range, this.ns.w3.shacl.name + 'NodeShape')) {
./api-example-generator/api-example-generator.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-example-generator/api-example-generator.js: name = this._getValue(range, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: let name = this._getValue(range, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: let nodeValue = this._getValue(range, this.ns.w3.shacl.name + 'defaultValueStr');
./api-example-generator/api-example-generator.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-example-generator/api-example-generator.js: const name = this._getValue(prop, this.ns.w3.shacl.name + 'name');
./api-example-generator/api-example-generator.js: const name = this._getValue(property, this.ns.w3.shacl.name + 'name') || 'unknown';
./api-example-generator/api-example-generator.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-type-document/property-document-mixin.js: const key = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');

@@ -95,13 +66,1 @@ ./api-type-document/property-document-mixin.js: if (this._hasType(range, this.ns.w3.shacl.name + 'NodeShape')) {

./api-method-documentation/api-method-documentation.js: let value = this._getValue(schema, this.ns.w3.shacl.name + 'defaultValue');
./api-endpoint-documentation/api-endpoint-documentation.js: let value = this._getValue(item, this.ns.w3.shacl.name + 'defaultValue');
./api-view-model-transformer/api-view-model-transformer.js: if (this._hasType(amfItem, this.ns.w3.shacl.name + 'PropertyShape')) {
./api-view-model-transformer/api-view-model-transformer.js: result.schema.isEnum = this._hasProperty(def, this.ns.w3.shacl.in);
./api-view-model-transformer/api-view-model-transformer.js: result.schema.isEnum = this._hasProperty(def, this.ns.w3.shacl.in);
./api-view-model-transformer/api-view-model-transformer.js: const pKey = this._getAmfKey(this.ns.w3.shacl.name + 'property');
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.w3.shacl.name + 'minCount';
./api-view-model-transformer/api-view-model-transformer.js: const sa = this.ns.w3.shacl.name;
./api-view-model-transformer/api-view-model-transformer.js: const key = this.ns.w3.shacl.name + String(property);
./api-view-model-transformer/api-view-model-transformer.js: const valueKey = this._getAmfKey(this.ns.w3.shacl.name + 'defaultValueStr');
./api-view-model-transformer/api-view-model-transformer.js: const dtKey = this._getAmfKey(this.ns.w3.shacl.name + 'datatype');
./api-view-model-transformer/api-view-model-transformer.js: const valueKey = this._getAmfKey(this.ns.w3.shacl.name + 'defaultValue');
./api-view-model-transformer/api-view-model-transformer.js: const key = this._getAmfKey(this.ns.w3.shacl.in);
{
"name": "@api-components/amf-helper-mixin",
"description": "A mixin with common functions user by most AMF components to compyte AMF values",
"version": "4.0.7",
"version": "4.0.8",
"license": "Apache-2.0",

@@ -6,0 +6,0 @@ "main": "amf-helper-mixin.js",

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