@koine/dom 2.0.0-beta.20 → 2.0.0-beta.22

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/addClass.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function addClass(el, className) {
2
2
  if (className === void 0) { className = ""; }
3
- if (process.env["NODE_ENV"] !== "production") {
3
+ if (process.env["NODE_ENV"] === "development") {
4
4
  if (!el) {
5
5
  console.warn("[@koine/dom:addClass] unexisting DOM element");
6
6
  return;
package/off.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function off(el, type, handler, options) {
2
2
  if (options === void 0) { options = false; }
3
- if (process.env["NODE_ENV"] !== "production") {
3
+ if (process.env["NODE_ENV"] === "development") {
4
4
  if (!el) {
5
5
  console.warn("[@koine/dom:off] unexisting DOM element");
6
6
  }
package/on.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import off from "./off.js";
2
2
  export function on(el, type, handler, options) {
3
3
  if (options === void 0) { options = false; }
4
- if (process.env["NODE_ENV"] !== "production") {
4
+ if (process.env["NODE_ENV"] === "development") {
5
5
  if (!el) {
6
6
  console.warn("[@koine/dom:on] unexisting DOM element");
7
7
  }
package/package.json CHANGED
@@ -2,11 +2,10 @@
2
2
  "name": "@koine/dom",
3
3
  "sideEffects": false,
4
4
  "dependencies": {
5
- "@koine/utils": "2.0.0-beta.20"
5
+ "@koine/utils": "2.0.0-beta.22"
6
6
  },
7
- "types": "./index.d.ts",
8
- "type": "module",
9
7
  "module": "./index.js",
8
+ "type": "module",
10
9
  "exports": {
11
10
  ".": {
12
11
  "import": "./index.js"
@@ -151,5 +150,5 @@
151
150
  }
152
151
  },
153
152
  "peerDependencies": {},
154
- "version": "2.0.0-beta.20"
153
+ "version": "2.0.0-beta.22"
155
154
  }
package/removeClass.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export function removeClass(el, className) {
2
2
  if (className === void 0) { className = ""; }
3
- if (process.env["NODE_ENV"] !== "production") {
3
+ if (process.env["NODE_ENV"] === "development") {
4
4
  if (!el) {
5
5
  ("[@koine/dom:removeClass] unexisting DOM element");
6
6
  return;