find-cli 1.7.24 → 1.7.26
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/.aiignore +11 -0
- package/.swcrc +3 -0
- package/lib/abbreviations.js +15 -15
- package/lib/action/addRootDirectoryPath.js +9 -9
- package/lib/action/find.js +30 -30
- package/lib/action/help.js +47 -2
- package/lib/action/initialise.js +4 -4
- package/lib/action/listRootDirectoryPaths.js +5 -5
- package/lib/action/removeRootDirectoryPath.js +10 -10
- package/lib/action/version.js +6 -6
- package/lib/commands.js +8 -8
- package/lib/configuration/version_1_1.js +9 -9
- package/lib/configuration/version_1_2.js +14 -14
- package/lib/configuration/version_1_3.js +6 -6
- package/lib/configuration/version_1_4.js +9 -9
- package/lib/configuration/version_1_7.js +14 -14
- package/lib/configuration.js +76 -114
- package/lib/constants.js +12 -12
- package/lib/converter/alternates.js +16 -117
- package/lib/converter/characterClass.js +28 -129
- package/lib/converter/default.js +12 -113
- package/lib/converter/directory.js +12 -113
- package/lib/converter/escapedCharacter.js +12 -113
- package/lib/converter/period.js +12 -113
- package/lib/converter/questionMark.js +12 -113
- package/lib/converter/repeatedDirectories.js +12 -113
- package/lib/converter/repeatedWildcard.js +12 -113
- package/lib/converter/singleDirectory.js +12 -113
- package/lib/converter/singleWildcard.js +12 -113
- package/lib/converter.js +24 -57
- package/lib/converters.js +14 -14
- package/lib/defaults.js +10 -10
- package/lib/descriptions.js +5 -5
- package/lib/find.js +15 -15
- package/lib/isIgnored/asynchronous.js +15 -15
- package/lib/isIgnored/synchronous.js +24 -24
- package/lib/line.js +99 -174
- package/lib/main.js +18 -18
- package/lib/messages.js +16 -16
- package/lib/occurrence.js +19 -55
- package/lib/operation/addRootDirectoryPath.js +3 -3
- package/lib/operation/find.js +12 -35
- package/lib/operation/listRootDirectoryPaths.js +5 -5
- package/lib/operation/previousRule.js +10 -10
- package/lib/operation/prompt/addRootDirectoryPath.js +15 -15
- package/lib/operation/prompt/ignoreOrPermitPath.js +15 -15
- package/lib/operation/prompt/pathRule.js +17 -17
- package/lib/operation/prompt/previousRule.js +10 -10
- package/lib/operation/prompt/removeRootDirectoryPath.js +18 -18
- package/lib/operation/prompt/rule.js +21 -21
- package/lib/operation/removeRootDirectoryPath.js +5 -5
- package/lib/operation/removeRootDirectoryPathByIndex.js +4 -4
- package/lib/operation/rule.js +6 -6
- package/lib/operation/updatePatRules.js +7 -7
- package/lib/operation/validateRootDirectoryPath.js +7 -7
- package/lib/options.js +11 -11
- package/lib/prepare.js +5 -5
- package/lib/rule/glob.js +87 -167
- package/lib/rule/regex.js +73 -127
- package/lib/rule/string.js +69 -120
- package/lib/types.js +4 -4
- package/lib/utilities/find.js +44 -44
- package/lib/utilities/literal.js +2 -2
- package/lib/utilities/log.js +7 -7
- package/lib/utilities/operation.js +7 -7
- package/lib/utilities/path.js +12 -12
- package/lib/utilities/prompt.js +11 -11
- package/lib/utilities/rule.js +5 -5
- package/lib/utilities/string.js +6 -6
- package/lib/utilities/validate.js +7 -7
- package/lib/versions.js +7 -7
- package/package.json +2 -2
|
@@ -8,124 +8,23 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _converter = /*#__PURE__*/ _interop_require_default(require("../converter"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
17
|
+
class RepeatedWildcardConverter extends _converter.default {
|
|
18
|
+
callback(characters) {
|
|
19
|
+
const result = `.*`;
|
|
20
|
+
return result;
|
|
81
21
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
-
o.__proto__ = p;
|
|
87
|
-
return o;
|
|
88
|
-
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
|
-
}
|
|
103
|
-
var RepeatedWildcardConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(RepeatedWildcardConverter, Converter);
|
|
105
|
-
function RepeatedWildcardConverter() {
|
|
106
|
-
_class_call_check(this, RepeatedWildcardConverter);
|
|
107
|
-
return _call_super(this, RepeatedWildcardConverter, arguments);
|
|
22
|
+
static regex = /^\*\*/;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(RepeatedWildcardConverter);
|
|
108
25
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
value: function callback(characters) {
|
|
113
|
-
var result = ".*";
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
], [
|
|
118
|
-
{
|
|
119
|
-
key: "fromNothing",
|
|
120
|
-
value: function fromNothing() {
|
|
121
|
-
return _converter.default.fromNothing(RepeatedWildcardConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return RepeatedWildcardConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(RepeatedWildcardConverter, "regex", /^\*\*/);
|
|
128
|
-
var singleDirectoryConverter = RepeatedWildcardConverter.fromNothing();
|
|
129
|
-
var _default = singleDirectoryConverter;
|
|
26
|
+
}
|
|
27
|
+
const singleDirectoryConverter = RepeatedWildcardConverter.fromNothing();
|
|
28
|
+
const _default = singleDirectoryConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvcmVwZWF0ZWRXaWxkY2FyZC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IENvbnZlcnRlciBmcm9tIFwiLi4vY29udmVydGVyXCI7XG5cbmNsYXNzIFJlcGVhdGVkV2lsZGNhcmRDb252ZXJ0ZXIgZXh0ZW5kcyBDb252ZXJ0ZXIge1xuICBjYWxsYmFjayhjaGFyYWN0ZXJzKSB7XG4gICAgY29uc3QgcmVzdWx0ID0gYC4qYDtcblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cblxuICBzdGF0aWMgcmVnZXggPSAvXlxcKlxcKi87XG5cbiAgc3RhdGljIGZyb21Ob3RoaW5nKCkgeyByZXR1cm4gQ29udmVydGVyLmZyb21Ob3RoaW5nKFJlcGVhdGVkV2lsZGNhcmRDb252ZXJ0ZXIpOyB9XG59XG5cbmNvbnN0IHNpbmdsZURpcmVjdG9yeUNvbnZlcnRlciA9IFJlcGVhdGVkV2lsZGNhcmRDb252ZXJ0ZXIuZnJvbU5vdGhpbmcoKTtcblxuZXhwb3J0IGRlZmF1bHQgc2luZ2xlRGlyZWN0b3J5Q29udmVydGVyO1xuIl0sIm5hbWVzIjpbIlJlcGVhdGVkV2lsZGNhcmRDb252ZXJ0ZXIiLCJDb252ZXJ0ZXIiLCJjYWxsYmFjayIsImNoYXJhY3RlcnMiLCJyZXN1bHQiLCJyZWdleCIsImZyb21Ob3RoaW5nIiwic2luZ2xlRGlyZWN0b3J5Q29udmVydGVyIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFrQkE7OztlQUFBOzs7a0VBaEJzQjs7Ozs7O0FBRXRCLE1BQU1BLGtDQUFrQ0Msa0JBQVM7SUFDL0NDLFNBQVNDLFVBQVUsRUFBRTtRQUNuQixNQUFNQyxTQUFTLENBQUMsRUFBRSxDQUFDO1FBRW5CLE9BQU9BO0lBQ1Q7SUFFQSxPQUFPQyxRQUFRLFFBQVE7SUFFdkIsT0FBT0MsY0FBYztRQUFFLE9BQU9MLGtCQUFTLENBQUNLLFdBQVcsQ0FBQ047SUFBNEI7QUFDbEY7QUFFQSxNQUFNTywyQkFBMkJQLDBCQUEwQk0sV0FBVztNQUV0RSxXQUFlQyJ9
|
|
@@ -8,124 +8,23 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _converter = /*#__PURE__*/ _interop_require_default(require("../converter"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
17
|
+
class SingleDirectoryConverter extends _converter.default {
|
|
18
|
+
callback(characters) {
|
|
19
|
+
const result = `[^/]*\\/`;
|
|
20
|
+
return result;
|
|
81
21
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
-
o.__proto__ = p;
|
|
87
|
-
return o;
|
|
88
|
-
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
|
-
}
|
|
103
|
-
var SingleDirectoryConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(SingleDirectoryConverter, Converter);
|
|
105
|
-
function SingleDirectoryConverter() {
|
|
106
|
-
_class_call_check(this, SingleDirectoryConverter);
|
|
107
|
-
return _call_super(this, SingleDirectoryConverter, arguments);
|
|
22
|
+
static regex = /^\*\//;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(SingleDirectoryConverter);
|
|
108
25
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
value: function callback(characters) {
|
|
113
|
-
var result = "[^/]*\\/";
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
], [
|
|
118
|
-
{
|
|
119
|
-
key: "fromNothing",
|
|
120
|
-
value: function fromNothing() {
|
|
121
|
-
return _converter.default.fromNothing(SingleDirectoryConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return SingleDirectoryConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(SingleDirectoryConverter, "regex", /^\*\//);
|
|
128
|
-
var singleDirectoryConverter = SingleDirectoryConverter.fromNothing();
|
|
129
|
-
var _default = singleDirectoryConverter;
|
|
26
|
+
}
|
|
27
|
+
const singleDirectoryConverter = SingleDirectoryConverter.fromNothing();
|
|
28
|
+
const _default = singleDirectoryConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvc2luZ2xlRGlyZWN0b3J5LmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgQ29udmVydGVyIGZyb20gXCIuLi9jb252ZXJ0ZXJcIjtcblxuY2xhc3MgU2luZ2xlRGlyZWN0b3J5Q29udmVydGVyIGV4dGVuZHMgQ29udmVydGVyIHtcbiAgY2FsbGJhY2soY2hhcmFjdGVycykge1xuICAgIGNvbnN0IHJlc3VsdCA9IGBbXi9dKlxcXFwvYDtcblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cblxuICBzdGF0aWMgcmVnZXggPSAvXlxcKlxcLy87XG5cbiAgc3RhdGljIGZyb21Ob3RoaW5nKCkgeyByZXR1cm4gQ29udmVydGVyLmZyb21Ob3RoaW5nKFNpbmdsZURpcmVjdG9yeUNvbnZlcnRlcik7IH1cbn1cblxuY29uc3Qgc2luZ2xlRGlyZWN0b3J5Q29udmVydGVyID0gU2luZ2xlRGlyZWN0b3J5Q29udmVydGVyLmZyb21Ob3RoaW5nKCk7XG5cbmV4cG9ydCBkZWZhdWx0IHNpbmdsZURpcmVjdG9yeUNvbnZlcnRlcjtcbiJdLCJuYW1lcyI6WyJTaW5nbGVEaXJlY3RvcnlDb252ZXJ0ZXIiLCJDb252ZXJ0ZXIiLCJjYWxsYmFjayIsImNoYXJhY3RlcnMiLCJyZXN1bHQiLCJyZWdleCIsImZyb21Ob3RoaW5nIiwic2luZ2xlRGlyZWN0b3J5Q29udmVydGVyIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFrQkE7OztlQUFBOzs7a0VBaEJzQjs7Ozs7O0FBRXRCLE1BQU1BLGlDQUFpQ0Msa0JBQVM7SUFDOUNDLFNBQVNDLFVBQVUsRUFBRTtRQUNuQixNQUFNQyxTQUFTLENBQUMsUUFBUSxDQUFDO1FBRXpCLE9BQU9BO0lBQ1Q7SUFFQSxPQUFPQyxRQUFRLFFBQVE7SUFFdkIsT0FBT0MsY0FBYztRQUFFLE9BQU9MLGtCQUFTLENBQUNLLFdBQVcsQ0FBQ047SUFBMkI7QUFDakY7QUFFQSxNQUFNTywyQkFBMkJQLHlCQUF5Qk0sV0FBVztNQUVyRSxXQUFlQyJ9
|
|
@@ -8,124 +8,23 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
function _assert_this_initialized(self) {
|
|
13
|
-
if (self === void 0) {
|
|
14
|
-
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
15
|
-
}
|
|
16
|
-
return self;
|
|
17
|
-
}
|
|
18
|
-
function _call_super(_this, derived, args) {
|
|
19
|
-
derived = _get_prototype_of(derived);
|
|
20
|
-
return _possible_constructor_return(_this, _is_native_reflect_construct() ? Reflect.construct(derived, args || [], _get_prototype_of(_this).constructor) : derived.apply(_this, args));
|
|
21
|
-
}
|
|
22
|
-
function _class_call_check(instance, Constructor) {
|
|
23
|
-
if (!(instance instanceof Constructor)) {
|
|
24
|
-
throw new TypeError("Cannot call a class as a function");
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _defineProperties(target, props) {
|
|
28
|
-
for(var i = 0; i < props.length; i++){
|
|
29
|
-
var descriptor = props[i];
|
|
30
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
31
|
-
descriptor.configurable = true;
|
|
32
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
33
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
37
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
38
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
39
|
-
return Constructor;
|
|
40
|
-
}
|
|
41
|
-
function _define_property(obj, key, value) {
|
|
42
|
-
if (key in obj) {
|
|
43
|
-
Object.defineProperty(obj, key, {
|
|
44
|
-
value: value,
|
|
45
|
-
enumerable: true,
|
|
46
|
-
configurable: true,
|
|
47
|
-
writable: true
|
|
48
|
-
});
|
|
49
|
-
} else {
|
|
50
|
-
obj[key] = value;
|
|
51
|
-
}
|
|
52
|
-
return obj;
|
|
53
|
-
}
|
|
54
|
-
function _get_prototype_of(o) {
|
|
55
|
-
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
56
|
-
return o.__proto__ || Object.getPrototypeOf(o);
|
|
57
|
-
};
|
|
58
|
-
return _get_prototype_of(o);
|
|
59
|
-
}
|
|
60
|
-
function _inherits(subClass, superClass) {
|
|
61
|
-
if (typeof superClass !== "function" && superClass !== null) {
|
|
62
|
-
throw new TypeError("Super expression must either be null or a function");
|
|
63
|
-
}
|
|
64
|
-
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
65
|
-
constructor: {
|
|
66
|
-
value: subClass,
|
|
67
|
-
writable: true,
|
|
68
|
-
configurable: true
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (superClass) _set_prototype_of(subClass, superClass);
|
|
72
|
-
}
|
|
11
|
+
const _converter = /*#__PURE__*/ _interop_require_default(require("../converter"));
|
|
73
12
|
function _interop_require_default(obj) {
|
|
74
13
|
return obj && obj.__esModule ? obj : {
|
|
75
14
|
default: obj
|
|
76
15
|
};
|
|
77
16
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
17
|
+
class SingleWildcardConverter extends _converter.default {
|
|
18
|
+
callback(characters) {
|
|
19
|
+
const result = `.+?`;
|
|
20
|
+
return result;
|
|
81
21
|
}
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
86
|
-
o.__proto__ = p;
|
|
87
|
-
return o;
|
|
88
|
-
};
|
|
89
|
-
return _set_prototype_of(o, p);
|
|
90
|
-
}
|
|
91
|
-
function _type_of(obj) {
|
|
92
|
-
"@swc/helpers - typeof";
|
|
93
|
-
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
94
|
-
}
|
|
95
|
-
function _is_native_reflect_construct() {
|
|
96
|
-
try {
|
|
97
|
-
var result = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
98
|
-
} catch (_) {}
|
|
99
|
-
return (_is_native_reflect_construct = function() {
|
|
100
|
-
return !!result;
|
|
101
|
-
})();
|
|
102
|
-
}
|
|
103
|
-
var SingleWildcardConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(SingleWildcardConverter, Converter);
|
|
105
|
-
function SingleWildcardConverter() {
|
|
106
|
-
_class_call_check(this, SingleWildcardConverter);
|
|
107
|
-
return _call_super(this, SingleWildcardConverter, arguments);
|
|
22
|
+
static regex = /^\*/;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(SingleWildcardConverter);
|
|
108
25
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
value: function callback(characters) {
|
|
113
|
-
var result = ".+?";
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
], [
|
|
118
|
-
{
|
|
119
|
-
key: "fromNothing",
|
|
120
|
-
value: function fromNothing() {
|
|
121
|
-
return _converter.default.fromNothing(SingleWildcardConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return SingleWildcardConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(SingleWildcardConverter, "regex", /^\*/);
|
|
128
|
-
var singleWildcardConverter = SingleWildcardConverter.fromNothing();
|
|
129
|
-
var _default = singleWildcardConverter;
|
|
26
|
+
}
|
|
27
|
+
const singleWildcardConverter = SingleWildcardConverter.fromNothing();
|
|
28
|
+
const _default = singleWildcardConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvc2luZ2xlV2lsZGNhcmQuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCBDb252ZXJ0ZXIgZnJvbSBcIi4uL2NvbnZlcnRlclwiO1xuXG5jbGFzcyBTaW5nbGVXaWxkY2FyZENvbnZlcnRlciBleHRlbmRzIENvbnZlcnRlciB7XG4gIGNhbGxiYWNrKGNoYXJhY3RlcnMpIHtcbiAgICBjb25zdCByZXN1bHQgPSBgLis/
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjp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YztRQUFFLE9BQU9MLGtCQUFTLENBQUNLLFdBQVcsQ0FBQ047SUFBMEI7QUFDaEY7QUFFQSxNQUFNTywwQkFBMEJQLHdCQUF3Qk0sV0FBVztNQUVuRSxXQUFlQyJ9
|
package/lib/converter.js
CHANGED
|
@@ -8,64 +8,31 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return Converter;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
function _defineProperties(target, props) {
|
|
19
|
-
for(var i = 0; i < props.length; i++){
|
|
20
|
-
var descriptor = props[i];
|
|
21
|
-
descriptor.enumerable = descriptor.enumerable || false;
|
|
22
|
-
descriptor.configurable = true;
|
|
23
|
-
if ("value" in descriptor) descriptor.writable = true;
|
|
24
|
-
Object.defineProperty(target, descriptor.key, descriptor);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
function _create_class(Constructor, protoProps, staticProps) {
|
|
28
|
-
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
29
|
-
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
30
|
-
return Constructor;
|
|
31
|
-
}
|
|
32
|
-
var first = _necessary.arrayUtilities.first;
|
|
33
|
-
var Converter = /*#__PURE__*/ function() {
|
|
34
|
-
function Converter(regex) {
|
|
35
|
-
_class_call_check(this, Converter);
|
|
11
|
+
const _necessary = require("necessary");
|
|
12
|
+
const _constants = require("./constants");
|
|
13
|
+
const { first } = _necessary.arrayUtilities;
|
|
14
|
+
class Converter {
|
|
15
|
+
constructor(regex){
|
|
36
16
|
this.regex = regex;
|
|
37
17
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
var string = characters.join(_constants.EMPTY_STRING), matches = this.regex.exec(string);
|
|
50
|
-
if (matches !== null) {
|
|
51
|
-
var firstMatch = first(matches), match = firstMatch; ///
|
|
52
|
-
result = this.callback(match);
|
|
53
|
-
var length = match.length, start = 0, deleteCount = length;
|
|
54
|
-
characters.splice(start, deleteCount);
|
|
55
|
-
}
|
|
56
|
-
return result;
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
], [
|
|
60
|
-
{
|
|
61
|
-
key: "fromNothing",
|
|
62
|
-
value: function fromNothing(Class) {
|
|
63
|
-
var regex = Class.regex, converter = new Class(regex);
|
|
64
|
-
return converter;
|
|
65
|
-
}
|
|
18
|
+
getRegex() {
|
|
19
|
+
return this.regex;
|
|
20
|
+
}
|
|
21
|
+
match(characters) {
|
|
22
|
+
let result = null;
|
|
23
|
+
const string = characters.join(_constants.EMPTY_STRING), matches = this.regex.exec(string);
|
|
24
|
+
if (matches !== null) {
|
|
25
|
+
const firstMatch = first(matches), match = firstMatch; ///
|
|
26
|
+
result = this.callback(match);
|
|
27
|
+
const length = match.length, start = 0, deleteCount = length;
|
|
28
|
+
characters.splice(start, deleteCount);
|
|
66
29
|
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
30
|
+
return result;
|
|
31
|
+
}
|
|
32
|
+
static fromNothing(Class) {
|
|
33
|
+
const { regex } = Class, converter = new Class(regex);
|
|
34
|
+
return converter;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
70
37
|
|
|
71
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
38
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb252ZXJ0ZXIuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmltcG9ydCB7IGFycmF5VXRpbGl0aWVzIH0gZnJvbSBcIm5lY2Vzc2FyeVwiO1xuXG5pbXBvcnQgeyBFTVBUWV9TVFJJTkcgfSBmcm9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ksWUFBWUMsS0FBSyxFQUFFO1FBQ3hCLE1BQU0sRUFBRWpCLEtBQUssRUFBRSxHQUFHaUIsT0FDWkMsWUFBWSxJQUFJRCxNQUFNakI7UUFFNUIsT0FBT2tCO0lBQ1Q7QUFDRiJ9
|
package/lib/converters.js
CHANGED
|
@@ -8,23 +8,23 @@ Object.defineProperty(exports, "default", {
|
|
|
8
8
|
return _default1;
|
|
9
9
|
}
|
|
10
10
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
const _period = /*#__PURE__*/ _interop_require_default(require("./converter/period"));
|
|
12
|
+
const _default = /*#__PURE__*/ _interop_require_default(require("./converter/default"));
|
|
13
|
+
const _directory = /*#__PURE__*/ _interop_require_default(require("./converter/directory"));
|
|
14
|
+
const _alternates = /*#__PURE__*/ _interop_require_default(require("./converter/alternates"));
|
|
15
|
+
const _questionMark = /*#__PURE__*/ _interop_require_default(require("./converter/questionMark"));
|
|
16
|
+
const _characterClass = /*#__PURE__*/ _interop_require_default(require("./converter/characterClass"));
|
|
17
|
+
const _singleWildcard = /*#__PURE__*/ _interop_require_default(require("./converter/singleWildcard"));
|
|
18
|
+
const _singleDirectory = /*#__PURE__*/ _interop_require_default(require("./converter/singleDirectory"));
|
|
19
|
+
const _repeatedWildcard = /*#__PURE__*/ _interop_require_default(require("./converter/repeatedWildcard"));
|
|
20
|
+
const _escapedCharacter = /*#__PURE__*/ _interop_require_default(require("./converter/escapedCharacter"));
|
|
21
|
+
const _repeatedDirectories = /*#__PURE__*/ _interop_require_default(require("./converter/repeatedDirectories"));
|
|
22
22
|
function _interop_require_default(obj) {
|
|
23
23
|
return obj && obj.__esModule ? obj : {
|
|
24
24
|
default: obj
|
|
25
25
|
};
|
|
26
26
|
}
|
|
27
|
-
|
|
27
|
+
const converters = [
|
|
28
28
|
_repeatedDirectories.default,
|
|
29
29
|
_singleDirectory.default,
|
|
30
30
|
_directory.default,
|
|
@@ -37,6 +37,6 @@ var converters = [
|
|
|
37
37
|
_characterClass.default,
|
|
38
38
|
_default.default
|
|
39
39
|
];
|
|
40
|
-
|
|
40
|
+
const _default1 = converters;
|
|
41
41
|
|
|
42
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
42
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9jb252ZXJ0ZXJzLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgcGVyaW9kQ29udmVydGVyIGZyb20gXCIuL2NvbnZlcnRlci9wZXJpb2RcIjtcbmltcG9ydCBkZWZhdWx0Q29udmVydGVyIGZyb20gXCIuL2NvbnZlcnRlci9kZWZhdWx0XCI7XG5pbXBvcnQgZGlyZWN0b3J5Q29udmVydGVyIGZyb20gXCIuL2NvbnZlcnRlci9kaXJlY3RvcnlcIjtcbmltcG9ydCBhbHRlcm5hdGVzQ29udmVydGVyIGZyb20gXCIuL2NvbnZlcnRlci9hbHRlcm5hdGVzXCI7XG5pbXBvcnQgcXVlc3Rpb25NYXJrQ29udmVydGVyIGZyb20gXCIuL2NvbnZlcnRlci9xdWVzdGlvbk1hcmtcIjtcbmltcG9ydCBjaGFyYWN0ZXJDbGFzc0NvbnZlcnRlciBmcm9tIFwiLi9jb252ZXJ0ZXIvY2hhcmFjdGVyQ2xhc3NcIjtcbmltcG9ydCBzaW5nbGVXaWxkY2FyZENvbnZlcnRlciBmcm9tIFwiLi9jb252ZXJ0ZXIvc2luZ2xlV2lsZGNhcmRcIjtcbmltcG9ydCBzaW5nbGVEaXJlY3RvcnlDb252ZXJ0ZXIgZnJvbSBcIi4vY29udmVydGVyL3NpbmdsZURpcmVjdG9yeVwiO1xuaW1wb3J0IHJlcGVhdGVkV2lsZGNhcmRDb252ZXJ0ZXIgZnJv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mFjdGVyQ2xhc3NDb252ZXJ0ZXIiLCJkZWZhdWx0Q29udmVydGVyIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkE0QkE7OztlQUFBOzs7K0RBMUI0QjtnRUFDQztrRUFDRTttRUFDQztxRUFDRTt1RUFDRTt1RUFDQTt3RUFDQzt5RUFDQzt5RUFDQTs0RUFDRzs7Ozs7O0FBRXpDLE1BQU1BLGFBQWE7SUFDakJDLDRCQUE0QjtJQUM1QkMsd0JBQXdCO0lBQ3hCQyxrQkFBa0I7SUFDbEJDLHlCQUF5QjtJQUN6QkMsdUJBQXVCO0lBQ3ZCQyx5QkFBeUI7SUFDekJDLHFCQUFxQjtJQUNyQkMsZUFBZTtJQUNmQyxtQkFBbUI7SUFDbkJDLHVCQUF1QjtJQUN2QkMsZ0JBQWdCO0NBQ2pCO01BRUQsWUFBZVgifQ==
|
package/lib/defaults.js
CHANGED
|
@@ -37,14 +37,14 @@ _export(exports, {
|
|
|
37
37
|
return DEFAULT_VERSION;
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
40
|
+
const DEFAULT_HELP = false;
|
|
41
|
+
const DEFAULT_REGEX = false;
|
|
42
|
+
const DEFAULT_STRING = false;
|
|
43
|
+
const DEFAULT_FORMAT = false;
|
|
44
|
+
const DEFAULT_VERSION = false;
|
|
45
|
+
const DEFAULT_DRY_RUN = false;
|
|
46
|
+
const DEFAULT_QUIETLY = false;
|
|
47
|
+
const DEFAULT_PREVIOUS = false;
|
|
48
|
+
const DEFAULT_INTERACTIVE = false;
|
|
49
49
|
|
|
50
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
50
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZWZhdWx0cy5qcyJdLCJzb3VyY2Vz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FBTVIsa0JBQWtCO0FBQ3hCLE1BQU1LLGtCQUFrQjtBQUN4QixNQUFNRCxtQkFBbUI7QUFDekIsTUFBTUQsc0JBQXNCIn0=
|
package/lib/descriptions.js
CHANGED
|
@@ -22,9 +22,9 @@ _export(exports, {
|
|
|
22
22
|
return REMOVE_ROOT_DIRECTORY_PATH_DESCRIPTION;
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
const GLOB_STRING_OR_REGEX_DESCRIPTION = `Glob, string or regex: `;
|
|
26
|
+
const ADD_ROOT_DIRECTORY_PATH_DESCRIPTION = `Root directory: `;
|
|
27
|
+
const REMOVE_ROOT_DIRECTORY_PATH_DESCRIPTION = `Root directory index: `;
|
|
28
|
+
const PREVIOUS_GLOB_STRING_OR_REGEX_DESCRIPTION = `Previous glob, string or regex: `;
|
|
29
29
|
|
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uL3NyYy9kZXNjcmlwdGlvbnMuanMiXSwic291cmNlc0NvbnRlbnQiOlsiXCJ1c2Ugc3RyaWN0XCI7XG5cbmV4cG9ydCBjb25zdCBHTE9CX1NUUklOR19PUl9SRUdFWF9ERVNDUklQVElPTiA9IGBHbG9iLCBzdHJpbmcgb3IgcmVnZXg6IGA7XG5leHBvcnQgY29uc3QgQUREX1JPT1RfRElSRUNUT1JZX1BBVEhfREVTQ1JJUFRJT04gPSBgUm9vdCBkaXJlY3Rvcnk6IGA7XG5leHBvcnQgY29uc3QgUkVNT1ZFX1JPT1RfRElSRUNUT1JZX1BBVEhfREVTQ1JJUFRJT04gPSBgUm9vdCBkaXJlY3RvcnkgaW5kZXg6IGA7XG5leHBvcnQgY29uc3QgUFJFVklPVVNfR0xPQl9TVFJJTkdfT1JfUkVHRVhfREVTQ1JJUFRJT04gPSBgUHJldmlv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