@domql/element 2.29.40 → 2.29.41
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/dist/cjs/methods/index.js +5 -11
- package/dist/esm/methods/index.js +5 -11
- package/methods/index.js +11 -11
- package/package.json +6 -6
|
@@ -231,22 +231,16 @@ function verbose(element, ...args) {
|
|
|
231
231
|
return parent;
|
|
232
232
|
}
|
|
233
233
|
function log(...params) {
|
|
234
|
-
|
|
235
|
-
console.log(...params);
|
|
236
|
-
}
|
|
234
|
+
console.log(...params);
|
|
237
235
|
}
|
|
238
236
|
function warn(...params) {
|
|
239
|
-
|
|
240
|
-
console.warn(...params);
|
|
241
|
-
}
|
|
237
|
+
console.warn(...params);
|
|
242
238
|
}
|
|
243
239
|
function error(...params) {
|
|
244
240
|
var _a, _b;
|
|
245
|
-
if ((0
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
console.error(...params, this);
|
|
249
|
-
}
|
|
241
|
+
if ((_a = params[params.length - 1]) == null ? void 0 : _a.debugger) debugger;
|
|
242
|
+
if ((_b = params[params.length - 1]) == null ? void 0 : _b.verbose) verbose.call(this, ...params);
|
|
243
|
+
console.error(...params, this);
|
|
250
244
|
}
|
|
251
245
|
function nextElement() {
|
|
252
246
|
const element = this;
|
|
@@ -193,22 +193,16 @@ function verbose(element, ...args) {
|
|
|
193
193
|
return parent;
|
|
194
194
|
}
|
|
195
195
|
function log(...params) {
|
|
196
|
-
|
|
197
|
-
console.log(...params);
|
|
198
|
-
}
|
|
196
|
+
console.log(...params);
|
|
199
197
|
}
|
|
200
198
|
function warn(...params) {
|
|
201
|
-
|
|
202
|
-
console.warn(...params);
|
|
203
|
-
}
|
|
199
|
+
console.warn(...params);
|
|
204
200
|
}
|
|
205
201
|
function error(...params) {
|
|
206
202
|
var _a, _b;
|
|
207
|
-
if (
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
console.error(...params, this);
|
|
211
|
-
}
|
|
203
|
+
if ((_a = params[params.length - 1]) == null ? void 0 : _a.debugger) debugger;
|
|
204
|
+
if ((_b = params[params.length - 1]) == null ? void 0 : _b.verbose) verbose.call(this, ...params);
|
|
205
|
+
console.error(...params, this);
|
|
212
206
|
}
|
|
213
207
|
function nextElement() {
|
|
214
208
|
const element = this;
|
package/methods/index.js
CHANGED
|
@@ -239,23 +239,23 @@ export function verbose (element, ...args) {
|
|
|
239
239
|
}
|
|
240
240
|
|
|
241
241
|
export function log (...params) {
|
|
242
|
-
if (isNotProduction()) {
|
|
243
|
-
|
|
244
|
-
}
|
|
242
|
+
// if (isNotProduction()) {
|
|
243
|
+
console.log(...params)
|
|
244
|
+
// }
|
|
245
245
|
}
|
|
246
246
|
|
|
247
247
|
export function warn (...params) {
|
|
248
|
-
if (isNotProduction()) {
|
|
249
|
-
|
|
250
|
-
}
|
|
248
|
+
// if (isNotProduction()) {
|
|
249
|
+
console.warn(...params)
|
|
250
|
+
// }
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
export function error (...params) {
|
|
254
|
-
if (isNotProduction()) {
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
}
|
|
254
|
+
// if (isNotProduction()) {
|
|
255
|
+
if (params[params.length - 1]?.debugger) debugger // eslint-disable-line
|
|
256
|
+
if (params[params.length - 1]?.verbose) verbose.call(this, ...params)
|
|
257
|
+
console.error(...params, this)
|
|
258
|
+
// }
|
|
259
259
|
}
|
|
260
260
|
|
|
261
261
|
export function nextElement () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@domql/element",
|
|
3
|
-
"version": "2.29.
|
|
3
|
+
"version": "2.29.41",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "index.js",
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
"prepublish": "npx rimraf -I dist && npm run build && npm run copy:package:cjs"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@domql/event": "^2.29.
|
|
31
|
-
"@domql/render": "^2.29.
|
|
32
|
-
"@domql/state": "^2.29.
|
|
33
|
-
"@domql/utils": "^2.29.
|
|
30
|
+
"@domql/event": "^2.29.41",
|
|
31
|
+
"@domql/render": "^2.29.41",
|
|
32
|
+
"@domql/state": "^2.29.41",
|
|
33
|
+
"@domql/utils": "^2.29.41"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "4a29e8f6c49b6765624ad45c11f24d9558033592",
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@babel/core": "^7.27.1"
|
|
38
38
|
}
|