Skip to content

Commit

Permalink
Release 1.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Vheissu committed Sep 3, 2015
1 parent 061cd1f commit a003d67
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 24 deletions.
7 changes: 2 additions & 5 deletions dist/amd/configure.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'core-js', 'aurelia-dependency-injection', 'aurelia-http-client', 'aurelia-event-aggregator'], function (exports, _coreJs, _aureliaDependencyInjection, _aureliaHttpClient, _aureliaEventAggregator) {
define(['exports', 'aurelia-dependency-injection', 'aurelia-http-client', 'aurelia-event-aggregator'], function (exports, _aureliaDependencyInjection, _aureliaHttpClient, _aureliaEventAggregator) {
'use strict';

exports.__esModule = true;
Expand Down Expand Up @@ -66,10 +66,7 @@ define(['exports', 'core-js', 'aurelia-dependency-injection', 'aurelia-http-clie

return new Promise(function (resolve, reject) {
_this.http.get(_this.directory + '/' + _this.config).then(function (response) {
var raw = response.response;
var json = JSON.parse(JSON.stringify(raw));

resolve(json);
resolve(response.content);
})['catch'](function () {
return reject(new Error('Configuration file could not be found or loaded.'));
});
Expand Down
7 changes: 1 addition & 6 deletions dist/commonjs/configure.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@ exports.__esModule = true;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

require('core-js');

var _aureliaDependencyInjection = require('aurelia-dependency-injection');

var _aureliaHttpClient = require('aurelia-http-client');
Expand Down Expand Up @@ -73,10 +71,7 @@ var Configure = (function () {

return new Promise(function (resolve, reject) {
_this.http.get(_this.directory + '/' + _this.config).then(function (response) {
var raw = response.response;
var json = JSON.parse(JSON.stringify(raw));

resolve(json);
resolve(response.content);
})['catch'](function () {
return reject(new Error('Configuration file could not be found or loaded.'));
});
Expand Down
7 changes: 1 addition & 6 deletions dist/es6/configure.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import 'core-js';

import {inject} from 'aurelia-dependency-injection';
import {HttpClient} from 'aurelia-http-client';
import {EventAggregator} from 'aurelia-event-aggregator';
Expand Down Expand Up @@ -70,10 +68,7 @@ export class Configure {
this.http
.get(`${this.directory}/${this.config}`)
.then(response => {
let raw = response.response;
let json = JSON.parse(JSON.stringify(raw));

resolve(json);
resolve(response.content);
})
.catch(() => reject(new Error('Configuration file could not be found or loaded.')));
});
Expand Down
9 changes: 3 additions & 6 deletions dist/system/configure.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
System.register(['core-js', 'aurelia-dependency-injection', 'aurelia-http-client', 'aurelia-event-aggregator'], function (_export) {
System.register(['aurelia-dependency-injection', 'aurelia-http-client', 'aurelia-event-aggregator'], function (_export) {
'use strict';

var inject, HttpClient, EventAggregator, Configure;

function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } }

return {
setters: [function (_coreJs) {}, function (_aureliaDependencyInjection) {
setters: [function (_aureliaDependencyInjection) {
inject = _aureliaDependencyInjection.inject;
}, function (_aureliaHttpClient) {
HttpClient = _aureliaHttpClient.HttpClient;
Expand Down Expand Up @@ -75,10 +75,7 @@ System.register(['core-js', 'aurelia-dependency-injection', 'aurelia-http-client

return new Promise(function (resolve, reject) {
_this.http.get(_this.directory + '/' + _this.config).then(function (response) {
var raw = response.response;
var json = JSON.parse(JSON.stringify(raw));

resolve(json);
resolve(response.content);
})['catch'](function () {
return reject(new Error('Configuration file could not be found or loaded.'));
});
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-configuration",
"version": "1.0.0",
"version": "1.0.1",
"description": "An Aurelia plugin for adding in configuration to your application.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit a003d67

Please sign in to comment.