greybel-mock-environment 2.4.10 → 2.4.11
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/dist/types/permission.js
CHANGED
|
@@ -126,7 +126,7 @@ var Permissions = /** @class */ (function () {
|
|
|
126
126
|
};
|
|
127
127
|
Permissions.prototype.chmod = function (str) {
|
|
128
128
|
var e_1, _a;
|
|
129
|
-
if (!/^[ugo][-+][rwx]{3}$/.test(str)) {
|
|
129
|
+
if (!/^[ugo][-+][rwx]{1,3}$/.test(str)) {
|
|
130
130
|
return false;
|
|
131
131
|
}
|
|
132
132
|
var _b = __read(str), type = _b[0], operator = _b[1], flags = _b.slice(2);
|
package/dist/types/version.js
CHANGED
|
@@ -37,10 +37,10 @@ var Version = /** @class */ (function () {
|
|
|
37
37
|
if (options === void 0) { options = {}; }
|
|
38
38
|
this.version = options.version
|
|
39
39
|
? Version.parse(options.version)
|
|
40
|
-
: [1, 0, 0
|
|
40
|
+
: [1, 0, 0];
|
|
41
41
|
}
|
|
42
42
|
Version.parse = function (version) {
|
|
43
|
-
if (/^([0-9]+\.){
|
|
43
|
+
if (/^([0-9]+\.){2}[0-9]+$/.test(version)) {
|
|
44
44
|
return version.split('.').map(function (n) { return Number(n); });
|
|
45
45
|
}
|
|
46
46
|
return null;
|
|
@@ -76,7 +76,7 @@ var Version = /** @class */ (function () {
|
|
|
76
76
|
};
|
|
77
77
|
Version.prototype.major = function () {
|
|
78
78
|
var _a = __read(this.version, 1), majorVersion = _a[0];
|
|
79
|
-
this.version = [majorVersion, 0, 0
|
|
79
|
+
this.version = [majorVersion, 0, 0];
|
|
80
80
|
return this;
|
|
81
81
|
};
|
|
82
82
|
Version.prototype.toString = function () {
|