axios-oauth-client
Advanced tools
Comparing version 1.4.4 to 1.5.0
@@ -1,1 +0,1 @@ | ||
{"processes":{"1b011c79-8f22-49bc-a1dc-3186ff123531":{"parent":null,"children":[]}},"files":{},"externalIds":{}} | ||
{"processes":{"dd1cfae5-2c0f-4d21-baa2-96241a6f927b":{"parent":null,"children":[]}},"files":{},"externalIds":{}} |
@@ -66,2 +66,10 @@ /* eslint-disable */ | ||
return function jump(event) { | ||
if ( | ||
document.getElementById('fileSearch') === document.activeElement && | ||
document.activeElement != null | ||
) { | ||
// if we're currently focused on the search input, we don't want to navigate | ||
return; | ||
} | ||
switch (event.which) { | ||
@@ -68,0 +76,0 @@ case 78: // n |
@@ -27,2 +27,27 @@ /* eslint-disable */ | ||
function onFilterInput() { | ||
const searchValue = document.getElementById('fileSearch').value; | ||
const rows = document.getElementsByTagName('tbody')[0].children; | ||
for (let i = 0; i < rows.length; i++) { | ||
const row = rows[i]; | ||
if ( | ||
row.textContent | ||
.toLowerCase() | ||
.includes(searchValue.toLowerCase()) | ||
) { | ||
row.style.display = ''; | ||
} else { | ||
row.style.display = 'none'; | ||
} | ||
} | ||
} | ||
// loads the search box | ||
function addSearchBox() { | ||
var template = document.getElementById('filterTemplate'); | ||
var templateClone = template.content.cloneNode(true); | ||
templateClone.getElementById('fileSearch').oninput = onFilterInput; | ||
template.parentElement.appendChild(templateClone); | ||
} | ||
// loads all columns | ||
@@ -166,2 +191,3 @@ function loadColumns() { | ||
loadData(); | ||
addSearchBox(); | ||
addSortIndicators(); | ||
@@ -168,0 +194,0 @@ enableUI(); |
{ | ||
"name": "axios-oauth-client", | ||
"version": "1.4.4", | ||
"version": "1.5.0", | ||
"description": "OAuth 2.0 client utils for axios", | ||
@@ -28,14 +28,2 @@ "main": "dist/", | ||
}, | ||
"scripts": { | ||
"publish": "git push origin --tags && npm run changelog && git push origin", | ||
"release:pre": "npm run dist && npm version prerelease && npm publish --tag pre", | ||
"release:patch": "npm run dist && npm version patch && npm publish", | ||
"release:minor": "npm run dist && npm version minor && npm publish", | ||
"release:major": "npm run dist && npm version major && npm publish", | ||
"changelog": "github_changelog_generator && git add CHANGELOG.md && git commit -am \"Updating changelog\"", | ||
"dist": "npm run build && git add dist/* && git commit -am \"Updating build\"", | ||
"build": "babel src -d dist", | ||
"pretest": "semistandard src/*.js src/**/*.js tests/*.js tests/**/*.js --fix", | ||
"test": "nyc mocha tests/ --timeout 10000" | ||
}, | ||
"babel": { | ||
@@ -42,0 +30,0 @@ "presets": [ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
46451
26
613