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 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 = Element.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 = Element.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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsquery_node",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "jsquery",
5
5
  "homepage": "https://github.com/chickencuber/jsquery_node#readme",
6
6
  "bugs": {