jqx-es 1.3.7 → 1.3.9

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.
@@ -132,6 +132,12 @@ function systemLogFactory() {
132
132
  return systemLogger;
133
133
  }
134
134
 
135
+ function warn(...args) {
136
+ backLog.unshift(...args.map(arg => `${logTime()} ⚠ ${decodeForConsole(arg)}`));
137
+ console.warn(backLog.slice(0, args.length).join(`\n`));
138
+ return systemLogger;
139
+ }
140
+
135
141
  function log(...args) {
136
142
  backLog.unshift(...args.map(arg => `${logTime()} ✔ ${decodeForConsole(arg)}`));
137
143
  switch(on) {
@@ -143,6 +149,7 @@ function systemLogFactory() {
143
149
  Object.defineProperties(systemLogger, {
144
150
  log: {value: log, enumerable: false},
145
151
  error: {value: error, enumerable: false},
152
+ warn: {value: warn, enumerable: false},
146
153
  });
147
154
 
148
155
  return Object.freeze(systemLogger);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jqx-es",
3
- "version": "1.3.7",
3
+ "version": "1.3.9",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "JQuery alike with a few twists",