bv-ui-core
Advanced tools
Comparing version 0.6.0 to 0.7.0
@@ -12,3 +12,3 @@ /** | ||
require('karma-chai'), | ||
require('karma-sinon'), | ||
require('karma-sinon-chai'), | ||
require('karma-webpack'), | ||
@@ -25,3 +25,3 @@ require('karma-chrome-launcher'), | ||
// See: https://npmjs.org/browse/keyword/karma-adapter | ||
frameworks: ['mocha', 'chai', 'sinon'], | ||
frameworks: ['mocha', 'chai', 'sinon-chai'], | ||
@@ -28,0 +28,0 @@ client: { |
@@ -19,3 +19,3 @@ # application | ||
var loader = require('bv-ui-core/lib/loader'); | ||
var namespacer = require('bv-ui-core/lib/loader'); | ||
var namespacer = require('bv-ui-core/lib/namespacer'); | ||
var config = require('json!config.json'); | ||
@@ -22,0 +22,0 @@ |
@@ -7,4 +7,3 @@ # loader | ||
URL in a non-blocking manner, and executes a Node-style callback (if | ||
provided) when the script is loaded or fails to load. Also returns a promise | ||
that will be resolved if the script loads, and rejected if it does not. A | ||
provided) when the script is loaded or fails to load. A | ||
`timeout` value in milliseconds can be provided via the `options` argument. | ||
@@ -20,9 +19,7 @@ - `loadStyleSheet(url, [options], [callback])`: Loads the CSS at the provided | ||
var promise = loader.loadScript('/scripts/main.js', function (err, cb) { | ||
console.log('it worked'); | ||
loader.loadScript('/scripts/main.js', function (err) { | ||
if (!err) { | ||
console.log('it worked'); | ||
} | ||
}); | ||
promise.then(function () { | ||
console.log('it really worked'); | ||
}); | ||
``` | ||
@@ -32,4 +29,3 @@ | ||
both `loadScript` and `loadStyleSheet`, the callback will not be executed on | ||
failure in old IE, and the returned promise will not be rejected on failure in | ||
old IE. | ||
failure in old IE. | ||
@@ -36,0 +32,0 @@ ### loadScript options |
{ | ||
"name": "bv-ui-core", | ||
"version": "0.6.0", | ||
"version": "0.7.0", | ||
"license": "Apache 2.0", | ||
@@ -21,10 +21,11 @@ "description": "Bazaarvoice UI-related JavaScript", | ||
"karma": "0.13.9", | ||
"karma-chai": "0.1.0", | ||
"karma-chrome-launcher": "0.2.0", | ||
"karma-coverage": "0.5.1", | ||
"karma-chai": "0.1.0", | ||
"karma-firefox-launcher": "0.1.6", | ||
"karma-htmlfile-reporter": "0.2.2", | ||
"karma-mocha": "0.2.0", | ||
"karma-phantomjs-launcher": "0.2.1", | ||
"karma-mocha": "0.2.0", | ||
"karma-sinon": "1.0.4", | ||
"karma-sinon-chai": "1.1.0", | ||
"karma-webpack": "1.7.0", | ||
@@ -31,0 +32,0 @@ "node-libs-browser": "0.5.2", |
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
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
107859
65
2426
0
17