![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@advanced-rest-client/content-type-selector
Advanced tools
A content type dropdown to select request CT header
An element that provides an UI for selecting common content type values.
<content-type-selector contenttype="application/zip">
<paper-item slot="item" data-type="application/zip">Zip file</paper-item>
<paper-item slot="item" data-type="application/7z">7-zip file</paper-item>
</content-type-selector>
npm install --save @advanced-rest-client/content-type-selector
<html>
<head>
<script type="module">
import '@advanced-rest-client/content-type-selector/content-type-selector.js';
</script>
<script src="node_modules/web-animations-js/web-animations-next.min.js"></script>
</head>
<body>
<content-type-selector contenttype="application/json"></content-type-selector>
<script>
window.addEventListener('content-type-changed', (e) => {
console.log(e.detail.value);
});
</script>
</body>
</html>
import { LitElement, html } from 'lit-element';
import '@advanced-rest-client/content-type-selector/content-type-selector.js';
class SampleElement extends LitElement {
render() {
return html`
<content-type-selector .contentType="${this.mediaType}" @contenttype-changed="${this._mediaChangeHandler}"></content-type-selector>
`;
}
_mediaChangeHandler(e) {
console.log(e.target.contentType);
// or e.detail.value
}
}
customElements.define('sample-element', SampleElement);
import {PolymerElement, html} from '@polymer/polymer';
import '@advanced-rest-client/content-type-selector/content-type-selector.js';
class SampleElement extends PolymerElement {
static get template() {
return html`
<content-type-selector contenttype="{{mediaType}}"></content-type-selector>
`;
}
}
customElements.define('sample-element', SampleElement);
git clone https://github.com/advanced-rest-client/content-type-selector
cd content-type-selector
npm install
npm start
npm test
FAQs
A content type dropdown to select request CT header
The npm package @advanced-rest-client/content-type-selector receives a total of 303 weekly downloads. As such, @advanced-rest-client/content-type-selector popularity was classified as not popular.
We found that @advanced-rest-client/content-type-selector demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.