Skip to content

Commit

Permalink
chore(all): prepare release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
EisenbergEffect committed Oct 14, 2016
1 parent a28b0ac commit e286943
Show file tree
Hide file tree
Showing 11 changed files with 44 additions and 10 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-bootstrapper",
"version": "1.0.0",
"version": "1.0.1",
"description": "Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.",
"keywords": [
"aurelia",
Expand Down
6 changes: 5 additions & 1 deletion dist/amd/aurelia-bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,11 @@ define(['exports', 'aurelia-pal', 'aurelia-pal-browser', 'aurelia-polyfills'], f

if (configModuleId) {
return loader.loadModule(configModuleId).then(function (customConfig) {
return customConfig.configure(aurelia);
if (!customConfig.configure) {
throw new Error("Cannot initialize module '" + configModuleId + "' without a configure function.");
}

customConfig.configure(aurelia);
});
}

Expand Down
8 changes: 7 additions & 1 deletion dist/aurelia-bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,13 @@ function config(loader, appHost, configModuleId) {
aurelia.configModuleId = configModuleId || null;

if (configModuleId) {
return loader.loadModule(configModuleId).then(customConfig => customConfig.configure(aurelia));
return loader.loadModule(configModuleId).then(customConfig => {
if (!customConfig.configure) {
throw new Error("Cannot initialize module '" + configModuleId + "' without a configure function.");
}

customConfig.configure(aurelia);
});
}

aurelia.use
Expand Down
6 changes: 5 additions & 1 deletion dist/commonjs/aurelia-bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,11 @@ function config(loader, appHost, configModuleId) {

if (configModuleId) {
return loader.loadModule(configModuleId).then(function (customConfig) {
return customConfig.configure(aurelia);
if (!customConfig.configure) {
throw new Error("Cannot initialize module '" + configModuleId + "' without a configure function.");
}

customConfig.configure(aurelia);
});
}

Expand Down
8 changes: 7 additions & 1 deletion dist/es2015/aurelia-bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,13 @@ function config(loader, appHost, configModuleId) {
aurelia.configModuleId = configModuleId || null;

if (configModuleId) {
return loader.loadModule(configModuleId).then(customConfig => customConfig.configure(aurelia));
return loader.loadModule(configModuleId).then(customConfig => {
if (!customConfig.configure) {
throw new Error("Cannot initialize module '" + configModuleId + "' without a configure function.");
}

customConfig.configure(aurelia);
});
}

aurelia.use.standardConfiguration().developmentLogging();
Expand Down
6 changes: 5 additions & 1 deletion dist/native-modules/aurelia-bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ function config(loader, appHost, configModuleId) {

if (configModuleId) {
return loader.loadModule(configModuleId).then(function (customConfig) {
return customConfig.configure(aurelia);
if (!customConfig.configure) {
throw new Error("Cannot initialize module '" + configModuleId + "' without a configure function.");
}

customConfig.configure(aurelia);
});
}

Expand Down
6 changes: 5 additions & 1 deletion dist/system/aurelia-bootstrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@ System.register(['aurelia-polyfills', 'aurelia-pal', 'aurelia-pal-browser'], fun

if (configModuleId) {
return loader.loadModule(configModuleId).then(function (customConfig) {
return customConfig.configure(aurelia);
if (!customConfig.configure) {
throw new Error("Cannot initialize module '" + configModuleId + "' without a configure function.");
}

customConfig.configure(aurelia);
});
}

Expand Down
2 changes: 1 addition & 1 deletion dist/system/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ System.register(['./aurelia-bootstrapper'], function (_export, _context) {
var _exportObj = {};

for (var _key in _aureliaBootstrapper) {
if (_key !== "default" && key !== "__esModule") _exportObj[_key] = _aureliaBootstrapper[_key];
if (_key !== "default" && _key !== "__esModule") _exportObj[_key] = _aureliaBootstrapper[_key];
}

_export(_exportObj);
Expand Down
6 changes: 6 additions & 0 deletions doc/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# [1.0.1]

### Bug Fixes

* **bootstrapper:** Check module function configure before execute it

<a name="1.0.0"></a>
# [1.0.0](https://github.com/aurelia/bootstrapper/compare/1.0.0-rc.1.0.1...v1.0.0) (2016-07-27)

Expand Down
2 changes: 1 addition & 1 deletion doc/api.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"aurelia-bootstrapper","children":[{"id":2,"name":"bootstrap","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":3,"name":"bootstrap","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Manually bootstraps an application.","returns":"A Promise that completes when configuration is done.\n"},"parameters":[{"id":4,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A callback which passes an Aurelia instance to the developer to manually configure and start up the app."},"type":{"type":"reference","name":"Function"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}]}],"groups":[{"title":"Functions","kind":64,"children":[2]}]}
{"name":"aurelia-bootstrapper","children":[{"id":2,"name":"bootstrap","kind":64,"kindString":"Function","flags":{"isExported":true},"signatures":[{"id":3,"name":"bootstrap","kind":4096,"kindString":"Call signature","flags":{},"comment":{"shortText":"Manually bootstraps an application.","returns":"A Promise that completes when configuration is done.\n"},"parameters":[{"id":4,"name":"configure","kind":32768,"kindString":"Parameter","flags":{},"comment":{"text":"A callback which passes an Aurelia instance to the developer to manually configure and start up the app."},"type":{"type":"reference","name":"Function"}}],"type":{"type":"reference","name":"Promise","typeArguments":[{"type":"instrinct","name":"void"}]}}],"sources":[{"fileName":"aurelia-bootstrapper.d.ts","line":14,"character":33}]}],"groups":[{"title":"Functions","kind":64,"children":[2]}]}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-bootstrapper",
"version": "1.0.0",
"version": "1.0.1",
"description": "Sets up the default configuration for the aurelia framework and gets you up and running quick and easy.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit e286943

Please sign in to comment.