Comparing version 1.1.0 to 1.2.0
(function webpackUniversalModuleDefinition(root, factory) { | ||
if(typeof exports === 'object' && typeof module === 'object') | ||
module.exports = factory(require("@angular/core"), require("rxjs/Subject"), require("rxjs/add/operator/filter"), require("rxjs/add/operator/map")); | ||
module.exports = factory(require("@angular/core"), require("@angular/http"), require("rxjs/Subject"), require("rxjs/add/operator/filter"), require("rxjs/add/operator/map")); | ||
else if(typeof define === 'function' && define.amd) | ||
define("ngx-base", ["@angular/core", "rxjs/Subject", "rxjs/add/operator/filter", "rxjs/add/operator/map"], factory); | ||
define("ngx-base", ["@angular/core", "@angular/http", "rxjs/Subject", "rxjs/add/operator/filter", "rxjs/add/operator/map"], factory); | ||
else if(typeof exports === 'object') | ||
exports["ngx-base"] = factory(require("@angular/core"), require("rxjs/Subject"), require("rxjs/add/operator/filter"), require("rxjs/add/operator/map")); | ||
exports["ngx-base"] = factory(require("@angular/core"), require("@angular/http"), require("rxjs/Subject"), require("rxjs/add/operator/filter"), require("rxjs/add/operator/map")); | ||
else | ||
root["ngx-base"] = factory(root["@angular/core"], root["rxjs/Subject"], root["rxjs/add/operator/filter"], root["rxjs/add/operator/map"]); | ||
})(this, (function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_7__, __WEBPACK_EXTERNAL_MODULE_8__, __WEBPACK_EXTERNAL_MODULE_9__) { | ||
root["ngx-base"] = factory(root["@angular/core"], root["@angular/http"], root["rxjs/Subject"], root["rxjs/add/operator/filter"], root["rxjs/add/operator/map"]); | ||
})(this, (function(__WEBPACK_EXTERNAL_MODULE_0__, __WEBPACK_EXTERNAL_MODULE_9__, __WEBPACK_EXTERNAL_MODULE_10__, __WEBPACK_EXTERNAL_MODULE_11__, __WEBPACK_EXTERNAL_MODULE_12__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -76,3 +76,3 @@ /******/ // The module cache | ||
/******/ // Load entry module and return exports | ||
/******/ return __webpack_require__(__webpack_require__.s = 10); | ||
/******/ return __webpack_require__(__webpack_require__.s = 13); | ||
/******/ }) | ||
@@ -93,7 +93,7 @@ /************************************************************************/ | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Subject__ = __webpack_require__(7); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Subject__ = __webpack_require__(10); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs_Subject___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs_Subject__); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_filter__ = __webpack_require__(8); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_filter__ = __webpack_require__(11); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_filter___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs_add_operator_filter__); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(9); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(12); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__); | ||
@@ -184,2 +184,62 @@ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", (function() { return Broadcaster; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http__ = __webpack_require__(9); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_http___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1__angular_http__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", (function() { return ConfigStore; })); | ||
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; | ||
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); | ||
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; | ||
return c > 3 && r && Object.defineProperty(target, key, r), r; | ||
}; | ||
var __metadata = (this && this.__metadata) || function (k, v) { | ||
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v); | ||
}; | ||
var ConfigStore = (function () { | ||
function ConfigStore(http) { | ||
this.http = http; | ||
this._cache = new Map(); | ||
} | ||
ConfigStore.prototype.get = function (name, load) { | ||
if (this._cache.has(name)) { | ||
return this._cache | ||
.get(name); | ||
} | ||
else { | ||
var res = this.http | ||
.get("/_config/" + name + ".config.json") | ||
.map((function (resp) { return resp.json(); })) | ||
.map((function (json) { | ||
return { | ||
val: json, | ||
loading: false | ||
}; | ||
})) | ||
.do((function (config) { return console.log('Config loaded', config); })) | ||
.publishReplay(1); | ||
this._cache.set(name, res); | ||
res.connect(); | ||
return res; | ||
} | ||
}; | ||
ConfigStore.prototype.clear = function () { | ||
this._cache = new Map(); | ||
}; | ||
return ConfigStore; | ||
}()); | ||
ConfigStore = __decorate([ | ||
__webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__angular_core__["Injectable"])(), | ||
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_http__["Http"]]) | ||
], ConfigStore); | ||
/***/ }), | ||
/* 3 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__angular_core__); | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", (function() { return Logger; })); | ||
@@ -208,3 +268,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
/***/ }), | ||
/* 3 */ | ||
/* 4 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -234,3 +294,3 @@ | ||
/***/ }), | ||
/* 4 */ | ||
/* 5 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -253,3 +313,3 @@ | ||
/***/ }), | ||
/* 5 */ | ||
/* 6 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -277,3 +337,3 @@ | ||
/***/ }), | ||
/* 6 */ | ||
/* 7 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -295,21 +355,48 @@ | ||
/***/ }), | ||
/* 7 */ | ||
/* 8 */ | ||
/***/ (function(module, __webpack_exports__, __webpack_require__) { | ||
"use strict"; | ||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", (function() { return ValWrapper; })); | ||
/** | ||
* A simple wrapper around a value which can be returned to provide | ||
* useful information such as that the result is currently loading. | ||
* | ||
* This is particularly useful with RXJS as it allows you to emit | ||
* an object from a stream. | ||
*/ | ||
var ValWrapper = (function () { | ||
function ValWrapper() { | ||
} | ||
return ValWrapper; | ||
}()); | ||
/***/ }), | ||
/* 9 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_7__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_9__; | ||
/***/ }), | ||
/* 8 */ | ||
/* 10 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_8__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_10__; | ||
/***/ }), | ||
/* 9 */ | ||
/* 11 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_9__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_11__; | ||
/***/ }), | ||
/* 10 */ | ||
/* 12 */ | ||
/***/ (function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_12__; | ||
/***/ }), | ||
/* 13 */ | ||
/***/ ((function(module, __webpack_exports__, __webpack_require__) { | ||
@@ -319,14 +406,18 @@ | ||
Object.defineProperty(__webpack_exports__, "__esModule", { value: true }); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_app_notifications_notification__ = __webpack_require__(5); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__src_app_notifications_notification__ = __webpack_require__(6); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Notification", (function() { return __WEBPACK_IMPORTED_MODULE_0__src_app_notifications_notification__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_app_notifications_notification_action__ = __webpack_require__(3); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__src_app_notifications_notification_action__ = __webpack_require__(4); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationAction", (function() { return __WEBPACK_IMPORTED_MODULE_1__src_app_notifications_notification_action__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_app_notifications_notifications__ = __webpack_require__(6); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__src_app_notifications_notifications__ = __webpack_require__(7); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Notifications", (function() { return __WEBPACK_IMPORTED_MODULE_2__src_app_notifications_notifications__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_app_notifications_notification_type__ = __webpack_require__(4); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__src_app_notifications_notification_type__ = __webpack_require__(5); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "NotificationType", (function() { return __WEBPACK_IMPORTED_MODULE_3__src_app_notifications_notification_type__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__src_app_broadcaster_service__ = __webpack_require__(1); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Broadcaster", (function() { return __WEBPACK_IMPORTED_MODULE_4__src_app_broadcaster_service__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_app_logger_service__ = __webpack_require__(2); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__src_app_logger_service__ = __webpack_require__(3); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "Logger", (function() { return __WEBPACK_IMPORTED_MODULE_5__src_app_logger_service__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__src_app_config_store__ = __webpack_require__(2); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ConfigStore", (function() { return __WEBPACK_IMPORTED_MODULE_6__src_app_config_store__["a"]; })); | ||
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__src_app_val_wrapper__ = __webpack_require__(8); | ||
/* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "ValWrapper", (function() { return __WEBPACK_IMPORTED_MODULE_7__src_app_val_wrapper__["a"]; })); | ||
// Notifications | ||
@@ -341,6 +432,10 @@ | ||
// Config | ||
// ValWrapper | ||
/***/ })) | ||
/******/ ]); | ||
})); |
@@ -7,1 +7,3 @@ export { Notification } from './src/app/notifications/notification'; | ||
export { Logger } from './src/app/logger.service'; | ||
export { ConfigStore } from './src/app/config.store'; | ||
export { ValWrapper } from './src/app/val-wrapper'; |
@@ -10,2 +10,6 @@ // Notifications | ||
export { Logger } from './src/app/logger.service'; | ||
// Config | ||
export { ConfigStore } from './src/app/config.store'; | ||
// ValWrapper | ||
export { ValWrapper } from './src/app/val-wrapper'; | ||
//# sourceMappingURL=index.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./src/app/notifications/notification","export":["Notification"]},{"from":"./src/app/notifications/notification-action","export":["NotificationAction"]},{"from":"./src/app/notifications/notifications","export":["Notifications"]},{"from":"./src/app/notifications/notification-type","export":["NotificationType"]},{"from":"./src/app/broadcaster.service","export":["Broadcaster"]},{"from":"./src/app/logger.service","export":["Logger"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/app/notifications/notification","export":["Notification"]},{"from":"./src/app/notifications/notification-action","export":["NotificationAction"]},{"from":"./src/app/notifications/notifications","export":["Notifications"]},{"from":"./src/app/notifications/notification-type","export":["NotificationType"]},{"from":"./src/app/broadcaster.service","export":["Broadcaster"]},{"from":"./src/app/logger.service","export":["Logger"]}]}] | ||
[{"__symbolic":"module","version":3,"metadata":{},"exports":[{"from":"./src/app/notifications/notification","export":["Notification"]},{"from":"./src/app/notifications/notification-action","export":["NotificationAction"]},{"from":"./src/app/notifications/notifications","export":["Notifications"]},{"from":"./src/app/notifications/notification-type","export":["NotificationType"]},{"from":"./src/app/broadcaster.service","export":["Broadcaster"]},{"from":"./src/app/logger.service","export":["Logger"]},{"from":"./src/app/config.store","export":["ConfigStore"]},{"from":"./src/app/val-wrapper","export":["ValWrapper"]}]},{"__symbolic":"module","version":1,"metadata":{},"exports":[{"from":"./src/app/notifications/notification","export":["Notification"]},{"from":"./src/app/notifications/notification-action","export":["NotificationAction"]},{"from":"./src/app/notifications/notifications","export":["Notifications"]},{"from":"./src/app/notifications/notification-type","export":["NotificationType"]},{"from":"./src/app/broadcaster.service","export":["Broadcaster"]},{"from":"./src/app/logger.service","export":["Logger"]},{"from":"./src/app/config.store","export":["ConfigStore"]},{"from":"./src/app/val-wrapper","export":["ValWrapper"]}]}] |
{ | ||
"name": "ngx-base", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"description": "Common services for working with Fabric8 Work Item Tracker", | ||
@@ -5,0 +5,0 @@ "main": "bundles/ngx-base.umd.js", |
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
71678
41
714