@taufik-nurrohman/text-editor.source 2.2.3 → 2.2.4

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.
Files changed (3) hide show
  1. package/index.js +5 -5
  2. package/index.mjs +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -23,9 +23,9 @@
23
23
  * SOFTWARE.
24
24
  *
25
25
  */
26
- (function(global, factory) {
26
+ (function (global, factory) {
27
27
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.TE = global.TE || {}, global.TE.Source = {})));
28
- })(this, function(exports) {
28
+ })(this, function (exports) {
29
29
  'use strict';
30
30
  var hasValue = function hasValue(x, data) {
31
31
  return -1 !== data.indexOf(x);
@@ -57,11 +57,11 @@
57
57
  var W = window;
58
58
  var debounce = function debounce(then, time) {
59
59
  var timer;
60
- return function() {
60
+ return function () {
61
61
  var _arguments = arguments,
62
62
  _this = this;
63
63
  timer && clearTimeout(timer);
64
- timer = setTimeout(function() {
64
+ timer = setTimeout(function () {
65
65
  return then.apply(_this, _arguments);
66
66
  }, time);
67
67
  };
@@ -102,7 +102,7 @@
102
102
  defaults.source[type] = (...lot) => promisify(type, lot);
103
103
  });
104
104
  const that = {};
105
- that.toggle = function(open, close, wrap, tidy = false) {
105
+ that.toggle = function (open, close, wrap, tidy = false) {
106
106
  if (!close && "" !== close) {
107
107
  close = open;
108
108
  }
package/index.mjs CHANGED
@@ -35,7 +35,7 @@ const defaults = {
35
35
 
36
36
  export const that = {};
37
37
 
38
- that.toggle = function(open, close, wrap, tidy = false) {
38
+ that.toggle = function (open, close, wrap, tidy = false) {
39
39
  if (!close && "" !== close) {
40
40
  close = open;
41
41
  }
package/package.json CHANGED
@@ -50,5 +50,5 @@
50
50
  "pack": "pack --clean=false --from=.github/factory --js-format=umd --js-name=TE.Source --js-top='%(js.license)' --mjs=true --to=."
51
51
  },
52
52
  "type": "module",
53
- "version": "2.2.3"
53
+ "version": "2.2.4"
54
54
  }