cycode-pt-yum 1.0.0
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.
Potentially problematic release.
This version of cycode-pt-yum might be problematic. Click here for more details.
- package/README.md +1 -0
- package/index.js +18 -0
- package/package.json +12 -0
- package/test.sh +2 -0
package/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
This is for YUM.
|
package/index.js
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.dedent = void 0;
|
|
4
|
+
function dedent(text) {
|
|
5
|
+
var re_whitespace = /^([ \t]*)(.*)\n/gm;
|
|
6
|
+
var l, m, i;
|
|
7
|
+
while ((m = re_whitespace.exec(text)) !== null) {
|
|
8
|
+
if (!m[2])
|
|
9
|
+
continue;
|
|
10
|
+
if ((l = m[1].length)) {
|
|
11
|
+
i = i !== undefined ? Math.min(i, l) : l;
|
|
12
|
+
}
|
|
13
|
+
else
|
|
14
|
+
break;
|
|
15
|
+
}
|
|
16
|
+
if (i)
|
|
17
|
+
text = text.replace(new RegExp('^[ \t]{' + i + '}(.*\n)', 'gm'), '$1');
|
|
18
|
+
return text;
|
package/package.json
ADDED
package/test.sh
ADDED