strong-swagger-ui
Advanced tools
Comparing version 21.0.1 to 21.0.2
102
CHANGES.md
@@ -0,1 +1,13 @@ | ||
2016-02-19, Version 21.0.2 | ||
========================== | ||
* Disable browser tests on ubuntu-0.10 (Miroslav Bajtoš) | ||
* Fix CI detection (Miroslav Bajtoš) | ||
* Improve browser logging (Miroslav Bajtoš) | ||
* test: wait for swagger resource to be loaded (Miroslav Bajtoš) | ||
2015-09-09, Version 21.0.1 | ||
@@ -42,2 +54,44 @@ ========================== | ||
* updated versions (Tony Tam) | ||
* Missing "Headers" translation (Francisco Guimarães) | ||
* Fix merge (Francisco Guimarães) | ||
* Missing some data-sw-translation (Francisco Guimarães) | ||
* dist (Francisco Guimarães) | ||
* Missing some data-sw-translation at templates (Francisco Guimarães) | ||
* Build (Francisco Guimarães) | ||
* merged from swagger-api (Francisco Guimarães) | ||
* missing some data-sw-translation (Francisco Guimarães) | ||
* merged (Tony Tam) | ||
* rebuilt (Tony Tam) | ||
* Revert "Updating documentation based on issue swagger-ui issue #1414" (Tony Tam) | ||
* merged to develop_2.0 (Tony Tam) | ||
* Changes at src (Francisco Guimarães) | ||
* Translation (Francisco Guimarães) | ||
* Include pt translation (Francisco Guimarães) | ||
* Move pt to dist (Francisco Guimarães) | ||
* Move to dist (Francisco Guimarães) | ||
* PT localization (Francisco Guimarães) | ||
* Added built files (sonicd300) | ||
* Added flexible scope separator (sonicd300) | ||
* Fix build on Node v0.12 and io.js (Miroslav Bajtoš) | ||
@@ -125,48 +179,2 @@ | ||
2015-07-22, Version 2.1.1 | ||
========================= | ||
* updated versions (Tony Tam) | ||
* Missing "Headers" translation (Francisco Guimarães) | ||
* Fix merge (Francisco Guimarães) | ||
* Missing some data-sw-translation (Francisco Guimarães) | ||
* dist (Francisco Guimarães) | ||
* Missing some data-sw-translation at templates (Francisco Guimarães) | ||
* Build (Francisco Guimarães) | ||
* merged from swagger-api (Francisco Guimarães) | ||
* missing some data-sw-translation (Francisco Guimarães) | ||
* merged (Tony Tam) | ||
* rebuilt (Tony Tam) | ||
* Revert "Updating documentation based on issue swagger-ui issue #1414" (Tony Tam) | ||
* merged to develop_2.0 (Tony Tam) | ||
* Changes at src (Francisco Guimarães) | ||
* Translation (Francisco Guimarães) | ||
* Include pt translation (Francisco Guimarães) | ||
* Move pt to dist (Francisco Guimarães) | ||
* Move to dist (Francisco Guimarães) | ||
* PT localization (Francisco Guimarães) | ||
* Added built files (sonicd300) | ||
* Added flexible scope separator (sonicd300) | ||
* Spelling and closing tag fixes (Taras Katkov) | ||
@@ -198,4 +206,2 @@ | ||
* Update README.md (Ron) | ||
* Spelling is hard (Rob Richardson) | ||
@@ -202,0 +208,0 @@ |
@@ -11,3 +11,3 @@ { | ||
"description": "Swagger UI is a dependency-free collection of HTML, JavaScript, and CSS assets that dynamically generate beautiful documentation from a Swagger-compliant API", | ||
"version": "21.0.1", | ||
"version": "21.0.2", | ||
"homepage": "http://swagger.io", | ||
@@ -14,0 +14,0 @@ "license": "Apache-2.0", |
@@ -14,2 +14,7 @@ /* | ||
if (process.env.CI && process.env.label === 'ubuntu-0.10') { | ||
console.error('Skipping all browser tests on ubuntu-0.10'); | ||
process.exit(0); | ||
} | ||
var webdriver = require('selenium-webdriver'); | ||
@@ -20,1 +25,29 @@ | ||
module.exports = driver; | ||
before(function reportBrowserNameAndVersion() { | ||
if (!process.env.DEBUG) { | ||
return; | ||
} | ||
return driver.getCapabilities().then(function (caps) { | ||
console.log('BROWSER NAME %s VERSION %s', | ||
caps.get('browserName'), caps.get('version')); | ||
}); | ||
}); | ||
afterEach(function verifyConsoleErrors() { | ||
return driver.manage().logs().get('browser').then(function(browserLogs) { | ||
var errors = []; | ||
browserLogs.forEach(function(log){ | ||
// 900 and above is "error" level. Console should not have any errors | ||
if (log.level.value > 900) { | ||
console.log('BROWSER ERROR:', log.message); | ||
errors.push(log); | ||
} else if (process.env.DEBUG) { | ||
console.log('browser log: ', log.message); | ||
} | ||
}); | ||
if (errors.length) { | ||
throw new Error('Unexpected error, see the browser logs above.'); | ||
} | ||
}); | ||
}); |
@@ -32,3 +32,3 @@ /* | ||
done(); | ||
}, process.env.TRAVIS ? 20000 : 5000); | ||
}, process.env.CI ? 20000 : 5000); | ||
}; | ||
@@ -35,0 +35,0 @@ |
@@ -27,18 +27,2 @@ 'use strict'; | ||
afterEach(function(){ | ||
it('should not have any console errors', function (done) { | ||
driver.manage().logs().get('browser').then(function(browserLogs) { | ||
var errors = []; | ||
browserLogs.forEach(function(log){ | ||
// 900 and above is "error" level. Console should not have any errors | ||
if (log.level.value > 900) { | ||
console.log('browser error message:', log.message); errors.push(log); | ||
} | ||
}); | ||
expect(errors).to.be.empty; | ||
done(); | ||
}); | ||
}); | ||
}); | ||
it('should have "Swagger UI" in title', function () { | ||
@@ -49,8 +33,5 @@ return driver.wait(until.titleIs('Swagger UI'), 1000); | ||
elements.forEach(function (id) { | ||
it('should render element: ' + id, function (done) { | ||
it('should render element: ' + id, function () { | ||
var locator = webdriver.By.id(id); | ||
driver.isElementPresent(locator).then(function (isPresent) { | ||
expect(isPresent).to.be.true; | ||
done(); | ||
}); | ||
return driver.wait(until.elementLocated(locator), 1000); | ||
}); | ||
@@ -57,0 +38,0 @@ }); |
@@ -27,18 +27,2 @@ 'use strict'; | ||
afterEach(function(){ | ||
it('should not have any console errors', function (done) { | ||
driver.manage().logs().get('browser').then(function(browserLogs) { | ||
var errors = []; | ||
browserLogs.forEach(function(log){ | ||
// 900 and above is "error" level. Console should not have any errors | ||
if (log.level.value > 900) { | ||
console.log('browser error message:', log.message); errors.push(log); | ||
} | ||
}); | ||
expect(errors).to.be.empty; | ||
done(); | ||
}); | ||
}); | ||
}); | ||
it('should have "Swagger UI" in title', function () { | ||
@@ -49,8 +33,5 @@ return driver.wait(until.titleIs('Swagger UI'), 1000); | ||
elements.forEach(function (id) { | ||
it('should render element: ' + id, function (done) { | ||
it('should render element: ' + id, function () { | ||
var locator = webdriver.By.id(id); | ||
driver.isElementPresent(locator).then(function (isPresent) { | ||
expect(isPresent).to.be.true; | ||
done(); | ||
}); | ||
return driver.wait(until.elementLocated(locator), 1000); | ||
}); | ||
@@ -57,0 +38,0 @@ }); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
AI-detected potential code anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
4604564
48609
13
4