diff --git a/demo/demo-base.js b/demo/demo-base.js index b13eccf3a..f0f8037a3 100644 --- a/demo/demo-base.js +++ b/demo/demo-base.js @@ -1,5 +1,5 @@ import { html, render } from 'lit-html'; -import '@advanced-rest-client/xhr-simple-request/xhr-simple-request.js'; +import '@api-components/api-request/xhr-simple-request.js'; import '@advanced-rest-client/oauth-authorization/oauth1-authorization.js'; import '@advanced-rest-client/oauth-authorization/oauth2-authorization.js'; import '@polymer/paper-toast/paper-toast.js'; @@ -7,6 +7,7 @@ import './helpers/loader-screen.js'; import './helpers/upload-api-screen.js'; import './helpers/api-file-selector.js'; import './helpers/api-selector.js'; + const apiCache = new WeakMap(); export class DemoBase { diff --git a/package-lock.json b/package-lock.json index d994bc4e5..545309143 100644 --- a/package-lock.json +++ b/package-lock.json @@ -276,15 +276,15 @@ } }, "@advanced-rest-client/http-code-snippets": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/http-code-snippets/-/http-code-snippets-3.2.0.tgz", - "integrity": "sha512-HRenBCl6u18tO8EGxGuMJtE/gw0OgvvqhRdtkf4t6J69iytVzcPt0ljGTyZGTAE/uWImfjAGnPqtwiA173jFIQ==", + "version": "3.2.1", + "resolved": "https://registry.npmjs.org/@advanced-rest-client/http-code-snippets/-/http-code-snippets-3.2.1.tgz", + "integrity": "sha512-3DC3IcY5A0CxZ+yLuwNkJSbdf0i5odMBjJ7R1HL5vX3Uny5RVKtzXmYN8lJMRIGjjbbkHHCJqSbB8HXjOcGceg==", "requires": { "@anypoint-web-components/anypoint-button": "^1.1.1", - "@anypoint-web-components/anypoint-tabs": "^0.1.11", + "@anypoint-web-components/anypoint-tabs": "^0.1.12", "@polymer/prism-element": "^3.0.0", "lit-element": "^2.4.0", - "prismjs": "^1.21.0" + "prismjs": "^1.23.0" } }, "@advanced-rest-client/http-method-selector": { @@ -466,16 +466,6 @@ "resolved": "https://registry.npmjs.org/@advanced-rest-client/uuid-generator/-/uuid-generator-3.1.1.tgz", "integrity": "sha512-FGC/8jodMca8j4qlSxn4+D+5PrrJfUzYkCxkfjNp9uSzMEuuSiBONIwKVKoCSu6HehBHvLpuGdmIh4KLE6RMJg==" }, - "@advanced-rest-client/xhr-simple-request": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/@advanced-rest-client/xhr-simple-request/-/xhr-simple-request-3.0.1.tgz", - "integrity": "sha512-gbTbcE1sNGCPQ/0DgJOm+ZDZFmmBHFaRc7ECpUFD/NZI/vHxkjjR0H+Cioa8ndWag/2kipkRnQcJdejrxxvBQg==", - "requires": { - "@advanced-rest-client/events-target-mixin": "^3.0.0", - "@advanced-rest-client/headers-parser-mixin": "^3.0.0", - "lit-element": "^2.2.1" - } - }, "@anypoint-web-components/anypoint-autocomplete": { "version": "0.2.8", "resolved": "https://registry.npmjs.org/@anypoint-web-components/anypoint-autocomplete/-/anypoint-autocomplete-0.2.8.tgz", @@ -701,9 +691,9 @@ } }, "@api-components/amf-helper-mixin": { - "version": "4.3.3", - "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.3.3.tgz", - "integrity": "sha512-whyqv55KswiNjs2OvXkd1GOoh0uodBQQ2PdavIQmMx6WXuMtK1M/WeWK+ae4oSrLjSfMZIElwHrhaENg+0pmDQ==" + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/@api-components/amf-helper-mixin/-/amf-helper-mixin-4.3.4.tgz", + "integrity": "sha512-YJg3gmckxI07Rw8B/5DCZMHoEC/Exl+FF1wDThfcN35UfE7yBrcAEQ4zbGcMHdloZQDPpg7B/KAV5g9pzdD/KQ==" }, "@api-components/api-annotation-document": { "version": "4.1.0", @@ -789,19 +779,19 @@ } }, "@api-components/api-documentation": { - "version": "6.0.0-preview", - "resolved": "https://registry.npmjs.org/@api-components/api-documentation/-/api-documentation-6.0.0-preview.tgz", - "integrity": "sha512-g2hzoXtjxzaCO8SRPPAMs6PNnJyGK79SRMXCQKlzid2oaW7Z6/cwKDW3aPnTRh+8B7deH1w092c/HZxtet4PDA==", + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/@api-components/api-documentation/-/api-documentation-6.0.1.tgz", + "integrity": "sha512-RA9oHqQZqVF/SrXVXFQpHTbBSMOoFChsejoPks7UHSx8mMVq6wEpYpmOuTxtmbW1KQM1m31eoaQmrvQ2TMeSsA==", "requires": { "@advanced-rest-client/events-target-mixin": "^3.2.3", - "@api-components/amf-helper-mixin": "^4.3.3", + "@api-components/amf-helper-mixin": "^4.3.4", "@api-components/api-documentation-document": "^4.0.2", - "@api-components/api-endpoint-documentation": "^6.0.0-preview", - "@api-components/api-method-documentation": "^5.1.8", + "@api-components/api-endpoint-documentation": "^6.0.0", + "@api-components/api-method-documentation": "^5.1.9", "@api-components/api-security-documentation": "^4.0.5", - "@api-components/api-server-selector": "^0.6.2", - "@api-components/api-summary": "^4.2.2", - "@api-components/api-type-documentation": "^4.0.4", + "@api-components/api-server-selector": "^0.6.3", + "@api-components/api-summary": "^4.3.0", + "@api-components/api-type-documentation": "^4.1.0", "lit-element": "^2.4.0", "lit-html": "^1.3.0" } @@ -818,23 +808,23 @@ } }, "@api-components/api-endpoint-documentation": { - "version": "6.0.0-preview", - "resolved": "https://registry.npmjs.org/@api-components/api-endpoint-documentation/-/api-endpoint-documentation-6.0.0-preview.tgz", - "integrity": "sha512-8YQvUfeIg62AcLEK1fOOvrq6Q33+BLYeAL+SV+6ZEwlAFGHlGBTY5/YEkUgEpjaI6Wxcbu/0ezyn3UJvO8iN9A==", + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/@api-components/api-endpoint-documentation/-/api-endpoint-documentation-6.0.0.tgz", + "integrity": "sha512-CvfB+dWvjsveF5Lt69WEvGK+8HCMjImiek9hgTBFxU428BO5MiYOvZbSgjvwfbRZwn8H1FItsVifd+O8XI7K4w==", "requires": { "@advanced-rest-client/arc-icons": "^3.2.2", "@advanced-rest-client/arc-marked": "^1.0.6", "@advanced-rest-client/clipboard-copy": "^3.0.1", - "@advanced-rest-client/http-code-snippets": "^3.1.2", + "@advanced-rest-client/http-code-snippets": "^3.2.1", "@advanced-rest-client/markdown-styles": "^3.1.2", "@anypoint-web-components/anypoint-button": "^1.0.15", "@anypoint-web-components/anypoint-collapse": "^0.1.0", - "@api-components/amf-helper-mixin": "^4.3.2", + "@api-components/amf-helper-mixin": "^4.3.4", "@api-components/api-annotation-document": "^4.0.3", "@api-components/api-example-generator": "^4.4.6", - "@api-components/api-method-documentation": "^5.1.8", + "@api-components/api-method-documentation": "^5.1.9", "@api-components/api-parameters-document": "^4.0.5", - "@api-components/api-request": "^0.1.0", + "@api-components/api-request": "^0.1.1", "@api-components/http-method-label": "^3.1.3", "lit-element": "^2.3.1", "lit-html": "^1.2.1" @@ -894,42 +884,40 @@ } }, "@api-components/api-headers-document": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@api-components/api-headers-document/-/api-headers-document-4.1.0.tgz", - "integrity": "sha512-WBJ4biAP9H1FNOQv0B/D9eXPDJ5USpaD69FD8XxxEw4bTLd/jpXJG0DFhEB9U2ex88yHSdvwWu30o7Mzl8yFIA==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@api-components/api-headers-document/-/api-headers-document-4.2.0.tgz", + "integrity": "sha512-8ipyXIrhHV3YHtd/FIuzijMkuB2v+7VYphBwI7J0c+ZaX+vyt8iXFL15619SPLnQ9RTrQW2u33t32I9kX55dHg==", "requires": { - "@advanced-rest-client/arc-icons": "^3.0.4", + "@advanced-rest-client/arc-icons": "^3.2.2", "@anypoint-web-components/anypoint-button": "^1.0.14", - "@api-components/api-type-document": "^4.0.4", - "@api-components/raml-aware": "^3.0.0", - "@polymer/iron-collapse": "^3.0.0", + "@anypoint-web-components/anypoint-collapse": "^0.1.0", + "@api-components/api-type-document": "^4.2.4", "lit-element": "^2.2.1" } }, "@api-components/api-method-documentation": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/@api-components/api-method-documentation/-/api-method-documentation-5.1.8.tgz", - "integrity": "sha512-gKAuMbe2AMCJoTpVfX1gVthBZFkRYwwHryJelBdNS7UWk3ahAxCHPU1TqzN2Gy68/BOwRTg7GZ/pK1Qn4qVZNQ==", + "version": "5.1.9", + "resolved": "https://registry.npmjs.org/@api-components/api-method-documentation/-/api-method-documentation-5.1.9.tgz", + "integrity": "sha512-Vih4O3Wd3h+TEWj3EMPHGsLy9nGelaM1AV9Upux9kzOZ+NnxQr+9KISET/ernUvM/hMTMU9EB76all4iDlntKQ==", "requires": { - "@advanced-rest-client/arc-icons": "^3.0.5", - "@advanced-rest-client/arc-marked": "^1.0.6", + "@advanced-rest-client/arc-icons": "^3.2.2", + "@advanced-rest-client/arc-marked": "^1.1.0", "@advanced-rest-client/clipboard-copy": "^3.0.1", - "@advanced-rest-client/http-code-snippets": "^3.1.2", - "@advanced-rest-client/markdown-styles": "^3.1.2", - "@anypoint-web-components/anypoint-button": "^1.0.15", - "@api-components/amf-helper-mixin": "^4.1.1", - "@api-components/api-annotation-document": "^4.0.3", - "@api-components/api-body-document": "^4.0.7", - "@api-components/api-example-generator": "^4.2.2", - "@api-components/api-headers-document": "^4.0.4", + "@advanced-rest-client/http-code-snippets": "^3.2.1", + "@advanced-rest-client/markdown-styles": "^3.1.3", + "@anypoint-web-components/anypoint-button": "^1.1.1", + "@anypoint-web-components/anypoint-collapse": "^0.1.0", + "@api-components/amf-helper-mixin": "^4.3.4", + "@api-components/api-annotation-document": "^4.1.0", + "@api-components/api-body-document": "^4.2.1", + "@api-components/api-example-generator": "^4.4.6", + "@api-components/api-headers-document": "^4.2.0", "@api-components/api-parameters-document": "^4.0.5", - "@api-components/api-responses-document": "^4.1.0", + "@api-components/api-responses-document": "^4.1.3", "@api-components/api-security-documentation": "^4.0.5", - "@api-components/http-method-label": "^3.0.2", - "@api-components/raml-aware": "^3.0.0", - "@polymer/iron-collapse": "^3.0.0", - "lit-element": "^2.3.1", - "lit-html": "^1.2.1" + "@api-components/http-method-label": "^3.1.3", + "lit-element": "^2.4.0", + "lit-html": "^1.3.0" } }, "@api-components/api-model-generator": { @@ -1001,9 +989,9 @@ } }, "@api-components/api-request": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@api-components/api-request/-/api-request-0.1.0.tgz", - "integrity": "sha512-kv81bXvri2vnjmxh9ACh5l+jbeAmjko+Rz2ERrTj/nor5oLRACxilUqR6F6yPdNzgox4y2sHdStuGUYXK7HctA==", + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/@api-components/api-request/-/api-request-0.1.2.tgz", + "integrity": "sha512-hbOECSLpNiycMHfQeKtg4OMjAuUyy7rT+gDRu4C4ReGenpIOO/TvcGLWK+lUO+5cz+i71PK73rQHE972Fk4KTA==", "requires": { "@advanced-rest-client/arc-events": "^0.2.13", "@advanced-rest-client/arc-headers": "^0.1.7", @@ -1016,13 +1004,13 @@ "@advanced-rest-client/oauth-authorization": "^5.0.3", "@advanced-rest-client/uuid-generator": "^3.1.1", "@anypoint-web-components/anypoint-button": "^1.1.1", - "@api-components/amf-helper-mixin": "^4.2.0", + "@api-components/amf-helper-mixin": "^4.3.4", "@api-components/api-authorization": "^0.5.0", "@api-components/api-body-editor": "^4.0.5", "@api-components/api-forms": "^0.1.2", "@api-components/api-headers": "^0.1.0", - "@api-components/api-server-selector": "^0.6.2", - "@api-components/api-url": "^0.1.0", + "@api-components/api-server-selector": "^0.6.3", + "@api-components/api-url": "^0.1.1", "cryptojslib": "^3.1.2", "jsrsasign": "^10.1.4", "lit-element": "^2.4.0", @@ -1030,19 +1018,20 @@ } }, "@api-components/api-resource-example-document": { - "version": "4.1.1", - "resolved": "https://registry.npmjs.org/@api-components/api-resource-example-document/-/api-resource-example-document-4.1.1.tgz", - "integrity": "sha512-p8Zka9c64/kktsB5Q2DTgiedvdyX/4N7GSyszkca20B/d08jScohBbVF0joVyZnVkwkkZaQkJUdFHLH5dd+WXQ==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/@api-components/api-resource-example-document/-/api-resource-example-document-4.1.2.tgz", + "integrity": "sha512-mfqQcAmOsjkC3z5cVgA0lpZDRCR6G0f6XcTTEW+t3Jb28zSo8qbIrOReQed5cn1cxoZeMkZqaEKzA/KvGY/mnw==", "requires": { - "@advanced-rest-client/arc-icons": "^3.0.5", + "@advanced-rest-client/arc-icons": "^3.2.2", + "@advanced-rest-client/arc-types": "^0.2.47", "@advanced-rest-client/clipboard-copy": "^3.0.1", - "@advanced-rest-client/json-table": "^3.1.5", + "@advanced-rest-client/json-table": "^3.2.0", "@advanced-rest-client/prism-highlight": "^4.0.2", "@anypoint-web-components/anypoint-button": "^1.0.15", - "@api-components/amf-helper-mixin": "^4.1.1", - "@api-components/api-example-generator": "^4.4.0", + "@api-components/amf-helper-mixin": "^4.3.3", + "@api-components/api-example-generator": "^4.4.6", "@polymer/prism-element": "^3.0.0", - "lit-element": "^2.3.1" + "lit-element": "^2.4.0" } }, "@api-components/api-responses-document": { @@ -1062,17 +1051,17 @@ } }, "@api-components/api-schema-document": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/@api-components/api-schema-document/-/api-schema-document-4.1.0.tgz", - "integrity": "sha512-Aca8ojU9kvkNVmsop9/Cj3Vwf5JK4q51jQy3CsYN9oFlUa1bAjasjwcvzDQvs6ceTX9bt9DbL+FdYdJ5kmDNQQ==", + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/@api-components/api-schema-document/-/api-schema-document-4.2.0.tgz", + "integrity": "sha512-wJQg8wkOlxXzN2Iak83vuOMurz/jI8eyDjagPkGWjceQF1FTtAiDaomlKQ7HJZTPp39wSr1Bbzjrdw6Y+9wbXQ==", "requires": { + "@advanced-rest-client/arc-types": "^0.2.47", "@advanced-rest-client/prism-highlight": "^4.0.2", - "@anypoint-web-components/anypoint-tabs": "^0.1.10", - "@api-components/amf-helper-mixin": "^4.1.1", - "@api-components/api-example-generator": "^4.2.0", - "@api-components/raml-aware": "^3.0.0", + "@anypoint-web-components/anypoint-tabs": "^0.1.12", + "@api-components/amf-helper-mixin": "^4.3.4", + "@api-components/api-example-generator": "^4.4.6", "@polymer/prism-element": "^3.0.0", - "lit-element": "^2.3.1" + "lit-element": "^2.4.0" } }, "@api-components/api-security-documentation": { @@ -1092,9 +1081,9 @@ } }, "@api-components/api-server-selector": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/@api-components/api-server-selector/-/api-server-selector-0.6.2.tgz", - "integrity": "sha512-LWszmRECZzs1oweMFIEs17D7x4Wox7phjiZwa/42H/Gq6x6uHTtZL0VwgJxzJ3pBWbNrAw1PpNcClznBih40aA==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/@api-components/api-server-selector/-/api-server-selector-0.6.3.tgz", + "integrity": "sha512-vqZRg64S3FFRbyDYqKOAaWac6JpL+M76oqbJwh8sJk7oiVP2FAZrpA1X1bVrWJ0MEmixxMwmIlzlwvNg8YVQ+w==", "requires": { "@advanced-rest-client/arc-icons": "^3.2.2", "@anypoint-web-components/anypoint-button": "^1.0.15", @@ -1103,63 +1092,62 @@ "@anypoint-web-components/anypoint-input": "^0.2.14", "@anypoint-web-components/anypoint-item": "^1.0.5", "@anypoint-web-components/anypoint-listbox": "^1.0.4", - "@api-components/amf-helper-mixin": "^4.3.2", + "@api-components/amf-helper-mixin": "^4.3.4", "lit-element": "^2.3.1", "lit-html": "^1.2.1" } }, "@api-components/api-summary": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/@api-components/api-summary/-/api-summary-4.2.2.tgz", - "integrity": "sha512-k+FD5F4YvhpuiuqK08Pm+dCH4CjDN/z5e8IrZIOI8eB8l6xxlUXhd47LpfE+BpPJzv71VPbzKmIJiMJgk6jN9w==", + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@api-components/api-summary/-/api-summary-4.3.0.tgz", + "integrity": "sha512-hcITD9tI+FgeouX/3Mel7e9/qPiUeNF/oDy7who7y31+XyxVGR3+70aj8KFvKeqmUrHeqEzApCjXGW0BqI3leg==", "requires": { "@advanced-rest-client/arc-marked": "^1.0.6", "@advanced-rest-client/markdown-styles": "^3.1.2", - "@api-components/amf-helper-mixin": "^4.0.24", - "@api-components/api-method-documentation": "^5.0.6", + "@api-components/amf-helper-mixin": "^4.3.4", + "@api-components/api-method-documentation": "^5.1.9", "@api-components/http-method-label": "^3.0.2", "@api-components/raml-aware": "^3.0.0", "@polymer/iron-meta": "^3.0.0", "dompurify": "^2.0.8", - "lit-element": "^2.3.1" + "lit-element": "^2.3.1", + "lit-html": "^1.3.0" } }, "@api-components/api-type-document": { - "version": "4.2.3", - "resolved": "https://registry.npmjs.org/@api-components/api-type-document/-/api-type-document-4.2.3.tgz", - "integrity": "sha512-vXGzblBoLU0eh9b2jO8U6XYgofZ+KZoYgMOuQMtGvF5krXwi9+xBK1D0CbPTzpJ4w+KILgqz8mipuGCHvwVHTA==", + "version": "4.2.4", + "resolved": "https://registry.npmjs.org/@api-components/api-type-document/-/api-type-document-4.2.4.tgz", + "integrity": "sha512-A/e0DeLptrDBxqWSqy37gHy8+5qafYsa0AE4ZmY2cEMfoEb00YxhAvUcGF3PmHYVBijBYL4jmkA8MFFRStr8zA==", "requires": { - "@advanced-rest-client/arc-marked": "^1.0.6", - "@advanced-rest-client/markdown-styles": "^3.1.2", + "@advanced-rest-client/arc-marked": "^1.1.0", + "@advanced-rest-client/markdown-styles": "^3.1.3", "@anypoint-web-components/anypoint-button": "^1.1.1", - "@api-components/amf-helper-mixin": "^4.1.6", - "@api-components/api-annotation-document": "^4.0.3", - "@api-components/api-resource-example-document": "^4.0.8", - "@api-components/raml-aware": "^3.0.0", - "@open-wc/dedupe-mixin": "^1.2.17", - "lit-element": "^2.3.1" + "@api-components/amf-helper-mixin": "^4.3.3", + "@api-components/api-annotation-document": "^4.1.0", + "@api-components/api-resource-example-document": "^4.1.2", + "@open-wc/dedupe-mixin": "^1.3.0", + "lit-element": "^2.4.0" } }, "@api-components/api-type-documentation": { - "version": "4.0.4", - "resolved": "https://registry.npmjs.org/@api-components/api-type-documentation/-/api-type-documentation-4.0.4.tgz", - "integrity": "sha512-RKE+k0pIxkxi9ztAWCSKV4RWTVHH9hvcHDadcG17j9L2eZMfa63aCXoHJSj0BVeXwqwVXKTISh5SZJNf4f3YrQ==", + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/@api-components/api-type-documentation/-/api-type-documentation-4.1.0.tgz", + "integrity": "sha512-YqS+cCyx5s6q79TAIP/y649Te6B8hnEyTvXgfih7RBqusYtwSy934q3QEWxEhiB8JuPHfF10rW1xsNXs7pLk9g==", "requires": { - "@advanced-rest-client/arc-marked": "^1.0.6", - "@advanced-rest-client/markdown-styles": "^3.1.1", - "@api-components/amf-helper-mixin": "^4.0.13", - "@api-components/api-annotation-document": "^4.0.1", - "@api-components/api-resource-example-document": "^4.0.6", - "@api-components/api-schema-document": "^4.0.2", - "@api-components/api-type-document": "^4.2.0", - "@api-components/raml-aware": "^3.0.0", - "lit-element": "^2.2.1" + "@advanced-rest-client/arc-marked": "^1.1.0", + "@advanced-rest-client/markdown-styles": "^3.1.3", + "@api-components/amf-helper-mixin": "^4.3.4", + "@api-components/api-annotation-document": "^4.1.0", + "@api-components/api-resource-example-document": "^4.1.2", + "@api-components/api-schema-document": "^4.2.0", + "@api-components/api-type-document": "^4.2.4", + "lit-element": "^2.4.0" } }, "@api-components/api-url": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/@api-components/api-url/-/api-url-0.1.0.tgz", - "integrity": "sha512-MjEL+TFraa8jkVnaZW3lFNrIkoE4Zmr7UwU0m26jfCjIIBx92S18l2GsxJF61wHJoICIYGrTwXMIJU3Xfj+Imw==", + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/@api-components/api-url/-/api-url-0.1.1.tgz", + "integrity": "sha512-c+uy6X08uWW7a2I0q+lI448/bOAHYJRF9ek0siNbZB3NIpDQ3BeOGVco/4XparFp2R4umwU9I8gjjn95lpdSGQ==", "requires": { "@advanced-rest-client/arc-icons": "^3.2.2", "@advanced-rest-client/arc-types": "^0.2.47", @@ -1168,7 +1156,7 @@ "@anypoint-web-components/anypoint-input": "^0.2.23", "@anypoint-web-components/anypoint-switch": "^0.1.4", "@anypoint-web-components/validatable-mixin": "^1.1.3", - "@api-components/amf-helper-mixin": "^4.2.0", + "@api-components/amf-helper-mixin": "^4.3.4", "@api-components/api-forms": "^0.1.2", "lit-element": "^2.4.0", "lit-html": "^1.3.0" @@ -4601,9 +4589,9 @@ } }, "@sinonjs/commons": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.1.tgz", - "integrity": "sha512-892K+kWUUi3cl+LlqEWIDrhvLgdL79tECi8JZUyq6IviKy/DNhuzCRlbHUjxK89f4ypPMMaFnFuR9Ie6DoIMsw==", + "version": "1.8.2", + "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-1.8.2.tgz", + "integrity": "sha512-sruwd86RJHdsVf/AtBoijDmUqJp3B6hF/DGC23C+JaegnDHaZyewCjoVGTdg3J0uz3Zs7NnIT05OBOmML72lQw==", "dev": true, "requires": { "type-detect": "4.0.8" @@ -4619,9 +4607,9 @@ } }, "@sinonjs/samsam": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.0.tgz", - "integrity": "sha512-hXpcfx3aq+ETVBwPlRFICld5EnrkexXuXDwqUNhDdr5L8VjvMeSRwyOa0qL7XFmR+jVWR4rUZtnxlG7RX72sBg==", + "version": "5.3.1", + "resolved": "https://registry.npmjs.org/@sinonjs/samsam/-/samsam-5.3.1.tgz", + "integrity": "sha512-1Hc0b1TtyfBu8ixF/tpfSHTVWKwCBLY4QJbkgnE7HcwyvT2xArDxb4K7dMgqRm3szI+LJbzmW/s4xxEhv6hwDg==", "dev": true, "requires": { "@sinonjs/commons": "^1.6.0", @@ -4810,9 +4798,9 @@ "dev": true }, "@types/estree": { - "version": "0.0.45", - "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.45.tgz", - "integrity": "sha512-jnqIUKDUqJbDIUxm0Uj7bnlMnRm1T/eZ9N+AVMqhPgzrba2GhGG5o/jCTwmdPK709nEZsGoMzXEDUjcXHa3W0g==" + "version": "0.0.46", + "resolved": "https://registry.npmjs.org/@types/estree/-/estree-0.0.46.tgz", + "integrity": "sha512-laIjwTQaD+5DukBZaygQ79K1Z0jb1bPEMRrkXSLjtCcZm+abyp5YbrqpSLzD42FwWW6gK/aS4NYpJ804nG2brg==" }, "@types/etag": { "version": "1.8.0", @@ -4824,21 +4812,21 @@ } }, "@types/express": { - "version": "4.17.9", - "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.9.tgz", - "integrity": "sha512-SDzEIZInC4sivGIFY4Sz1GG6J9UObPwCInYJjko2jzOf/Imx/dlpume6Xxwj1ORL82tBbmN4cPDIDkLbWHk9hw==", + "version": "4.17.11", + "resolved": "https://registry.npmjs.org/@types/express/-/express-4.17.11.tgz", + "integrity": "sha512-no+R6rW60JEc59977wIxreQVsIEOAYwgCqldrA/vkpCnbD7MqTefO97lmoBe4WE0F156bC4uLSP1XHDOySnChg==", "dev": true, "requires": { "@types/body-parser": "*", - "@types/express-serve-static-core": "*", + "@types/express-serve-static-core": "^4.17.18", "@types/qs": "*", "@types/serve-static": "*" } }, "@types/express-serve-static-core": { - "version": "4.17.17", - "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.17.tgz", - "integrity": "sha512-YYlVaCni5dnHc+bLZfY908IG1+x5xuibKZMGv8srKkvtul3wUuanYvpIj9GXXoWkQbaAdR+kgX46IETKUALWNQ==", + "version": "4.17.18", + "resolved": "https://registry.npmjs.org/@types/express-serve-static-core/-/express-serve-static-core-4.17.18.tgz", + "integrity": "sha512-m4JTwx5RUBNZvky/JJ8swEJPKFd8si08pPF2PfizYjGZOKr/svUWPcoUmLow6MmPzhasphB7gSTINY67xn3JNA==", "dev": true, "requires": { "@types/node": "*", @@ -5266,9 +5254,9 @@ } }, "@web/dev-server": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/@web/dev-server/-/dev-server-0.1.3.tgz", - "integrity": "sha512-MHNyUScEb63kY5VFC6POO0jRUIzVEyNWUgAiDs8yNrnHLCvbfj4FyDj2IAXhIEVqWU50pclbOiXsEqDCN1u1WA==", + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/@web/dev-server/-/dev-server-0.1.4.tgz", + "integrity": "sha512-aYqrUFd6s32QJ4vPJlKGoD66U/I4erMSIzEInvN4IcUqUKQyF7Ol11J+QU0t2lkBAfoH4/yD2PzZXRC51P04dA==", "dev": true, "requires": { "@babel/code-frame": "^7.12.11", @@ -5276,7 +5264,7 @@ "@types/command-line-args": "^5.0.0", "@web/config-loader": "^0.1.3", "@web/dev-server-core": "^0.3.2", - "@web/dev-server-rollup": "^0.3.1", + "@web/dev-server-rollup": "^0.3.2", "camelcase": "^6.2.0", "chalk": "^4.1.0", "command-line-args": "^5.1.1", @@ -5383,12 +5371,12 @@ } }, "@web/dev-server-rollup": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/@web/dev-server-rollup/-/dev-server-rollup-0.3.1.tgz", - "integrity": "sha512-UwSam6S7pMM2qOZd4G9Dbl6uF3BAvNTTEfsXVHY2QhnR4hT13Hxm+fo6deXZB0i8K/oA2PHDD4n1kgZ7463LFg==", + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@web/dev-server-rollup/-/dev-server-rollup-0.3.2.tgz", + "integrity": "sha512-c5ROnMAUrOJPXTQFFXZiOy0ta4Y5yXLA2QkD71htNhIcqeOI4yx6ueDtuFqovRxVI0qcWGk46UdfZ0UGT/9MIg==", "dev": true, "requires": { - "@web/dev-server-core": "^0.3.2", + "@web/dev-server-core": "^0.3.3", "chalk": "^4.1.0", "parse5": "^6.0.1", "rollup": "^2.35.1", @@ -5473,17 +5461,17 @@ } }, "@web/test-runner": { - "version": "0.12.1", - "resolved": "https://registry.npmjs.org/@web/test-runner/-/test-runner-0.12.1.tgz", - "integrity": "sha512-hROW0bvUTcZGViY48wdRiXFSdGJ/6/DBQpmMPzOXHOugL08l1A33ljVMQiqvVS5BawmyOSFWQyMsZHFrdEODvQ==", + "version": "0.12.2", + "resolved": "https://registry.npmjs.org/@web/test-runner/-/test-runner-0.12.2.tgz", + "integrity": "sha512-7wQ2b3OE4xuAhHOaFbs+9d06bWNKvm9hWjJdHbLczsAkq2+TPbZDynw2b1D2fkTLcOWNbGOyQa742ThWIbXYRw==", "dev": true, "requires": { "@web/browser-logs": "^0.2.0", "@web/config-loader": "^0.1.3", - "@web/dev-server": "^0.1.3", + "@web/dev-server": "^0.1.4", "@web/test-runner-chrome": "^0.9.0", "@web/test-runner-commands": "^0.4.0", - "@web/test-runner-core": "^0.10.1", + "@web/test-runner-core": "^0.10.2", "@web/test-runner-mocha": "^0.7.0", "camelcase": "^6.2.0", "chalk": "^4.1.0", @@ -5557,9 +5545,9 @@ } }, "@web/test-runner-core": { - "version": "0.10.1", - "resolved": "https://registry.npmjs.org/@web/test-runner-core/-/test-runner-core-0.10.1.tgz", - "integrity": "sha512-9opib2gYS4bIGagsEHecGZqt5l2gJ2SidgEXXjfwBpgNeTAjIwLvZYr2yFMXvUqCHHpjrQ2QlaagwexCXoR3Xg==", + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@web/test-runner-core/-/test-runner-core-0.10.2.tgz", + "integrity": "sha512-BLEdRsekHJW02Cq/mezTMFcDwtsTvwoJ0Oo+0q/VxRzvpH2ae5VhySPfAuCA1xXCfttPBb/RYLH0BVq8bp57LA==", "dev": true, "requires": { "@babel/code-frame": "^7.12.11", @@ -5569,7 +5557,7 @@ "cli-cursor": "^3.1.0", "co-body": "^6.1.0", "debounce": "^1.2.0", - "dependency-graph": "^0.9.0", + "dependency-graph": "^0.10.0", "globby": "^11.0.1", "ip": "^1.1.5", "istanbul-lib-coverage": "^3.0.0", @@ -5598,12 +5586,6 @@ "ansi-styles": "^4.1.0", "supports-color": "^7.1.0" } - }, - "uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "dev": true } } }, @@ -5767,9 +5749,9 @@ "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" }, "amf-client-js": { - "version": "4.5.1", - "resolved": "https://registry.npmjs.org/amf-client-js/-/amf-client-js-4.5.1.tgz", - "integrity": "sha512-F6hTMp6usa2BE8AdQVUmOADyDdBMQPVoYP494vGefTFC1Sv6+1cIzh7Yx7RYLBNKiepTw8oaH3hdy24oFfOuHg==", + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/amf-client-js/-/amf-client-js-4.6.0.tgz", + "integrity": "sha512-hep/WF+qDsVVbCsdNOYjtlWGB60bLhEkfLpZXYjJDB6sYfI2E9rYouUlir3qtGDjuczVCI5HaDoLB5Vjpz6GRA==", "dev": true, "requires": { "ajv": "6.5.2", @@ -6531,9 +6513,9 @@ "integrity": "sha512-7lKwmwXweW6E/31RHAJemLtZPfb2xvcABXknFF4b/dNYv4DbSGTgQHckXLQkNw6BB4HKFYW6mJgsNjADAy1ehw==" }, "call-bind": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.1.tgz", - "integrity": "sha512-tvAvUwNcRikl3RVF20X9lsYmmepsovzTWeJiXjO0PkJp15uy/6xKFZOQtuiSULwYW+6ToZBprphCgWXC2dSgcQ==", + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", + "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", "dev": true, "requires": { "function-bind": "^1.1.1", @@ -6618,9 +6600,9 @@ } }, "caniuse-lite": { - "version": "1.0.30001174", - "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001174.tgz", - "integrity": "sha512-tqClL/4ThQq6cfFXH3oJL4rifFBeM6gTkphjao5kgwMaW9yn0tKgQLAEfKzDwj6HQWCB/aWo8kTFlSvIN8geEA==", + "version": "1.0.30001176", + "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001176.tgz", + "integrity": "sha512-VWdkYmqdkDLRe0lvfJlZQ43rnjKqIGKHWhWWRbkqMsJIUaYDNf/K/sdZZcVO6YKQklubokdkJY+ujArsuJ5cag==", "dev": true }, "canonicalize": { @@ -8625,9 +8607,9 @@ "dev": true }, "dependency-graph": { - "version": "0.9.0", - "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.9.0.tgz", - "integrity": "sha512-9YLIBURXj4DJMFALxXw9K3Y3rwb5Fk0X5/8ipCzaN84+gKxoHK43tVKRNakCQbiEx07E8Uwhuq21BpUagFhZ8w==", + "version": "0.10.0", + "resolved": "https://registry.npmjs.org/dependency-graph/-/dependency-graph-0.10.0.tgz", + "integrity": "sha512-c9amUgpgxSi1bE5/sbLwcs5diLD0ygCQYmhfM5H1s5VH1mCsYkcmAL3CcNdv4kdSw6JuMoHeDGzLgj/gAXdWVg==", "dev": true }, "destroy": { @@ -8888,9 +8870,9 @@ "dev": true }, "electron-to-chromium": { - "version": "1.3.635", - "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.635.tgz", - "integrity": "sha512-RRriZOLs9CpW6KTLmgBqyUdnY0QNqqWs0HOtuQGGEMizOTNNn1P7sGRBxARnUeLejOsgwjDyRqT3E/CSst02ZQ==", + "version": "1.3.637", + "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.637.tgz", + "integrity": "sha512-924WXYMYquYybc+7pNApGlhY2RWg3MY3he4BrZ5BUmM2n1MGBsrS+PZxrlo6UAsWuNl4NE66fqFdwsWkBUGgkA==", "dev": true }, "emoji-regex": { @@ -11773,9 +11755,9 @@ } }, "jpeg-js": { - "version": "0.4.2", - "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.2.tgz", - "integrity": "sha512-+az2gi/hvex7eLTMTlbRLOhH6P6WFdk2ITI8HJsaH2VqYO0I594zXSYEP+tf4FW+8Cy68ScDXoAsQdyQanv3sw==", + "version": "0.4.3", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.3.tgz", + "integrity": "sha512-ru1HWKek8octvUHFHvE5ZzQ1yAsJmIvRdGWvSoKV52XKyuyYA437QWDttXT8eZXDSbuMpHlLzPDZUPd6idIz+Q==", "dev": true }, "js-levenshtein-esm": { @@ -16985,6 +16967,11 @@ } } } + }, + "uuid": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.1.0.tgz", + "integrity": "sha512-CI18flHDznR0lq54xBycOVmphdCYnQLKn8abKn7PXUiKUGdEd+/l9LWNJmugXel4hXq7S+RMNl34ecyC9TntWg==" } } }, @@ -20272,9 +20259,10 @@ "dev": true }, "uuid": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.1.0.tgz", - "integrity": "sha512-CI18flHDznR0lq54xBycOVmphdCYnQLKn8abKn7PXUiKUGdEd+/l9LWNJmugXel4hXq7S+RMNl34ecyC9TntWg==" + "version": "8.3.2", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", + "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", + "dev": true }, "v8-compile-cache": { "version": "2.2.0", diff --git a/package.json b/package.json index 15275ef8f..5fc88c99d 100644 --- a/package.json +++ b/package.json @@ -34,13 +34,12 @@ "dependencies": { "@advanced-rest-client/arc-icons": "^3.2.2", "@advanced-rest-client/oauth-authorization": "^5.0.3", - "@advanced-rest-client/xhr-simple-request": "^3.0.0", "@anypoint-web-components/anypoint-button": "^1.1.1", - "@api-components/amf-helper-mixin": "^4.3.3", + "@api-components/amf-helper-mixin": "^4.3.4", "@api-components/api-console-ext-comm": "^3.0.0", - "@api-components/api-documentation": "^6.0.0-preview", + "@api-components/api-documentation": "^6.0.1", "@api-components/api-navigation": "^4.1.1", - "@api-components/api-request": "^0.1.0", + "@api-components/api-request": "^0.1.2", "@polymer/app-layout": "^3.1.0", "@polymer/iron-media-query": "^3.0.0", "@polymer/paper-toast": "^3.0.0", @@ -60,9 +59,9 @@ "@open-wc/eslint-config": "^4.2.0", "@open-wc/testing": "^2.5.16", "@polymer/iron-test-helpers": "^3.0.0", - "@web/test-runner": "^0.12.1", + "@web/test-runner": "^0.12.2", "@web/test-runner-playwright": "^0.8.0", - "amf-client-js": "^4.5.1", + "amf-client-js": "^4.6.0", "body-parser": "^1.19.0", "deepmerge": "^4.2.1", "es-dev-server": "^2.0.2", @@ -86,7 +85,7 @@ "typescript-lit-html-plugin": "^0.9.0", "uglify-js": "^3.12.4", "unzipper": "^0.10.10", - "uuid": "^8.0.0" + "uuid": "^8.3.2" }, "scripts": { "generate-model": "npm run build:models", diff --git a/src/ApiConsoleApp.js b/src/ApiConsoleApp.js index 7935d0e44..880b388c3 100644 --- a/src/ApiConsoleApp.js +++ b/src/ApiConsoleApp.js @@ -6,7 +6,7 @@ import '@polymer/app-layout/app-drawer-layout/app-drawer-layout.js'; import '@polymer/app-layout/app-header/app-header.js'; import '@polymer/app-layout/app-header-layout/app-header-layout.js'; import '@polymer/app-layout/app-toolbar/app-toolbar.js'; -import '@advanced-rest-client/xhr-simple-request/xhr-simple-request.js'; +import '@api-components/api-request/xhr-simple-request.js'; import '@advanced-rest-client/oauth-authorization/oauth1-authorization.js'; import '@advanced-rest-client/oauth-authorization/oauth2-authorization.js'; import '@anypoint-web-components/anypoint-button/anypoint-icon-button.js';