ngx-bootstrap 1.9.2 → 1.9.3
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/package.json
CHANGED
package/utils/warn-once.js
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
import { isDevMode } from '@angular/core';
|
2
2
|
var _messagesHash = {};
|
3
|
-
var _hideMsg =
|
3
|
+
var _hideMsg = typeof console === 'undefined' || !console.warn;
|
4
4
|
export function warnOnce(msg) {
|
5
|
-
if (_hideMsg || msg in _messagesHash) {
|
5
|
+
if (!isDevMode() || _hideMsg || msg in _messagesHash) {
|
6
6
|
return;
|
7
7
|
}
|
8
8
|
_messagesHash[msg] = true;
|
package/utils/warn-once.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"sources":["../../.tmp/utils/warn-once.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;
|
1
|
+
{"version":3,"sources":["../../.tmp/utils/warn-once.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC1C,IAAM,aAAa,GAA+B,EAAE,CAAC;AACrD,IAAM,QAAQ,GAAG,OAAO,OAAO,KAAK,WAAW,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC;AAEjE,MAAM,mBAAmB,GAAW;IAClC,EAAE,CAAC,CAAC,CAAC,SAAS,EAAE,IAAI,QAAQ,IAAI,GAAG,IAAI,aAAa,CAAC,CAAC,CAAC;QACrD,MAAM,CAAC;IACT,CAAC;IAED,aAAa,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;IAC1B,4BAA4B;IAC5B,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACpB,CAAC","file":"warn-once.js","sourceRoot":"","sourcesContent":["import { isDevMode } from '@angular/core';\nconst _messagesHash: { [key: string]: boolean } = {};\nconst _hideMsg = typeof console === 'undefined' || !console.warn;\n\nexport function warnOnce(msg: string): void {\n if (!isDevMode() || _hideMsg || msg in _messagesHash) {\n return;\n }\n\n _messagesHash[msg] = true;\n /*tslint:disable-next-line*/\n console.warn(msg);\n}\n"]}
|