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

@dbp-toolkit/check-in-place-select

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbp-toolkit/check-in-place-select - npm Package Compare versions

Comparing version 0.1.3 to 0.2.0

dist/shared/check-in-place-select.99e9e210.es.js

2

dist/dbp-check-in-place-select.js

@@ -1,4 +0,4 @@

import { d as defineCustomElement, C as CheckInPlaceSelect } from './shared/check-in-place-select.16fef2f9.es.js';
import { d as defineCustomElement, C as CheckInPlaceSelect } from './shared/check-in-place-select.99e9e210.es.js';
defineCustomElement('dbp-check-in-place-select', CheckInPlaceSelect);
//# sourceMappingURL=dbp-check-in-place-select.js.map
{
"name": "@dbp-toolkit/check-in-place-select",
"homepage": "https://gitlab.tugraz.at/dbp/web-components/toolkit/-/tree/master/packages/check-in-place-select",
"version": "0.1.3",
"version": "0.2.0",
"main": "src/index.js",

@@ -38,7 +38,7 @@ "license": "LGPL-2.1-or-later",

"dependencies": {
"@dbp-toolkit/auth": "^0.1.6",
"@dbp-toolkit/common": "^0.1.4",
"@dbp-toolkit/auth": "^0.2.0",
"@dbp-toolkit/common": "^0.2.0",
"@open-wc/scoped-elements": "^1.3.2",
"jquery": "^3.4.1",
"lit-element": "^2.3.1",
"lit-element": "^2.4.0",
"select2": "^4.0.10"

@@ -61,3 +61,3 @@ },

},
"gitHead": "0e9ed70222d27095f46d05bcf62377846cfadf86"
"gitHead": "6bae679f905cfbd07883cd2de3a3cce7b44b1ba2"
}

@@ -35,2 +35,5 @@ # Check-in place select web component

- example `<dbp-check-in-place-select show-reload-button reload-button-text="Reload result list"></dbp-check-in-place-select>`
- `auth` object: you need to set that object property for the auth token
- example auth property: `{token: "THE_BEARER_TOKEN"}`
- note: most often this should be an attribute that is not set directly, but subscribed at a provider

@@ -37,0 +40,0 @@ ## Local development

@@ -42,2 +42,3 @@ import {findObjectInApiResults} from './utils.js';

this.showCapacity = false;
this.auth = {};

@@ -61,3 +62,4 @@ this._onDocumentClicked = this._onDocumentClicked.bind(this);

static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },

@@ -71,3 +73,4 @@ active: { type: Boolean, attribute: false },

showCapacity: { type: Boolean, attribute: 'show-capacity' },
});
auth: { type: Object },
};
}

@@ -168,3 +171,3 @@

beforeSend: function (jqXHR) {
jqXHR.setRequestHeader('Authorization', 'Bearer ' + window.DBPAuthToken);
jqXHR.setRequestHeader('Authorization', 'Bearer ' + that.auth.token);
that.isSearching = true;

@@ -241,3 +244,3 @@ },

'Content-Type': 'application/ld+json',
'Authorization': 'Bearer ' + window.DBPAuthToken,
'Authorization': 'Bearer ' + this.auth.token,
},

@@ -313,2 +316,5 @@ })

break;
case "auth":
JSONLD.doInitializationOnce(this.entryPointUrl, this.auth.token);
break;
}

@@ -315,0 +321,0 @@ });

@@ -27,7 +27,8 @@ import {i18n} from './i18n.js';

static get properties() {
return this.getProperties({
return {
...super.properties,
lang: { type: String },
entryPointUrl: { type: String, attribute: 'entry-point-url' },
noAuth: { type: Boolean, attribute: 'no-auth' },
});
};
}

@@ -56,8 +57,8 @@

getAuthComponentHtml() {
return this.noAuth ? html`<dbp-login-button lang="${this.lang}" show-image></dbp-login-button>` : html`
return this.noAuth ? html`<dbp-login-button subscribe="auth" lang="${this.lang}" show-image></dbp-login-button>` : html`
<div class="container">
<dbp-auth-keycloak lang="${this.lang}" entry-point-url="${this.entryPointUrl}" silent-check-sso-redirect-uri="/dist/silent-check-sso.html"
<dbp-auth-keycloak subscribe="requested-login-status" lang="${this.lang}" entry-point-url="${this.entryPointUrl}" silent-check-sso-redirect-uri="/dist/silent-check-sso.html"
url="https://auth-dev.tugraz.at/auth" realm="tugraz"
client-id="auth-dev-mw-frontend-local" load-person try-login></dbp-auth-keycloak>
<dbp-login-button lang="${this.lang}" show-image></dbp-login-button>
<dbp-login-button subscribe="auth" lang="${this.lang}" show-image></dbp-login-button>
</div>

@@ -79,3 +80,3 @@ `;

<div class="control">
<dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}"></dbp-check-in-place-select>
<dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth"></dbp-check-in-place-select>
</div>

@@ -86,3 +87,3 @@ </div>

<div class="control">
<dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" show-reload-button reload-button-title="Click me"></dbp-check-in-place-select>
<dbp-check-in-place-select lang="${this.lang}" entry-point-url="${this.entryPointUrl}" subscribe="auth" show-reload-button reload-button-title="Click me"></dbp-check-in-place-select>
</div>

@@ -89,0 +90,0 @@ </div>

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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