@stemy/ngx-utils 12.2.8 → 12.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/stemy-ngx-utils.umd.js +4 -4
- package/bundles/stemy-ngx-utils.umd.js.map +1 -1
- package/esm2015/ngx-utils/pipes/replace.pipe.js +3 -2
- package/esm2015/ngx-utils/services/universal.service.js +2 -2
- package/esm2015/ngx-utils/utils/object.utils.js +3 -3
- package/fesm2015/stemy-ngx-utils.js +4 -4
- package/fesm2015/stemy-ngx-utils.js.map +1 -1
- package/package.json +1 -1
- package/stemy-ngx-utils.metadata.json +1 -1
|
@@ -319,8 +319,8 @@
|
|
|
319
319
|
|
|
320
320
|
var defaultPredicate = function () { return true; };
|
|
321
321
|
var ɵ0 = defaultPredicate;
|
|
322
|
-
var hasBlob = typeof Blob !== "undefined";
|
|
323
|
-
var hasFile = typeof File !== "undefined";
|
|
322
|
+
var hasBlob = typeof Blob !== "undefined" && !!Blob;
|
|
323
|
+
var hasFile = typeof File !== "undefined" && !!File;
|
|
324
324
|
var ObjectUtils = /** @class */ (function () {
|
|
325
325
|
function ObjectUtils() {
|
|
326
326
|
}
|
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
this.platformId = platformId;
|
|
1770
1770
|
this.dds = dds;
|
|
1771
1771
|
var info = this.dds.getDeviceInfo();
|
|
1772
|
-
this.crawler = /(bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|lighthouse|angular-universal|PTST)/gi.test(info.userAgent);
|
|
1772
|
+
this.crawler = /(bot|google|baidu|bing|msn|duckduckbot|teoma|slurp|yandex|lighthouse|angular-universal|PTST|PostmanRuntime)/gi.test(info.userAgent);
|
|
1773
1773
|
}
|
|
1774
1774
|
Object.defineProperty(UniversalService.prototype, "isBrowser", {
|
|
1775
1775
|
get: function () {
|
|
@@ -4736,7 +4736,7 @@
|
|
|
4736
4736
|
function ReplacePipe() {
|
|
4737
4737
|
}
|
|
4738
4738
|
ReplacePipe.prototype.transform = function (value, from, to) {
|
|
4739
|
-
return value ? value.replace(from, to) :
|
|
4739
|
+
return ObjectUtils.isDefined(value) ? ("" + value).replace(from, to) : "";
|
|
4740
4740
|
};
|
|
4741
4741
|
return ReplacePipe;
|
|
4742
4742
|
}());
|