vue-intercept-plugin 1.0.1 → 1.0.2

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.
@@ -48,12 +48,12 @@ function resolveHandler(value) {
48
48
  if (Array.isArray(value)) {
49
49
  const [fn, ...args] = value;
50
50
  if (typeof fn !== 'function') {
51
- console.warn('[vue-intercept-plugin] 数组第一项必须是一个函数');
51
+ console.warn('[vue-intercept-plugin] The first item in the array must be a function');
52
52
  return null;
53
53
  }
54
54
  return (event) => { fn(...args, event); };
55
55
  }
56
- console.warn('[vue-intercept-plugin] v-intercept 的值必须是函数或 [函数, ...参数] 数组');
56
+ console.warn('[vue-intercept-plugin] v-intercept value must be a function or [function, ...args] array');
57
57
  return null;
58
58
  }
59
59
  /**
@@ -44,12 +44,12 @@ function resolveHandler(value) {
44
44
  if (Array.isArray(value)) {
45
45
  const [fn, ...args] = value;
46
46
  if (typeof fn !== 'function') {
47
- console.warn('[vue-intercept-plugin] 数组第一项必须是一个函数');
47
+ console.warn('[vue-intercept-plugin] The first item in the array must be a function');
48
48
  return null;
49
49
  }
50
50
  return (event) => { fn(...args, event); };
51
51
  }
52
- console.warn('[vue-intercept-plugin] v-intercept 的值必须是函数或 [函数, ...参数] 数组');
52
+ console.warn('[vue-intercept-plugin] v-intercept value must be a function or [function, ...args] array');
53
53
  return null;
54
54
  }
55
55
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intercept-plugin",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "A lightweight Vue plugin providing v-intercept custom directive — intercept DOM events with a single line of code, supports any event type, compatible with Vue 2 & Vue 3.",
5
5
  "main": "dist/vue-intercept-plugin.cjs.js",
6
6
  "module": "dist/vue-intercept-plugin.esm.js",