@taufik-nurrohman/text-editor.source 2.2.1 → 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.
- package/LICENSE +1 -1
- package/README.md +0 -0
- package/index.js +6 -6
- package/index.min.js +1 -1
- package/index.mjs +1 -1
- package/package.json +11 -11
package/LICENSE
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
The MIT License (MIT)
|
2
2
|
|
3
|
-
Copyright ©
|
3
|
+
Copyright © 2022 Taufik Nurrohman <https://github.com/taufik-nurrohman>
|
4
4
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
6
|
of this software and associated documentation files (the “Software”), to deal
|
package/README.md
CHANGED
File without changes
|
package/index.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
*
|
3
3
|
* The MIT License (MIT)
|
4
4
|
*
|
5
|
-
* Copyright ©
|
5
|
+
* Copyright © 2022 Taufik Nurrohman <https://github.com/taufik-nurrohman>
|
6
6
|
*
|
7
7
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
* of this software and associated documentation files (the “Software”), to deal
|
@@ -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.min.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
*
|
3
3
|
* The MIT License (MIT)
|
4
4
|
*
|
5
|
-
* Copyright ©
|
5
|
+
* Copyright © 2022 Taufik Nurrohman <https://github.com/taufik-nurrohman>
|
6
6
|
*
|
7
7
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
8
|
* of this software and associated documentation files (the “Software”), to deal
|
package/index.mjs
CHANGED
package/package.json
CHANGED
@@ -3,17 +3,17 @@
|
|
3
3
|
"browser": "index.min.js",
|
4
4
|
"bugs": "https://github.com/taufik-nurrohman/text-editor.source/issues",
|
5
5
|
"dependencies": {
|
6
|
-
"@taufik-nurrohman/has": "
|
7
|
-
"@taufik-nurrohman/key": "
|
8
|
-
"@taufik-nurrohman/pattern": "
|
9
|
-
"@taufik-nurrohman/text-editor": "
|
10
|
-
"@taufik-nurrohman/text-editor.history": "
|
11
|
-
"@taufik-nurrohman/tick": "
|
12
|
-
"@taufik-nurrohman/to": "
|
6
|
+
"@taufik-nurrohman/has": "*",
|
7
|
+
"@taufik-nurrohman/key": "*",
|
8
|
+
"@taufik-nurrohman/pattern": "*",
|
9
|
+
"@taufik-nurrohman/text-editor": "*",
|
10
|
+
"@taufik-nurrohman/text-editor.history": "*",
|
11
|
+
"@taufik-nurrohman/tick": "*",
|
12
|
+
"@taufik-nurrohman/to": "*"
|
13
13
|
},
|
14
14
|
"description": "Provides a set of key strokes to generate responses like in a typical source code editor.",
|
15
15
|
"devDependencies": {
|
16
|
-
"@taufik-nurrohman/factory": "
|
16
|
+
"@taufik-nurrohman/factory": "*"
|
17
17
|
},
|
18
18
|
"exports": {
|
19
19
|
"import": "./index.mjs",
|
@@ -47,8 +47,8 @@
|
|
47
47
|
"url": "git+https://github.com/taufik-nurrohman/text-editor.source.git"
|
48
48
|
},
|
49
49
|
"scripts": {
|
50
|
-
"pack": "pack --clean=false --from=.github/
|
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.
|
54
|
-
}
|
53
|
+
"version": "2.2.4"
|
54
|
+
}
|