find-cli 1.7.25 → 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 +1 -1
|
@@ -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 EscapedCharacterConverter extends _converter.default {
|
|
18
|
+
callback(characters) {
|
|
19
|
+
const result = characters; ///
|
|
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 EscapedCharacterConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(EscapedCharacterConverter, Converter);
|
|
105
|
-
function EscapedCharacterConverter() {
|
|
106
|
-
_class_call_check(this, EscapedCharacterConverter);
|
|
107
|
-
return _call_super(this, EscapedCharacterConverter, arguments);
|
|
22
|
+
static regex = /^\\./;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(EscapedCharacterConverter);
|
|
108
25
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
value: function callback(characters) {
|
|
113
|
-
var result = characters; ///
|
|
114
|
-
return result;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
], [
|
|
118
|
-
{
|
|
119
|
-
key: "fromNothing",
|
|
120
|
-
value: function fromNothing() {
|
|
121
|
-
return _converter.default.fromNothing(EscapedCharacterConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return EscapedCharacterConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(EscapedCharacterConverter, "regex", /^\\./);
|
|
128
|
-
var questionMarkCharacterConverter = EscapedCharacterConverter.fromNothing();
|
|
129
|
-
var _default = questionMarkCharacterConverter;
|
|
26
|
+
}
|
|
27
|
+
const questionMarkCharacterConverter = EscapedCharacterConverter.fromNothing();
|
|
28
|
+
const _default = questionMarkCharacterConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvZXNjYXBlZENoYXJhY3Rlci5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IENvbnZlcnRlciBmcm9tIFwiLi4vY29udmVydGVyXCI7XG5cbmNsYXNzIEVzY2FwZWRDaGFyYWN0ZXJDb252ZXJ0ZXIgZXh0ZW5kcyBDb252ZXJ0ZXIge1xuICBjYWxsYmFjayhjaGFyYWN0ZXJzKSB7XG4gICAgY29uc3QgcmVzdWx0ID0gY2hhcmFjdGVyczsgIC8vL1xuXG4gICAgcmV0dXJuIHJlc3VsdDtcbiAgfVxuXG4gIHN0YXRpYyByZWdleCA9IC9eXFxcXC4vO1xuXG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHsgcmV0dXJuIENvbnZlcnRlci5mcm9tTm90aGluZyhFc2NhcGVkQ2hhcmFjdGVyQ29udmVydGVyKTsgfVxufVxuXG5jb25zdCBxdWVzdGlvbk1hcmtDaGFyYWN0ZXJDb252ZXJ0ZXIgPSBFc2NhcGVkQ2hhcmFjdGVyQ29udmVydGVyLmZyb21Ob3RoaW5nKCk7XG5cbmV4cG9ydCBkZWZhdWx0IHF1ZXN0aW9uTWFya0NoYXJhY3RlckNvbnZlcnRlcjtcbiJdLCJuYW1lcyI6WyJFc2NhcGVkQ2hhcmFjdGVyQ29udmVydGVyIiwiQ29udmVydGVyIiwiY2FsbGJhY2siLCJjaGFyYWN0ZXJzIiwicmVzdWx0IiwicmVnZXgiLCJmcm9tTm90aGluZyIsInF1ZXN0aW9uTWFya0NoYXJhY3RlckNvbnZlcnRlciJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBa0JBOzs7ZUFBQTs7O2tFQWhCc0I7Ozs7OztBQUV0QixNQUFNQSxrQ0FBa0NDLGtCQUFTO0lBQy9DQyxTQUFTQyxVQUFVLEVBQUU7UUFDbkIsTUFBTUMsU0FBU0QsWUFBYSxHQUFHO1FBRS9CLE9BQU9DO0lBQ1Q7SUFFQSxPQUFPQyxRQUFRLE9BQU87SUFFdEIsT0FBT0MsY0FBYztRQUFFLE9BQU9MLGtCQUFTLENBQUNLLFdBQVcsQ0FBQ047SUFBNEI7QUFDbEY7QUFFQSxNQUFNTyxpQ0FBaUNQLDBCQUEwQk0sV0FBVztNQUU1RSxXQUFlQyJ9
|
package/lib/converter/period.js
CHANGED
|
@@ -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 PeriodConverter 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 PeriodConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(PeriodConverter, Converter);
|
|
105
|
-
function PeriodConverter() {
|
|
106
|
-
_class_call_check(this, PeriodConverter);
|
|
107
|
-
return _call_super(this, PeriodConverter, arguments);
|
|
22
|
+
static regex = /^\./;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(PeriodConverter);
|
|
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(PeriodConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return PeriodConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(PeriodConverter, "regex", /^\./);
|
|
128
|
-
var periodConverter = PeriodConverter.fromNothing();
|
|
129
|
-
var _default = periodConverter;
|
|
26
|
+
}
|
|
27
|
+
const periodConverter = PeriodConverter.fromNothing();
|
|
28
|
+
const _default = periodConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvcGVyaW9kLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgQ29udmVydGVyIGZyb20gXCIuLi9jb252ZXJ0ZXJcIjtcblxuY2xhc3MgUGVyaW9kQ29udmVydGVyIGV4dGVuZHMgQ29udmVydGVyIHtcbiAgY2FsbGJhY2soY2hhcmFjdGVycykge1xuICAgIGNvbnN0IHJlc3VsdCA9IGBcXFxcLmA7XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG5cbiAgc3RhdGljIHJlZ2V4ID0gL15cXC4vO1xuXG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHsgcmV0dXJuIENvbnZlcnRlci5mcm9tTm90aGluZyhQZXJpb2RDb252ZXJ0ZXIpOyB9XG59XG5cbmNvbnN0IHBlcmlvZENvbnZlcnRlciA9IFBlcmlvZENvbnZlcnRlci5mcm9tTm90aGluZygpO1xuXG5leHBvcnQgZGVmYXVsdCBwZXJpb2RDb252ZXJ0ZXI7XG4iXSwibmFtZXMiOlsiUGVyaW9kQ29udmVydGVyIiwiQ29udmVydGVyIiwiY2FsbGJhY2siLCJjaGFyYWN0ZXJzIiwicmVzdWx0IiwicmVnZXgiLCJmcm9tTm90aGluZyIsInBlcmlvZENvbnZlcnRlciJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBa0JBOzs7ZUFBQTs7O2tFQWhCc0I7Ozs7OztBQUV0QixNQUFNQSx3QkFBd0JDLGtCQUFTO0lBQ3JDQyxTQUFTQyxVQUFVLEVBQUU7UUFDbkIsTUFBTUMsU0FBUyxDQUFDLEdBQUcsQ0FBQztRQUVwQixPQUFPQTtJQUNUO0lBRUEsT0FBT0MsUUFBUSxNQUFNO0lBRXJCLE9BQU9DLGNBQWM7UUFBRSxPQUFPTCxrQkFBUyxDQUFDSyxXQUFXLENBQUNOO0lBQWtCO0FBQ3hFO0FBRUEsTUFBTU8sa0JBQWtCUCxnQkFBZ0JNLFdBQVc7TUFFbkQsV0FBZUMifQ==
|
|
@@ -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 QuestionMarkConverter 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 QuestionMarkConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(QuestionMarkConverter, Converter);
|
|
105
|
-
function QuestionMarkConverter() {
|
|
106
|
-
_class_call_check(this, QuestionMarkConverter);
|
|
107
|
-
return _call_super(this, QuestionMarkConverter, arguments);
|
|
22
|
+
static regex = /^\?/;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(QuestionMarkConverter);
|
|
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(QuestionMarkConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return QuestionMarkConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(QuestionMarkConverter, "regex", /^\?/);
|
|
128
|
-
var questionMarkConverter = QuestionMarkConverter.fromNothing();
|
|
129
|
-
var _default = questionMarkConverter;
|
|
26
|
+
}
|
|
27
|
+
const questionMarkConverter = QuestionMarkConverter.fromNothing();
|
|
28
|
+
const _default = questionMarkConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvcXVlc3Rpb25NYXJrLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgQ29udmVydGVyIGZyb20gXCIuLi9jb252ZXJ0ZXJcIjtcblxuY2xhc3MgUXVlc3Rpb25NYXJrQ29udmVydGVyIGV4dGVuZHMgQ29udmVydGVyIHtcbiAgY2FsbGJhY2soY2hhcmFjdGVycykge1xuICAgIGNvbnN0IHJlc3VsdCA9IGAuYDtcblxuICAgIHJldHVybiByZXN1bHQ7XG4gIH1cblxuICBzdGF0aWMgcmVnZXggPSAvXlxcPy87XG5cbiAgc3RhdGljIGZyb21Ob3RoaW5nKCkgeyByZXR1cm4gQ29udmVydGVyLmZyb21Ob3RoaW5nKFF1ZXN0aW9uTWFya0NvbnZlcnRlcik7IH1cbn1cblxuY29uc3QgcXVlc3Rpb25NYXJrQ29udmVydGVyID0gUXVlc3Rpb25NYXJrQ29udmVydGVyLmZyb21Ob3RoaW5nKCk7XG5cbmV4cG9ydCBkZWZhdWx0IHF1ZXN0aW9uTWFya0NvbnZlcnRlcjtcbiJdLCJuYW1lcyI6WyJRdWVzdGlvbk1hcmtDb252ZXJ0ZXIiLCJDb252ZXJ0ZXIiLCJjYWxsYmFjayIsImNoYXJhY3RlcnMiLCJyZXN1bHQiLCJyZWdleCIsImZyb21Ob3RoaW5nIiwicXVlc3Rpb25NYXJrQ29udmVydGVyIl0sIm1hcHBpbmdzIjoiQUFBQTs7OzsrQkFrQkE7OztlQUFBOzs7a0VBaEJzQjs7Ozs7O0FBRXRCLE1BQU1BLDhCQUE4QkMsa0JBQVM7SUFDM0NDLFNBQVNDLFVBQVUsRUFBRTtRQUNuQixNQUFNQyxTQUFTLENBQUMsQ0FBQyxDQUFDO1FBRWxCLE9BQU9BO0lBQ1Q7SUFFQSxPQUFPQyxRQUFRLE1BQU07SUFFckIsT0FBT0MsY0FBYztRQUFFLE9BQU9MLGtCQUFTLENBQUNLLFdBQVcsQ0FBQ047SUFBd0I7QUFDOUU7QUFFQSxNQUFNTyx3QkFBd0JQLHNCQUFzQk0sV0FBVztNQUUvRCxXQUFlQyJ9
|
|
@@ -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 RepeatedDirectoriesConverter 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 RepeatedDirectoriesConverter = /*#__PURE__*/ function(Converter) {
|
|
104
|
-
_inherits(RepeatedDirectoriesConverter, Converter);
|
|
105
|
-
function RepeatedDirectoriesConverter() {
|
|
106
|
-
_class_call_check(this, RepeatedDirectoriesConverter);
|
|
107
|
-
return _call_super(this, RepeatedDirectoriesConverter, arguments);
|
|
22
|
+
static regex = /^\*\*\//;
|
|
23
|
+
static fromNothing() {
|
|
24
|
+
return _converter.default.fromNothing(RepeatedDirectoriesConverter);
|
|
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(RepeatedDirectoriesConverter);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
]);
|
|
125
|
-
return RepeatedDirectoriesConverter;
|
|
126
|
-
}(_converter.default);
|
|
127
|
-
_define_property(RepeatedDirectoriesConverter, "regex", /^\*\*\//);
|
|
128
|
-
var repeatedDirectoriesConverter = RepeatedDirectoriesConverter.fromNothing();
|
|
129
|
-
var _default = repeatedDirectoriesConverter;
|
|
26
|
+
}
|
|
27
|
+
const repeatedDirectoriesConverter = RepeatedDirectoriesConverter.fromNothing();
|
|
28
|
+
const _default = repeatedDirectoriesConverter;
|
|
130
29
|
|
|
131
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvcmVwZWF0ZWREaXJlY3Rvcmllcy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IENvbnZlcnRlciBmcm9tIFwiLi4vY29udmVydGVyXCI7XG5cbmNsYXNzIFJlcGVhdGVkRGlyZWN0b3JpZXNDb252ZXJ0ZXIgZXh0ZW5kcyBDb252ZXJ0ZXIge1xuICBjYWxsYmFjayhjaGFyYWN0ZXJzKSB7XG4gICAgY29uc3QgcmVzdWx0ID0gYCg/
|
|
30
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb252ZXJ0ZXIvcmVwZWF0ZWREaXJlY3Rvcmllcy5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IENvbnZlcnRlciBmcm9tIFwiLi4vY29udmVydGVyXCI7XG5cbmNsYXNzIFJlcGVhdGVkRGlyZWN0b3JpZXNDb252ZXJ0ZXIgZXh0ZW5kcyBDb252ZXJ0ZXIge1xuICBjYWxsYmFjayhjaGFyYWN0ZXJzKSB7XG4gICAgY29uc3QgcmVzdWx0ID0gYCg/OlteL10qXFxcXC8pKmA7XG5cbiAgICByZXR1cm4gcmVzdWx0O1xuICB9XG5cbiAgc3RhdGljIHJlZ2V4ID0gL15cXCpcXCpcXC8vO1xuXG4gIHN0YXRpYyBmcm9tTm90aGluZygpIHsgcmV0dXJuIENvbnZlcnRlci5mcm9tTm90aGluZyhSZXBlYXRlZERpcmVjdG9yaWVzQ29udmVydGVyKTsgfVxufVxuXG5jb25zdCByZXBlYXRlZERpcmVjdG9yaWVzQ29udmVydGVyID0gUmVwZWF0ZWREaXJlY3Rvcmllc0NvbnZlcnRlci5mcm9tTm90aGluZygpO1xuXG5leHBvcnQgZGVmYXVsdCByZXBlYXRlZERpcmVjdG9yaWVzQ29udmVydGVyO1xuIl0sIm5hbWVzIjpbIlJlcGVhdGVkRGlyZWN0b3JpZXNDb252ZXJ0ZXIiLCJDb252ZXJ0ZXIiLCJjYWxsYmFjayIsImNoYXJhY3RlcnMiLCJyZXN1bHQiLCJyZWdleCIsImZyb21Ob3RoaW5nIiwicmVwZWF0ZWREaXJlY3Rvcmllc0NvbnZlcnRlciJdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7K0JBa0JBOzs7ZUFBQTs7O2tFQWhCc0I7Ozs7OztBQUV0QixNQUFNQSxxQ0FBcUNDLGtCQUFTO0lBQ2xEQyxTQUFTQyxVQUFVLEVBQUU7UUFDbkIsTUFBTUMsU0FBUyxDQUFDLGFBQWEsQ0FBQztRQUU5QixPQUFPQTtJQUNUO0lBRUEsT0FBT0MsUUFBUSxVQUFVO0lBRXpCLE9BQU9DLGNBQWM7UUFBRSxPQUFPTCxrQkFBUyxDQUFDSyxXQUFXLENBQUNOO0lBQStCO0FBQ3JGO0FBRUEsTUFBTU8sK0JBQStCUCw2QkFBNkJNLFdBQVc7TUFFN0UsV0FBZUMifQ==
|