jsquery_node 1.0.6 → 1.0.7
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/jsquery.js +3 -1
- package/jsquery.ts +3 -1
- package/package.json +1 -1
package/jsquery.js
CHANGED
|
@@ -264,7 +264,9 @@ export const { $, JSQuery } = (() => {
|
|
|
264
264
|
function J(q) {
|
|
265
265
|
return Element.from(document.querySelector(q));
|
|
266
266
|
}
|
|
267
|
-
J.from =
|
|
267
|
+
J.from = ((elt) => {
|
|
268
|
+
return Element.from(elt);
|
|
269
|
+
});
|
|
268
270
|
J.all = (q) => {
|
|
269
271
|
return Element.from(document.querySelectorAll(q));
|
|
270
272
|
};
|
package/jsquery.ts
CHANGED
|
@@ -271,7 +271,9 @@ export const { $, JSQuery } = (() => {
|
|
|
271
271
|
return Element.from(document.querySelector(q)) as any;
|
|
272
272
|
}
|
|
273
273
|
|
|
274
|
-
J.from =
|
|
274
|
+
J.from = ((elt:any) => {
|
|
275
|
+
return Element.from(elt);
|
|
276
|
+
}) as typeof Element.from;
|
|
275
277
|
|
|
276
278
|
J.all = (q: any): ElementArray => {
|
|
277
279
|
return Element.from(document.querySelectorAll(q)) as any;
|