@bbn/bbn 1.0.198 → 1.0.200

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/$.js CHANGED
@@ -2,6 +2,9 @@ var $ = function (selector, context) {
2
2
  if (context === null || context === void 0 ? void 0 : context.querySelectorAll) {
3
3
  return context.querySelectorAll(selector);
4
4
  }
5
+ if (context) {
6
+ throw new Error('Invalid context');
7
+ }
5
8
  return document.body.querySelectorAll(selector);
6
9
  };
7
10
  export { $ };
package/dist/bbn.js CHANGED
@@ -176,6 +176,9 @@ var $ = function (selector, context) {
176
176
  if (context === null || context === void 0 ? void 0 : context.querySelectorAll) {
177
177
  return context.querySelectorAll(selector);
178
178
  }
179
+ if (context) {
180
+ throw new Error('Invalid context');
181
+ }
179
182
  return document.body.querySelectorAll(selector);
180
183
  };
181
184